gut-space / svarog

📡 A ground stations network for receiving satellite transmissions, using VHF, UHF, and more.
MIT License
10 stars 0 forks source link

Station install is broken #67

Open tomaszmrugalski opened 2 years ago

tomaszmrugalski commented 2 years ago

I've encountered multiple problems when installing svarog on a new raspberry image:

The following error occurred while trying to add or remove files in the installation directory:

[Errno 13] Permission denied: '/usr/local/lib/python3.9/dist-packages/test-easy-install-11195.write-test'

When trying to run with sudo, it then complained about missing noaa-apt and medet that were installed in the pi's user directory.

- [x] The numpy version in requirements.txt is broken. I've skipped the setup.py and did `pip install -r requirements.txt`. Then ran the cli.py script and got the following error:

$ station RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd Traceback (most recent call last): File "/home/pi/devel/svarog/station/cli.py", line 24, in from recipes.factory import get_recipe_names File "/home/pi/devel/svarog/station/recipes/init.py", line 3, in import recipes.noaa_apt_gr File "/home/pi/devel/svarog/station/recipes/noaa_apt_gr.py", line 8, in import waterfall File "/home/pi/devel/svarog/station/waterfall.py", line 3, in import matplotlib File "/home/pi/.local/lib/python3.9/site-packages/matplotlib/init.py", line 205, in _check_versions() File "/home/pi/.local/lib/python3.9/site-packages/matplotlib/init.py", line 190, in _check_versions from . import ft2font ImportError: numpy.core.multiarray failed to import



This can be fixed with `pip install --upgrade numpy` (to be run as pi, not as root). There is python3-numpy 1.19.5 install from raspbian (that can't be uninstalled, because gnuradio packages depend on it). When running pip as pi user, the packages are installed in `/home/pi/.local/lib/python3.9/site-packages`.
tomaszmrugalski commented 2 years ago

The incorrect numpy version was fixed with commit 06457874801123ec804dfe65c924f3d60db8940c.