-
Notifications
You must be signed in to change notification settings - Fork 2
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
Numpy not detected when installing from source #90
Comments
I see now that this seems to be related to an incompatibility between Pytorch and Numpy 2.0. In stdout for the GUI I see:
And a traceback which points to torch. Solution is This: pytorch/pytorch#107302 seems to suggest pytorch>2.2 should be fine with numpy 2 and my venv has torch 2.3.1, so I don't know what is going on there. Perhaps just add a numpy<2 restriction to pyproject.toml. |
Fix version mismatch of numpy with torchvision. Fixes #90.
It appears that the issue stems from the installed version of |
Skip any tests requiring GUI interactions when run with GitHub Actions because they don't run properly. With this the automated testing workflow shall be enabled again to get early hints on issues like #90.
Fix version mismatch of numpy with torchvision. Fixes #90.
Just installed develop branch from source and that worked well. |
After RodTracking is installed from source on Windows, an error is given when trying to run a detection that indicates that PyTorch cannot find NumPy
To Reproduce
git clone https://github.com/ANP-Granular/ParticleTracking.git .
python -m venv venv
.\venv\Scripts\activate
cd .\RodTracker
pip install -e .
rodtracker
In GUI -> Load images -> Select \RodTracker\src\RodTracker\resources\example_data\images\gp3
In Detection Tab click "Use Example Model"
In detection Tab click "Detect"
"An Unexpected Error Occurred" dialog is shown.
Additional context
pip list shows that numpy 2.0.0 is present in the venv
Logs
Attached because markdown mangles the formatting: log.txt
The text was updated successfully, but these errors were encountered: