Skip to content

Commit 12e7103

Browse files
committed
changed installation instructions; version 2.6.2
1 parent a35d590 commit 12e7103

File tree

6 files changed

+37
-24
lines changed

6 files changed

+37
-24
lines changed

CHANGELOG

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2.6.2
2+
- fixed ROWORDER attribute in FITS files (KStars/EKOS ignores this but some postprocessing tools need this fix to
3+
have the Bayer pattern in the correct order)
4+
- more details in install_requires of the wheel
5+
- adapted install instructions in README.md to meet newer OS versions (installation in virtual environment)
6+
- removed indi_pylibcamera_postinstall from installation: does not work from virtual environment
7+
18
2.6.0
29
- support for monochrome cameras
310
- support for new raw and RGB frame formats (including monochrome)

README.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ camera.
2727

2828
## Requirements and installation
2929
Some packages need to be installed with apt-get:
30-
- `libcamera` (if not already installed). You can test libcamera and the support
30+
- `libcamera` and `libcamera-apps` (if not already installed). You can test libcamera and the support
3131
for your camera with:
3232
```commandline
3333
libcamera-hello --list-cameras
@@ -52,36 +52,42 @@ for your camera with:
5252
by yourself. Instructions can be found here: https://github.com/indilib/indi. A Raspberry Pi Zero does not
5353
have enough RAM to compile with 4 threads in parallel: you need to do `make -j1` instead of `make -j4`.
5454
Finally, after installation, you need to have a working INDI server: `indiserver -v indi_simulator_telescope`
55-
- The Python packages `picamera2`, `numpy`, `lxml` and `astropy`. Theoretically these packages can be installed with `pip`.
56-
But at least the version of `picamera2` must fit to the `libcamera` you installed with `apt-get`. Therefore it is
57-
safer to install these Python packages with `apt-get` too.
58-
59-
The command line to install all is:
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:
6057
```commandline
61-
sudo apt-get install libcamera-apps indi-bin python3-picamera2 python3-lxml python3-astropy python3-numpy
58+
sudo apt-get install python3-picamera2 python3-pyqt5 python3-numpy
6259
```
6360

64-
The `indi_pylibcamera` driver package is available on PyPi. Please install with:
61+
The Raspberry PI OS requires a virtual environment to install non-system Python packages. Trying to install
62+
`indi_pylibcamera` without a virtual environment will fail with `error: externally-managed-environment`.
63+
64+
Run the following on a command line to install `indi_pylibcamera`in a virtual environment called `venv_indi_pylibcamera`:
6565
```commandline
66-
sudo pip3 install indi_pylibcamera
67-
sudo indi_pylibcamera_postinstall
66+
python3 -m venv --system-site-packages ~/venv_indi_pylibcamera
67+
source ~/venv_indi_pylibcamera/bin/activate
68+
pip install --upgrade pip
69+
pip install indi_pylibcamera
6870
```
6971

70-
The `indi_pylibcamera_postinstall` script creates in `/usr/share/indi` a symbolic link to the driver XML. That makes
71-
the driver available in the KStars/EKOS profile editor in "CCD"->"OTHERS". Not all versions ov KStars/ECOS support this
72-
(for instance it works with KStars 3.6.5 but not with KStars 3.4.3).
73-
7472
## Uninstall
7573
For uninstalling the driver do:
7674
```commandline
7775
sudo rm -f /usr/share/indi/indi_pylibcamera.xml
78-
sudo pip3 uninstall indi_pylibcamera
76+
rm -rf ~/venv_indi_pylibcamera
7977
```
8078

8179
## Running
82-
You can start the INDI server with `indiserver -v indi_pylibcamera`. When the server is running you can connect to
83-
the server from another computer with an INDI client (for instance KStars/EKOS). The camera name is the one
84-
you configure in `indi_pylibcamera.ini`.
80+
At the moment there is no support to start the driver from the EKOS profile editor.
81+
The driver and the indi server must be started in shell with activated virtual environment:
82+
```commandline
83+
source ~/venv_indi_pylibcamera/bin/activate
84+
```
85+
86+
In the same shell you can start the INDI server with `indiserver -v indi_pylibcamera`. When the server is running
87+
you can connect to the server from another computer with an INDI client (for instance KStars/EKOS). The camera name
88+
is the one you configure in `indi_pylibcamera.ini`.
89+
90+
I recommend you to make a wrapper script to activate the environment and start the driver.
8591

8692
## Global Configuration
8793
The driver uses a hierarchy of configuration files to set global parameter. These configuration files are loaded in the

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ twine check dist/*
2626
# after upload the package will be visible in https://test.pypi.org/project/indi_pylibcamera
2727
# to test the pip installation from TestPyPi:
2828
# - USE APT_GET TO INSTALL REQUIREMENTS!
29-
# sudo apt-get install indi-bin python3-picamera2 python3-lxml python3-astropy
29+
# sudo apt-get install indi-bin python3-picamera2 python3-lxml
3030
# - install in virtual environment
3131
# python3 -m venv --system-site-packages /home/cam/test_iplc
3232
# source test_iplc/bin/activate

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ packages = find:
1616
include_package_data = True
1717
python_requires = >=3.7
1818
install_requires =
19-
picamera2
20-
lxml
21-
astropy
19+
numpy>=1.24
20+
astropy>=5.2
21+
picamera2>=0.3
2222

2323
[options.packages.find]
2424
where=src

src/indi_pylibcamera/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
INDI driver for libcamera supported cameras
33
"""
44

5-
__version__ = "2.6.0"
5+
__version__ = "2.6.2"

src/indi_pylibcamera/indi_pylibcamera.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<devGroup group="CCDs">
33
<device label="INDI pylibcamera">
44
<driver name="INDI pylibcamera">indi_pylibcamera</driver>
5-
<version>2.6.0</version>
5+
<version>2.6.2</version>
66
</device>
77
</devGroup>
88
</driversList>

0 commit comments

Comments
 (0)