-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
Describe the bug
A clear and concise description of what the bug is.
Reproduction
- What command or script did you run?
pip install openmim
Environment
Using Python 3.12 (nvcr.io/nvidia/pytorch:24.12-py3)
Error traceback
If applicable, paste the error trackback here.
5.071 × python setup.py egg_info did not run successfully.
5.071 │ exit code: 1
5.071 ╰─> [11 lines of output]
5.071 Traceback (most recent call last):
5.071 File "<string>", line 2, in <module>
5.071 File "<pip-setuptools-caller>", line 14, in <module>
5.071 File "/usr/local/lib/python3.12/dist-packages/setuptools/__init__.py", line 16, in <module>
5.071 import setuptools.version
5.071 File "/usr/local/lib/python3.12/dist-packages/setuptools/version.py", line 1, in <module>
5.071 import pkg_resources
5.071 File "/usr/local/lib/python3.12/dist-packages/pkg_resources/__init__.py", line 2191, in <module>
5.071 register_finder(pkgutil.ImpImporter, find_on_path)
5.071 ^^^^^^^^^^^^^^^^^^^
5.071 AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
5.071 [end of output]
5.071
5.071 note: This error originates from a subprocess, and is likely not a problem with pip.
5.539 error: metadata-generation-failed
5.539
5.539 × Encountered error while generating package metadata.
5.539 ╰─> See above for output.
5.539
5.539 note: This is an issue with the package mentioned above, not pip.
5.539 hint: See above for details.
------
Dockerfile:6
--------------------
4 | RUN pip install setuptools==65.5.1
5 |
6 | >>> RUN pip install openmim
7 | RUN mim install mmengine
8 | RUN mim install "mmcv>=2.0.0"
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install openmim" did not complete successfully: exit code: 1
Bug fix
pkgutil.ImpImporter is deprecated and removed in newer Python versions
nmichlo and WiiliamC
Metadata
Metadata
Assignees
Labels
No labels