Installation fail -- requirements are invalid
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 278
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
The current setup.py lists:
install_requires=["numpy>=1.0.0"],
tests_require=["scipy>=1.0.0"],
setup_requires=["numpy>=1.20.0"],
This means pip will try to install the current version on lapjv even if numpy is older than 1.20. It will build against numpy 1.20, install it in your environment with older numpy, and import lapjv will fail with:
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: numpy.core.multiarray failed to import
Please sync install_requires with setup_requires as building with one version and running with another does NOT work.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in setup.py and compare the install_requires, tests_require, and setup_requires entries named in the issue. Align the runtime dependency with the build dependency, then verify that installation and importing lapjv work with an older NumPy version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100