Open bennetfabian opened 1 year ago
Hi Bennet - what I do is clone the latest sources, manually install the required pip packages, and then just run the app with python3 planetary_system_stacker.py
- works perfectly. Be sure to get a change that was made in July about the numpy issue.
I'm having a similar issue on Arch linux with the error message:
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
Looks related to #71 and the fact that I have newer Python:
$ python -V
Python 3.11.3
I followed @mdolenga 's work around and fixed it by running from source after forcing upgrade of numpy like so:
# clone the repo
git clone git@github.com:Rolf-Hempel/PlanetarySystemStacker.git
cd PlanetarySystemStacker
# setup a venv
python3 -m venv ./venv
source ./venv/bin/activate
python3 -m pip install --upgrade pip
# install from pip into the venv just to get the dependencies
pip install planetary-system-stacker
# save the dependency list
pip freeze > requirements.txt
# now edit requirements.txt and upgrade numpy to newer than whatever is installed
# s/numpy==1.22.4/numpy>1.22.4/
# now update numpy
pip install --upgrade -r requirements.txt
# finally run it manually
cd planetary_system_stacker/
python3 planetary_system_stacker.py
This is what my pip freeze
looks like after doing this and it seems to be working running from source
$ git rev-parse --short HEAD
01f3625
$ pip freeze
astropy==5.3.3
contourpy==1.1.0
cycler==0.11.0
fonttools==4.42.1
imageio==2.31.3
kiwisolver==1.4.5
lazy_loader==0.3
matplotlib==3.7.2
networkx==3.1
numpy==1.25.2
opencv-python-headless==4.7.0.72
packaging==23.1
Pillow==10.0.0
planetary-system-stacker==0.9.4.2
psutil==5.9.5
pyerfa==2.0.0.3
pyparsing==3.0.9
PyQt5==5.15.9
PyQt5-Qt5==5.15.2
PyQt5-sip==12.12.2
python-dateutil==2.8.2
PyWavelets==1.4.1
PyYAML==6.0.1
scikit-image==0.21.0
scipy==1.11.2
six==1.16.0
tifffile==2023.8.30
Dear @Rolf-Hempel, dear other maintainers, first of all you deserve I would like to express my gratitude for the time and energy you invested into this project. It's awesome to have a platform-independent solution. I really hope you're able to help with my problem.
After successfully installing PlanetarySystemStacker I get the same error message as in #60 when I try to run PlanetarySystemStacker.
macOS Ventura 13.2.1 Python 3.11.2 (installed via Homebrew) pip 22.3.1 from /usr/local/lib/python3.11/site-packages/pip (python 3.11)
Is there any tweak or workaround I could try on my end? Thank you very much in advance!