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

ModuleNotFoundError: No module named 'distutils.msvccompiler' #515

Open
tungngovn opened this issue Sep 22, 2024 · 3 comments
Open

ModuleNotFoundError: No module named 'distutils.msvccompiler' #515

tungngovn opened this issue Sep 22, 2024 · 3 comments

Comments

@tungngovn
Copy link

Hi.
Thanks for your great work. I got a problem during installing opendr-toolkit. Does anyone know how to fix it?

My system is Ubuntu 20.04.6 LTS
My command is: pip install opendr-toolkit
The error message:

Collecting av==8.0.3 (from opendr-toolkit-activity-recognition->opendr-toolkit)
  Using cached av-8.0.3.tar.gz (2.3 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-tb9ljou9/av_52b676c3db1a427286d88630fc8b6890/setup.py", line 6, in <module>
          from distutils.msvccompiler import MSVCCompiler
      ModuleNotFoundError: No module named 'distutils.msvccompiler'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
@Andymulb
Copy link

I'm receiving the same error message and assume that the error is related to the setuptools python library. However, I didn't find a solution yet.

@passalis
Copy link
Collaborator

passalis commented Oct 1, 2024

Thank you for your comments. We are investigating this issue. In the meanwhile, you can consider using docker images which shouldn't have been affected by this update.

@passalis
Copy link
Collaborator

passalis commented Oct 1, 2024

As far as I can see, this is a generalized problem with the new version of setutools. For now, you can try downgrading setuptools prior installing the toolkit, e.g., pip3 install setuptools==44.0.0

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

3 participants