Error while installing AutoGPTQ with `pip install -vvv --no-build-isolation -e .` in docker image as well.

#2
by tahir-22 - opened

[9/9] RUN pip install -vvv .:
2.390 Using pip 24.3.1 from /root/miniconda3/lib/python3.12/site-packages/pip (python 3.12)
2.391 Non-user install because site-packages writeable
2.533 Created temporary directory: /tmp/pip-build-tracker-z0krabph
2.533 Initialized build tracking at /tmp/pip-build-tracker-z0krabph
2.533 Created build tracker: /tmp/pip-build-tracker-z0krabph
2.533 Entered build tracker: /tmp/pip-build-tracker-z0krabph
2.534 Created temporary directory: /tmp/pip-install-t1nv4_g2
2.535 Created temporary directory: /tmp/pip-ephem-wheel-cache-lo3x_ars
2.559 Processing /AutoGPTQ
2.559 Added file:///AutoGPTQ to build tracker '/tmp/pip-build-tracker-z0krabph'
2.560 Running setup.py (path:/AutoGPTQ/setup.py) egg_info for package from file:///AutoGPTQ
2.560 Created temporary directory: /tmp/pip-pip-egg-info-v2yz13vw
2.561 Preparing metadata (setup.py): started
2.561 Running command python setup.py egg_info
4.495 Traceback (most recent call last):
4.495 File "", line 2, in
4.496 File "", line 34, in
4.496 File "/AutoGPTQ/setup.py", line 116, in
4.496 local_arch_list = detect_local_sm_architectures()
4.496 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4.497 File "/AutoGPTQ/setup.py", line 73, in detect_local_sm_architectures
4.497 arch_list[-1] += '+PTX'
4.497 ~~~~~~~~~^^^^
4.497 IndexError: list index out of range
4.497
4.498 WARNING: AutoGPTQ has stopped development. Please transition to GPTQModel: https://github.com/ModelCoud/GPTQModel
4.498 GPTQModel has been merged into Transformers/Optimum and full deprecation of AutoGPTQ within HF frameworks is planned in the near-future.
4.498
4.781 error: subprocess-exited-with-error
4.781
4.781 Γ— python setup.py egg_info did not run successfully.
4.781 β”‚ exit code: 1
4.781 ╰─> See above for output.
4.781
4.781 note: This error originates from a subprocess, and is likely not a problem with pip.
4.783 full command: /root/miniconda3/bin/python -c '
4.783 exec(compile('"'"''"'"''"'"'
4.783 # This is -- a caller that pip uses to run setup.py
4.783 #
4.783 # - It imports setuptools before invoking setup.py, to enable projects that directly
4.783 # import from distutils.core to work with newer packaging standards.
4.783 # - It provides a clear error message when setuptools is not installed.
4.783 # - It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so
4.783 # setuptools doesn'"'"'t think the script is -c. This avoids the following warning:
4.783 # manifest_maker: standard file '"'"'-c'"'"' not found".
4.783 # - It generates a shim setup.py, for handling setup.cfg-only projects.
4.783 import os, sys, tokenize
4.783
4.783 try:
4.783 import setuptools
4.783 except ImportError as error:
4.783 print(
4.783 "ERROR: Can not execute setup.py since setuptools is not available in "
4.783 "the build environment.",
4.783 file=sys.stderr,
4.783 )
4.783 sys.exit(1)
4.783
4.783 file = %r
4.783 sys.argv[0] = file
4.783
4.783 if os.path.exists(file):
4.783 filename = file
4.783 with tokenize.open(file) as f:
4.783 setup_py_code = f.read()
4.783 else:
4.783 filename = ""
4.783 setup_py_code = "from setuptools import setup; setup()"
4.783
4.783 exec(compile(setup_py_code, filename, "exec"))
4.783 '"'"''"'"''"'"' % ('"'"'/AutoGPTQ/setup.py'"'"',), "", "exec"))' egg_info --egg-base /tmp/pip-pip-egg-info-v2yz13vw
4.783 cwd: /AutoGPTQ/
4.783 Preparing metadata (setup.py): finished with status 'error'
4.821 Remote version of pip: 24.3.1
4.822 Local version of pip: 24.3.1
4.827 Was pip installed by pip? True
4.830 error: metadata-generation-failed
4.830
4.830 Γ— Encountered error while generating package metadata.
4.830 ╰─> See above for output.
4.830
4.830 note: This is an issue with the package mentioned above, not pip.
4.830 hint: See above for details.
4.873 Exception information:
4.873 Traceback (most recent call last):
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/operations/build/metadata_legacy.py", line 64, in generate_metadata
4.873 call_subprocess(
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/utils/subprocess.py", line 209, in call_subprocess
4.873 raise error
4.873 pip._internal.exceptions.InstallationSubprocessError: python setup.py egg_info exited with 1
4.873
4.873 The above exception was the direct cause of the following exception:
4.873
4.873 Traceback (most recent call last):
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
4.873 status = _inner_run()
4.873 ^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
4.873 return self.run(options, args)
4.873 ^^^^^^^^^^^^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
4.873 return func(self, options, args)
4.873 ^^^^^^^^^^^^^^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 379, in run
4.873 requirement_set = resolver.resolve(
4.873 ^^^^^^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 76, in resolve
4.873 collected = self.factory.collect_root_requirements(root_reqs)
4.873 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 545, in collect_root_requirements
4.873 reqs = list(
4.873 ^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 501, in _make_requirements_from_install_req
4.873 cand = self._make_base_candidate_from_link(
4.873 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 233, in _make_base_candidate_from_link
4.873 self._link_candidate_cache[link] = LinkCandidate(
4.873 ^^^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 304, in init
4.873 super().init(
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 159, in init
4.873 self.dist = self._prepare()
4.873 ^^^^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 236, in _prepare
4.873 dist = self._prepare_distribution()
4.873 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 315, in _prepare_distribution
4.873 return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
4.873 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 527, in prepare_linked_requirement
4.873 return self._prepare_linked_requirement(req, parallel_builds)
4.873 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 642, in _prepare_linked_requirement
4.873 dist = _get_prepared_distribution(
4.873 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 72, in _get_prepared_distribution
4.873 abstract_dist.prepare_distribution_metadata(
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/distributions/sdist.py", line 69, in prepare_distribution_metadata
4.873 self.req.prepare_metadata()
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/req/req_install.py", line 581, in prepare_metadata
4.873 self.metadata_directory = generate_metadata_legacy(
4.873 ^^^^^^^^^^^^^^^^^^^^^^^^^
4.873 File "/root/miniconda3/lib/python3.12/site-packages/pip/_internal/operations/build/metadata_legacy.py", line 71, in generate_metadata
4.873 raise MetadataGenerationFailed(package_details=details) from error
4.873 pip._internal.exceptions.MetadataGenerationFailed: metadata generation failed
4.873 Removed file:///AutoGPTQ from build tracker '/tmp/pip-build-tracker-z0krabph'
4.873 Removed build tracker: '/tmp/pip-build-tracker-z0krabph'


Dockerfile:28

26 | WORKDIR /AutoGPTQ
27 |
28 | >>> RUN pip install -vvv .

ERROR: failed to solve: process "/bin/sh -c pip install -vvv ." did not complete successfully: exit code: 1

Sign up or log in to comment