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

Cannot install #9

Open
rcedgar opened this issue Dec 29, 2024 · 1 comment
Open

Cannot install #9

rcedgar opened this issue Dec 29, 2024 · 1 comment

Comments

@rcedgar
Copy link

rcedgar commented Dec 29, 2024

I have not been able to install dmpfold, apparently due to dependencies on torch and numpy versions that are so old that pip won't install them (at least not as far as I can see). I've tried using various combinations of older versions without success. Typical attempt:

pip install torch==1.8 # fails, oldest supported version is 1.11.0
pip install torch==1.11
pip install numpy # no change, numpy 2.1.2 installed as dependency of torch
pip install dmpfold # "Successfully installed dmpfold-2.0"

dmpfold -i test.aln
"/usr/local/lib/python3.10/dist-packages/torch/_masked/__init__.py:223: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at  ../torch/csrc/utils/tensor_numpy.cpp:68.)"
"RuntimeError: Numpy is not available"
@shaunmk
Copy link
Member

shaunmk commented Jan 17, 2025

Hi, apologies for the delay. The underlying issue seems to be that there was no NumPy 2.0 when PyTorch 1.8 was released, meaning that now we need to explicitly ask for 'numpy<2.0', so the install would look like:

pip install torch==1.8.0 'numpy<2.0'
pip install dmpfold

The only issue with the above is that it would also require older Python versions (I tested on 3.9), and you would not be able to run on newer GPUs.

The PyPI dmpfold package does not explicitly enforce certain versions of dependencies, so if you can use Python version 3.9 or so, the above should work.

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