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

Unable to install source distribution in fresh environment #4

Closed
soxofaan opened this issue Apr 14, 2022 · 2 comments
Closed

Unable to install source distribution in fresh environment #4

soxofaan opened this issue Apr 14, 2022 · 2 comments

Comments

@soxofaan
Copy link

soxofaan commented Apr 14, 2022

setup.py has a dependency on numpy:

import numpy

which makes it difficult to install a source distribution of vam.whittaker in a fresh environment (without numpy)

e.g. version 2.0.2 has no wheel distribution for python 3.10: https://pypi.org/project/vam.whittaker/2.0.2/#files
Docker based example of trying to install it:

$ docker run --rm -it python:3.10 /bin/bash

root@f0a2ef21b90e:/# pip install "vam.whittaker==2.0.2"
Collecting vam.whittaker==2.0.2
  Downloading vam.whittaker-2.0.2.tar.gz (25 kB)
  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-4a150zqr/vam-whittaker_11498c8e2e244ebe9d9cc039263f3f62/setup.py", line 7, in <module>
          import numpy
      ModuleNotFoundError: No module named 'numpy'
      [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.

@soxofaan
Copy link
Author

Workaround is apparently to install numpy and cython (per #2) first:

pip install numpy cython

@valpesendorfer
Copy link
Member

fixed with #6

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