2023-04-21T19:31:48,166 Created temporary directory: /tmp/pip-ephem-wheel-cache-335j0moj 2023-04-21T19:31:48,169 Created temporary directory: /tmp/pip-build-tracker-02z4ll7e 2023-04-21T19:31:48,169 Initialized build tracking at /tmp/pip-build-tracker-02z4ll7e 2023-04-21T19:31:48,169 Created build tracker: /tmp/pip-build-tracker-02z4ll7e 2023-04-21T19:31:48,170 Entered build tracker: /tmp/pip-build-tracker-02z4ll7e 2023-04-21T19:31:48,170 Created temporary directory: /tmp/pip-wheel-odbgcgtw 2023-04-21T19:31:48,174 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 2023-04-21T19:31:48,177 Created temporary directory: /tmp/pip-ephem-wheel-cache-cecbx_8r 2023-04-21T19:31:48,206 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2023-04-21T19:31:48,210 2 location(s) to search for versions of flash-attn: 2023-04-21T19:31:48,210 * https://pypi.org/simple/flash-attn/ 2023-04-21T19:31:48,210 * https://www.piwheels.org/simple/flash-attn/ 2023-04-21T19:31:48,210 Fetching project page and analyzing links: https://pypi.org/simple/flash-attn/ 2023-04-21T19:31:48,211 Getting page https://pypi.org/simple/flash-attn/ 2023-04-21T19:31:48,212 Found index url https://pypi.org/simple 2023-04-21T19:31:48,266 Fetched page https://pypi.org/simple/flash-attn/ as application/vnd.pypi.simple.v1+json 2023-04-21T19:31:48,269 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 2023-04-21T19:31:48,270 Found link https://files.pythonhosted.org/packages/f3/6a/4c0bfde34ed78d5d4e1f23917f8405cd7e2cc5560827d3fb023e88b2c6fa/flash_attn-0.2.1.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 0.2.1 2023-04-21T19:31:48,270 Found link https://files.pythonhosted.org/packages/4a/96/2ad062b5ff5cfe64c2c557cfef54eaefc49831301fdae2cc6a34b2a169f0/flash_attn-0.2.2.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 0.2.2 2023-04-21T19:31:48,271 Found link https://files.pythonhosted.org/packages/db/64/de6ecd80b6658d8008772e41838822828e714c8faa52fc8c19db8c4ca8cd/flash_attn-0.2.3.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 0.2.3 2023-04-21T19:31:48,272 Found link https://files.pythonhosted.org/packages/07/79/fa7825f1a64aa7ba88299ba3aa5148f45eef748e9fb6d862c73bbf0769b0/flash_attn-0.2.4.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 0.2.4 2023-04-21T19:31:48,272 Found link https://files.pythonhosted.org/packages/8d/29/c476efe31ea15d574fa952ff935d879dd2e40d2c0afc13fe5e4d54ca8de9/flash_attn-0.2.5.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 0.2.5 2023-04-21T19:31:48,273 Found link https://files.pythonhosted.org/packages/a0/d5/eaeea25b49a3e3d746c87e2f9b44045ed65c928829c7a9ac855b513fde3a/flash_attn-0.2.6.post1.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 0.2.6.post1 2023-04-21T19:31:48,273 Found link https://files.pythonhosted.org/packages/86/84/db179a480ae31b1093d07ce44452d2a0d8bdf98fd45985f2b68a42e2a364/flash_attn-0.2.7.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 0.2.7 2023-04-21T19:31:48,274 Found link https://files.pythonhosted.org/packages/07/ca/2d8a5fc64b0b4bcc1b98b1ff7f37d8a0661234bc74e94bac5f67551896f8/flash_attn-0.2.8.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 0.2.8 2023-04-21T19:31:48,274 Found link https://files.pythonhosted.org/packages/1d/a3/c0c75c46b9277c57e085bae24000d9914254952f77a4129776b4f412817a/flash_attn-1.0.0.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 1.0.0 2023-04-21T19:31:48,275 Found link https://files.pythonhosted.org/packages/da/91/deec91e54d7876b73c5ad37004fa0d7cd6eb1e816b355252f0b7fdfe8d51/flash_attn-1.0.1.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 1.0.1 2023-04-21T19:31:48,276 Found link https://files.pythonhosted.org/packages/b2/e9/2d689d1fe3585c0167265eed3239f4e26bb4f2c691037a960724a919cde2/flash_attn-1.0.2.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 1.0.2 2023-04-21T19:31:48,276 Found link https://files.pythonhosted.org/packages/39/17/e85eac59710421e1bc01eb93a12d37867f3a03c96cfb375997cc18f235b4/flash_attn-1.0.3.tar.gz (from https://pypi.org/simple/flash-attn/) (requires-python:>=3.7), version: 1.0.3 2023-04-21T19:31:48,277 Fetching project page and analyzing links: https://www.piwheels.org/simple/flash-attn/ 2023-04-21T19:31:48,277 Getting page https://www.piwheels.org/simple/flash-attn/ 2023-04-21T19:31:48,278 Found index url https://www.piwheels.org/simple 2023-04-21T19:31:48,447 Fetched page https://www.piwheels.org/simple/flash-attn/ as text/html 2023-04-21T19:31:48,448 Skipping link: not a file: https://www.piwheels.org/simple/flash-attn/ 2023-04-21T19:31:48,448 Skipping link: not a file: https://pypi.org/simple/flash-attn/ 2023-04-21T19:31:48,468 Given no hashes to check 1 links for project 'flash-attn': discarding no candidates 2023-04-21T19:31:48,485 Collecting flash-attn==1.0.3 2023-04-21T19:31:48,487 Created temporary directory: /tmp/pip-unpack-ceghywbq 2023-04-21T19:31:48,533 Downloading flash_attn-1.0.3.tar.gz (2.0 MB) 2023-04-21T19:31:53,241 Added flash-attn==1.0.3 from https://files.pythonhosted.org/packages/39/17/e85eac59710421e1bc01eb93a12d37867f3a03c96cfb375997cc18f235b4/flash_attn-1.0.3.tar.gz to build tracker '/tmp/pip-build-tracker-02z4ll7e' 2023-04-21T19:31:53,243 Running setup.py (path:/tmp/pip-wheel-odbgcgtw/flash-attn_8cf81bb027e84e349a47e3c76b7d0292/setup.py) egg_info for package flash-attn 2023-04-21T19:31:53,244 Created temporary directory: /tmp/pip-pip-egg-info-jetpqmdc 2023-04-21T19:31:53,244 Preparing metadata (setup.py): started 2023-04-21T19:31:53,245 Running command python setup.py egg_info 2023-04-21T19:31:53,722 Traceback (most recent call last): 2023-04-21T19:31:53,723 File "", line 2, in 2023-04-21T19:31:53,723 File "", line 34, in 2023-04-21T19:31:53,723 File "/tmp/pip-wheel-odbgcgtw/flash-attn_8cf81bb027e84e349a47e3c76b7d0292/setup.py", line 11, in 2023-04-21T19:31:53,723 import torch 2023-04-21T19:31:53,724 ModuleNotFoundError: No module named 'torch' 2023-04-21T19:31:53,770 ERROR: [present-rich] python setup.py egg_info exited with 1 2023-04-21T19:31:53,788 [bold magenta]full command[/]: [blue]/usr/bin/python3 -c ' 2023-04-21T19:31:53,788 exec(compile('"'"''"'"''"'"' 2023-04-21T19:31:53,788 # This is -- a caller that pip uses to run setup.py 2023-04-21T19:31:53,788 # 2023-04-21T19:31:53,788 # - It imports setuptools before invoking setup.py, to enable projects that directly 2023-04-21T19:31:53,788 # import from `distutils.core` to work with newer packaging standards. 2023-04-21T19:31:53,788 # - It provides a clear error message when setuptools is not installed. 2023-04-21T19:31:53,788 # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so 2023-04-21T19:31:53,788 # setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning: 2023-04-21T19:31:53,788 # manifest_maker: standard file '"'"'-c'"'"' not found". 2023-04-21T19:31:53,788 # - It generates a shim setup.py, for handling setup.cfg-only projects. 2023-04-21T19:31:53,788 import os, sys, tokenize 2023-04-21T19:31:53,788 2023-04-21T19:31:53,788 try: 2023-04-21T19:31:53,788 import setuptools 2023-04-21T19:31:53,788 except ImportError as error: 2023-04-21T19:31:53,788 print( 2023-04-21T19:31:53,788 "ERROR: Can not execute `setup.py` since setuptools is not available in " 2023-04-21T19:31:53,788 "the build environment.", 2023-04-21T19:31:53,788 file=sys.stderr, 2023-04-21T19:31:53,788 ) 2023-04-21T19:31:53,788 sys.exit(1) 2023-04-21T19:31:53,788 2023-04-21T19:31:53,788 __file__ = %r 2023-04-21T19:31:53,788 sys.argv[0] = __file__ 2023-04-21T19:31:53,788 2023-04-21T19:31:53,788 if os.path.exists(__file__): 2023-04-21T19:31:53,788 filename = __file__ 2023-04-21T19:31:53,788 with tokenize.open(__file__) as f: 2023-04-21T19:31:53,788 setup_py_code = f.read() 2023-04-21T19:31:53,788 else: 2023-04-21T19:31:53,788 filename = "" 2023-04-21T19:31:53,788 setup_py_code = "from setuptools import setup; setup()" 2023-04-21T19:31:53,788 2023-04-21T19:31:53,788 exec(compile(setup_py_code, filename, "exec")) 2023-04-21T19:31:53,788 '"'"''"'"''"'"' % ('"'"'/tmp/pip-wheel-odbgcgtw/flash-attn_8cf81bb027e84e349a47e3c76b7d0292/setup.py'"'"',), "", "exec"))' egg_info --egg-base /tmp/pip-pip-egg-info-jetpqmdc[/] 2023-04-21T19:31:53,788 [bold magenta]cwd[/]: /tmp/pip-wheel-odbgcgtw/flash-attn_8cf81bb027e84e349a47e3c76b7d0292/ 2023-04-21T19:31:53,788 Preparing metadata (setup.py): finished with status 'error' 2023-04-21T19:31:53,789 ERROR: [present-rich] metadata generation failed 2023-04-21T19:31:53,795 Exception information: 2023-04-21T19:31:53,795 Traceback (most recent call last): 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/operations/build/metadata_legacy.py", line 64, in generate_metadata 2023-04-21T19:31:53,795 call_subprocess( 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/subprocess.py", line 224, in call_subprocess 2023-04-21T19:31:53,795 raise error 2023-04-21T19:31:53,795 pip._internal.exceptions.InstallationSubprocessError: python setup.py egg_info exited with 1 2023-04-21T19:31:53,795 2023-04-21T19:31:53,795 The above exception was the direct cause of the following exception: 2023-04-21T19:31:53,795 2023-04-21T19:31:53,795 Traceback (most recent call last): 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper 2023-04-21T19:31:53,795 status = run_func(*args) 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 247, in wrapper 2023-04-21T19:31:53,795 return func(self, options, args) 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/commands/wheel.py", line 170, in run 2023-04-21T19:31:53,795 requirement_set = resolver.resolve(reqs, check_supported_wheels=True) 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve 2023-04-21T19:31:53,795 result = self._result = resolver.resolve( 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve 2023-04-21T19:31:53,795 state = resolution.resolve(requirements, max_rounds=max_rounds) 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve 2023-04-21T19:31:53,795 self._add_to_criteria(self.state.criteria, r, parent=None) 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria 2023-04-21T19:31:53,795 if not criterion.candidates: 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/resolvelib/structs.py", line 151, in __bool__ 2023-04-21T19:31:53,795 return bool(self._sequence) 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__ 2023-04-21T19:31:53,795 return any(self) 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in 2023-04-21T19:31:53,795 return (c for c in iterator if id(c) not in self._incompatible_ids) 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built 2023-04-21T19:31:53,795 candidate = func() 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link 2023-04-21T19:31:53,795 self._link_candidate_cache[link] = LinkCandidate( 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 297, in __init__ 2023-04-21T19:31:53,795 super().__init__( 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in __init__ 2023-04-21T19:31:53,795 self.dist = self._prepare() 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare 2023-04-21T19:31:53,795 dist = self._prepare_distribution() 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 308, in _prepare_distribution 2023-04-21T19:31:53,795 return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/operations/prepare.py", line 491, in prepare_linked_requirement 2023-04-21T19:31:53,795 return self._prepare_linked_requirement(req, parallel_builds) 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/operations/prepare.py", line 577, in _prepare_linked_requirement 2023-04-21T19:31:53,795 dist = _get_prepared_distribution( 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/operations/prepare.py", line 69, in _get_prepared_distribution 2023-04-21T19:31:53,795 abstract_dist.prepare_distribution_metadata( 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/distributions/sdist.py", line 61, in prepare_distribution_metadata 2023-04-21T19:31:53,795 self.req.prepare_metadata() 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/req/req_install.py", line 545, in prepare_metadata 2023-04-21T19:31:53,795 self.metadata_directory = generate_metadata_legacy( 2023-04-21T19:31:53,795 File "/usr/local/lib/python3.9/dist-packages/pip/_internal/operations/build/metadata_legacy.py", line 71, in generate_metadata 2023-04-21T19:31:53,795 raise MetadataGenerationFailed(package_details=details) from error 2023-04-21T19:31:53,795 pip._internal.exceptions.MetadataGenerationFailed: metadata generation failed 2023-04-21T19:31:53,806 Removed flash-attn==1.0.3 from https://files.pythonhosted.org/packages/39/17/e85eac59710421e1bc01eb93a12d37867f3a03c96cfb375997cc18f235b4/flash_attn-1.0.3.tar.gz from build tracker '/tmp/pip-build-tracker-02z4ll7e' 2023-04-21T19:31:53,806 Removed build tracker: '/tmp/pip-build-tracker-02z4ll7e'