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

pip install fails #36

Open
jameshensman opened this issue Jan 4, 2023 · 1 comment
Open

pip install fails #36

jameshensman opened this issue Jan 4, 2023 · 1 comment

Comments

@jameshensman
Copy link

opening a fresh notebook in colab, pip install fails with

Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting gtn
  Downloading gtn-0.0.1.tar.gz (14 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: gtn
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for gtn (setup.py) ... error
  ERROR: Failed building wheel for gtn
  Running setup.py clean for gtn
Failed to build gtn
Installing collected packages: gtn
  error: subprocess-exited-with-error
  
  × Running setup.py install for gtn did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Running setup.py install for gtn ... error
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> gtn

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

On by local ubuntu machine, I get a similar issue with a more verbose error:

 ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ek4on_4n/gtn/setup.py'"'"'; <snip>
  running build_ext
  CMake Error: The source directory "/tmp/pip-install-ek4on_4n/gtn/src" does not appear to contain CMakeLists.txt.
  Specify --help for usage, or press the help button on the CMake GUI.
  Traceback (most recent call last):
   <snip>
  ----------------------------------------
  ERROR: Failed building wheel for gtn

my local machine is runing this version of pip:

$pip --version
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
@devd-99
Copy link

devd-99 commented Oct 12, 2023

Facing same issue on M2 Mac.

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

2 participants