Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with Python 3.12 #246

Open
sbhavani opened this issue Jan 11, 2025 · 0 comments
Open

Not compatible with Python 3.12 #246

sbhavani opened this issue Jan 11, 2025 · 0 comments

Comments

@sbhavani
Copy link

Describe the bug
A clear and concise description of what the bug is.

Reproduction

  1. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant