2022-11-15T22:37:10,421 Created temporary directory: /tmp/pip-ephem-wheel-cache-nubw1ca0 2022-11-15T22:37:10,423 Created temporary directory: /tmp/pip-build-tracker-6qdhiv2h 2022-11-15T22:37:10,423 Initialized build tracking at /tmp/pip-build-tracker-6qdhiv2h 2022-11-15T22:37:10,424 Created build tracker: /tmp/pip-build-tracker-6qdhiv2h 2022-11-15T22:37:10,424 Entered build tracker: /tmp/pip-build-tracker-6qdhiv2h 2022-11-15T22:37:10,424 Created temporary directory: /tmp/pip-wheel-vo86rhxe 2022-11-15T22:37:10,428 DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453 2022-11-15T22:37:10,430 Created temporary directory: /tmp/pip-ephem-wheel-cache-rizw5non 2022-11-15T22:37:10,457 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2022-11-15T22:37:10,460 2 location(s) to search for versions of flash-attn: 2022-11-15T22:37:10,460 * https://pypi.org/simple/flash-attn/ 2022-11-15T22:37:10,460 * https://www.piwheels.org/simple/flash-attn/ 2022-11-15T22:37:10,461 Fetching project page and analyzing links: https://pypi.org/simple/flash-attn/ 2022-11-15T22:37:10,461 Getting page https://pypi.org/simple/flash-attn/ 2022-11-15T22:37:10,462 Found index url https://pypi.org/simple 2022-11-15T22:37:10,517 Fetched page https://pypi.org/simple/flash-attn/ as application/vnd.pypi.simple.v1+json 2022-11-15T22:37:10,518 Found link https://files.pythonhosted.org/packages/76/b2/296d07c9eae70b8b8e71938ebb753e052286947c59c4d9f75d12e8941afc/flash_attn-0.2.0.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 0.2.0 2022-11-15T22:37:10,518 Fetching project page and analyzing links: https://www.piwheels.org/simple/flash-attn/ 2022-11-15T22:37:10,519 Getting page https://www.piwheels.org/simple/flash-attn/ 2022-11-15T22:37:10,520 Found index url https://www.piwheels.org/simple 2022-11-15T22:37:10,679 Fetched page https://www.piwheels.org/simple/flash-attn/ as text/html 2022-11-15T22:37:10,680 Skipping link: not a file: https://www.piwheels.org/simple/flash-attn/ 2022-11-15T22:37:10,680 Skipping link: not a file: https://pypi.org/simple/flash-attn/ 2022-11-15T22:37:10,698 Given no hashes to check 1 links for project 'flash-attn': discarding no candidates 2022-11-15T22:37:10,715 Collecting flash-attn==0.2.0 2022-11-15T22:37:10,717 Created temporary directory: /tmp/pip-unpack-39fgcffm 2022-11-15T22:37:10,786 Downloading flash_attn-0.2.0.tar.gz (1.5 MB) 2022-11-15T22:37:14,274 Added flash-attn==0.2.0 from https://files.pythonhosted.org/packages/76/b2/296d07c9eae70b8b8e71938ebb753e052286947c59c4d9f75d12e8941afc/flash_attn-0.2.0.tar.gz to build tracker '/tmp/pip-build-tracker-6qdhiv2h' 2022-11-15T22:37:14,275 Running setup.py (path:/tmp/pip-wheel-vo86rhxe/flash-attn_c302ef5c899a42ee9ffc30d872658659/setup.py) egg_info for package flash-attn 2022-11-15T22:37:14,276 Created temporary directory: /tmp/pip-pip-egg-info-t6ywms8d 2022-11-15T22:37:14,276 Preparing metadata (setup.py): started 2022-11-15T22:37:14,277 Running command python setup.py egg_info 2022-11-15T22:37:15,220 Traceback (most recent call last): 2022-11-15T22:37:15,221 File "", line 2, in 2022-11-15T22:37:15,241 File "", line 34, in 2022-11-15T22:37:15,241 File "/tmp/pip-wheel-vo86rhxe/flash-attn_c302ef5c899a42ee9ffc30d872658659/setup.py", line 10, in 2022-11-15T22:37:15,242 import torch 2022-11-15T22:37:15,242 ModuleNotFoundError: No module named 'torch' 2022-11-15T22:37:15,326 ERROR: [present-rich] python setup.py egg_info exited with 1 2022-11-15T22:37:15,343 [bold magenta]full command[/]: [blue]/usr/bin/python3 -c ' 2022-11-15T22:37:15,343 exec(compile('"'"''"'"''"'"' 2022-11-15T22:37:15,343 # This is -- a caller that pip uses to run setup.py 2022-11-15T22:37:15,343 # 2022-11-15T22:37:15,343 # - It imports setuptools before invoking setup.py, to enable projects that directly 2022-11-15T22:37:15,343 # import from `distutils.core` to work with newer packaging standards. 2022-11-15T22:37:15,343 # - It provides a clear error message when setuptools is not installed. 2022-11-15T22:37:15,343 # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so 2022-11-15T22:37:15,343 # setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning: 2022-11-15T22:37:15,343 # manifest_maker: standard file '"'"'-c'"'"' not found". 2022-11-15T22:37:15,343 # - It generates a shim setup.py, for handling setup.cfg-only projects. 2022-11-15T22:37:15,343 import os, sys, tokenize 2022-11-15T22:37:15,343 2022-11-15T22:37:15,343 try: 2022-11-15T22:37:15,343 import setuptools 2022-11-15T22:37:15,343 except ImportError as error: 2022-11-15T22:37:15,343 print( 2022-11-15T22:37:15,343 "ERROR: Can not execute `setup.py` since setuptools is not available in " 2022-11-15T22:37:15,343 "the build environment.", 2022-11-15T22:37:15,343 file=sys.stderr, 2022-11-15T22:37:15,343 ) 2022-11-15T22:37:15,343 sys.exit(1) 2022-11-15T22:37:15,343 2022-11-15T22:37:15,343 __file__ = %r 2022-11-15T22:37:15,343 sys.argv[0] = __file__ 2022-11-15T22:37:15,343 2022-11-15T22:37:15,343 if os.path.exists(__file__): 2022-11-15T22:37:15,343 filename = __file__ 2022-11-15T22:37:15,343 with tokenize.open(__file__) as f: 2022-11-15T22:37:15,343 setup_py_code = f.read() 2022-11-15T22:37:15,343 else: 2022-11-15T22:37:15,343 filename = "" 2022-11-15T22:37:15,343 setup_py_code = "from setuptools import setup; setup()" 2022-11-15T22:37:15,343 2022-11-15T22:37:15,343 exec(compile(setup_py_code, filename, "exec")) 2022-11-15T22:37:15,343 '"'"''"'"''"'"' % ('"'"'/tmp/pip-wheel-vo86rhxe/flash-attn_c302ef5c899a42ee9ffc30d872658659/setup.py'"'"',), "", "exec"))' egg_info --egg-base /tmp/pip-pip-egg-info-t6ywms8d[/] 2022-11-15T22:37:15,344 [bold magenta]cwd[/]: /tmp/pip-wheel-vo86rhxe/flash-attn_c302ef5c899a42ee9ffc30d872658659/ 2022-11-15T22:37:15,344 Preparing metadata (setup.py): finished with status 'error' 2022-11-15T22:37:15,345 ERROR: [present-rich] metadata generation failed 2022-11-15T22:37:15,351 Exception information: 2022-11-15T22:37:15,351 Traceback (most recent call last): 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/operations/build/metadata_legacy.py", line 64, in generate_metadata 2022-11-15T22:37:15,351 call_subprocess( 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/subprocess.py", line 224, in call_subprocess 2022-11-15T22:37:15,351 raise error 2022-11-15T22:37:15,351 pip._internal.exceptions.InstallationSubprocessError: python setup.py egg_info exited with 1 2022-11-15T22:37:15,351 2022-11-15T22:37:15,351 The above exception was the direct cause of the following exception: 2022-11-15T22:37:15,351 2022-11-15T22:37:15,351 Traceback (most recent call last): 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper 2022-11-15T22:37:15,351 status = run_func(*args) 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 247, in wrapper 2022-11-15T22:37:15,351 return func(self, options, args) 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/commands/wheel.py", line 170, in run 2022-11-15T22:37:15,351 requirement_set = resolver.resolve(reqs, check_supported_wheels=True) 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve 2022-11-15T22:37:15,351 result = self._result = resolver.resolve( 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve 2022-11-15T22:37:15,351 state = resolution.resolve(requirements, max_rounds=max_rounds) 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve 2022-11-15T22:37:15,351 self._add_to_criteria(self.state.criteria, r, parent=None) 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria 2022-11-15T22:37:15,351 if not criterion.candidates: 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/resolvelib/structs.py", line 151, in __bool__ 2022-11-15T22:37:15,351 return bool(self._sequence) 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__ 2022-11-15T22:37:15,351 return any(self) 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in 2022-11-15T22:37:15,351 return (c for c in iterator if id(c) not in self._incompatible_ids) 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built 2022-11-15T22:37:15,351 candidate = func() 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link 2022-11-15T22:37:15,351 self._link_candidate_cache[link] = LinkCandidate( 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 297, in __init__ 2022-11-15T22:37:15,351 super().__init__( 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in __init__ 2022-11-15T22:37:15,351 self.dist = self._prepare() 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare 2022-11-15T22:37:15,351 dist = self._prepare_distribution() 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 308, in _prepare_distribution 2022-11-15T22:37:15,351 return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/operations/prepare.py", line 491, in prepare_linked_requirement 2022-11-15T22:37:15,351 return self._prepare_linked_requirement(req, parallel_builds) 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/operations/prepare.py", line 577, in _prepare_linked_requirement 2022-11-15T22:37:15,351 dist = _get_prepared_distribution( 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/operations/prepare.py", line 69, in _get_prepared_distribution 2022-11-15T22:37:15,351 abstract_dist.prepare_distribution_metadata( 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/distributions/sdist.py", line 61, in prepare_distribution_metadata 2022-11-15T22:37:15,351 self.req.prepare_metadata() 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/req/req_install.py", line 541, in prepare_metadata 2022-11-15T22:37:15,351 self.metadata_directory = generate_metadata_legacy( 2022-11-15T22:37:15,351 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/operations/build/metadata_legacy.py", line 71, in generate_metadata 2022-11-15T22:37:15,351 raise MetadataGenerationFailed(package_details=details) from error 2022-11-15T22:37:15,351 pip._internal.exceptions.MetadataGenerationFailed: metadata generation failed 2022-11-15T22:37:15,362 Removed flash-attn==0.2.0 from https://files.pythonhosted.org/packages/76/b2/296d07c9eae70b8b8e71938ebb753e052286947c59c4d9f75d12e8941afc/flash_attn-0.2.0.tar.gz from build tracker '/tmp/pip-build-tracker-6qdhiv2h' 2022-11-15T22:37:15,362 Removed build tracker: '/tmp/pip-build-tracker-6qdhiv2h'