Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Error in Pip install #29

Open
aalok-sathe opened this issue Dec 31, 2019 · 1 comment
Open

Error in Pip install #29

aalok-sathe opened this issue Dec 31, 2019 · 1 comment

Comments

@aalok-sathe
Copy link

aalok-sathe commented Dec 31, 2019

When I try pip install ., I run into

'setuptools.build_meta' has no attribute '__legacy__'

Following some recommendations online, I also tried pip install . --no-use-pep517, however, to no avail, since that leads to ImportError: No module named 'skbuild'.

Full installation error output:

Processing /home/aalok/code/hanabi/hanabi-learning-environment
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /home/aalok/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmphjwdxubr
       cwd: /tmp/pip-req-build-6lvo9jzu
  Complete output (10 lines):
  Traceback (most recent call last):
    File "/home/aalok/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/home/aalok/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/aalok/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py", line 85, in get_requires_for_build_wheel
      backend = _build_backend()
    File "/home/aalok/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py", line 76, in _build_backend
      obj = getattr(obj, path_part)
  AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__'
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /home/aalok/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmphjwdxubr Check the logs for full command output.
@QianqianF
Copy link

QianqianF commented Apr 9, 2020

I run into a similar problem where I got ImportError: No module named 'setuptools.build_meta'. I'm running it in virtualenv and it got fixed by creating the virtualenv without -system-site-packages flag. It doesn't seem like you are running it in a virtual environment. If you haven't you can check out this thread for a more detailed discussion. I think there is someone having the same issue without using virtualenv.
https://github.com/pypa/pip/issues/6264

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

No branches or pull requests

2 participants