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

[BUG] Cannot install importlib as it's a builtin package #132

Closed
LeiWang1999 opened this issue Jul 1, 2024 · 1 comment
Closed

[BUG] Cannot install importlib as it's a builtin package #132

LeiWang1999 opened this issue Jul 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@LeiWang1999
Copy link
Contributor

Hi all, I'm trying to build this project from source, however the build pipeline is falling at pip install -r requirements:

pip install importlib>=1.0.4
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      Error processing line 1 of /opt/conda/lib/python3.10/site-packages/protobuf-3.20.2-py3.10-nspkg.pth:
      
        Traceback (most recent call last):
          File "/opt/conda/lib/python3.10/site.py", line 186, in addpackage
            exec(line)
          File "<string>", line 1, in <module>
        ModuleNotFoundError: No module named 'importlib.util'
      
      Remainder of file ignored
      Error processing line 1 of /opt/conda/lib/python3.10/site-packages/ruamel.yaml-0.17.21-py3.10-nspkg.pth:
      
        Traceback (most recent call last):
          File "/opt/conda/lib/python3.10/site.py", line 186, in addpackage
            exec(line)
          File "<string>", line 1, in <module>
        ModuleNotFoundError: No module named 'importlib.util'
      
      Remainder of file ignored
      ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
      [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.

It seems that the importlib shouldn't be installed manually, as it's a built in lib from python 3.1.

ref: https://docs.python.org/3/library/importlib.html

@Qubitium
Copy link
Contributor

Qubitium commented Jul 1, 2024

PR meged.

@Qubitium Qubitium closed this as completed Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants