@@ -26,7 +26,7 @@ And it can not work when the libcamera-tools (like `libcamera-hello` and `libcam
26
26
camera.
27
27
28
28
## Requirements and installation
29
- Some packages need to be installed with apt-get :
29
+ Some packages need to be installed with ` apt ` :
30
30
- ` libcamera ` and ` libcamera-apps ` (if not already installed). You can test libcamera and the support
31
31
for your camera with:
32
32
``` commandline
@@ -49,26 +49,47 @@ for your camera with:
49
49
```
50
50
Something with your libcamera or kernel driver installation will be wrong if this does not work.
51
51
- Install INDI core library. If there is no pre-compiled package for your hardware you will need to compile it
52
- by yourself. Instructions can be found here: https://github.com/indilib/indi . A Raspberry Pi Zero does not
53
- have enough RAM to compile with 4 threads in parallel: you need to do ` make -j1 ` instead of ` make -j4 ` .
52
+ by yourself. Instructions can be found here: https://github.com/indilib/indi .
53
+ The scripts on https://gitea.nouspiro.space/nou/astro-soft-build automate compilation and installation.
54
+ A Raspberry Pi Zero does not have enough RAM to compile with 4 threads in parallel: you need to do ` make -j1 ` instead of ` make -j4 ` .
54
55
Finally, after installation, you need to have a working INDI server: ` indiserver -v indi_simulator_telescope `
55
- - The Python packages ` PyQt5 ` , ` picamera2 ` and ` numpy ` must be installed with ` apt-get ` . Typically they are already
56
- installed. If not you can install them with:
56
+ - Some Python packages require matching versions of system libraries. They must be installed with ` apt ` :
57
57
``` commandline
58
- sudo apt-get install python3-picamera2 python3-pyqt5 python3-numpy
58
+ sudo apt install python3-pip libcamera-apps python3- picamera2 python3-lxml python3-astropy python3- numpy python3-venv
59
59
```
60
60
61
- The Raspberry PI OS requires a virtual environment to install non-system Python packages. Trying to install
61
+ The Raspberry Pi OS "Bullseye" still allowed to install system wide with ` sudo pip install indi_pylibcamera ` .
62
+ Since "Bookworm" a virtual environment is required to install non-system Python packages. Trying to install
62
63
` indi_pylibcamera ` without a virtual environment will fail with ` error: externally-managed-environment ` .
63
64
64
- Run the following on a command line to install ` indi_pylibcamera ` in a virtual environment called ` venv_indi_pylibcamera ` :
65
+ Run the following on a command line to install ` indi_pylibcamera ` in a virtual environment called ` venv_indi_pylibcamera `
66
+ (you can name the virtual environment as you want):
65
67
``` commandline
66
68
python3 -m venv --system-site-packages ~/venv_indi_pylibcamera
67
69
source ~/venv_indi_pylibcamera/bin/activate
68
70
pip install --upgrade pip
69
71
pip install indi_pylibcamera
70
72
```
71
73
74
+ ## Some hints when you get trouble
75
+ The Python packages ` picamera2 ` , ` numpy ` , and ` astropy ` MUST be installed with ` sudo apt install ` .
76
+ You MUST NOT update them with ` pip ` . When you get errors related to these packages you can:
77
+ 1 . Check directory ` ~/.local/lib/python3.9/site-packages ` if it contains one of these packages. If yes delete them!
78
+ 2 . Check if ` pip list ` shows different version numbers than ` apt list ` for these packages:
79
+ ``` commandline
80
+ pip list | grep numpy
81
+ apt list | grep numpy
82
+
83
+ pip list | grep astropy
84
+ apt list | grep astropy
85
+
86
+ pip list | grep picamera2
87
+ apt list | grep picamera2
88
+ ```
89
+ If you see different versions for a package remove it with `pip uninstall` and reinstall it with
90
+ `sudo apt reinstall`.
91
+ 3. Remove and recreate the virtual environment.
92
+
72
93
## Uninstall
73
94
For uninstalling the driver do:
74
95
```commandline
0 commit comments