Skip to content

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

@LeiWang1999

Description

@LeiWang1999

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions