allsky: [BUG] Allsky fixes for Bookworm
Environment
- Camera: ASI178MC
- OS: Raspbian 12
- Allsky version: v2023.05.01_03
- Pi 4B with 8GB RAM
Bug Description
Unable to build src/
directory due to FPU error:
Building capture_ZWO.o ...
cc1plus: error: '-mfloat-abi=hard': selected architecture lacks an FPU
make: *** [Makefile:131: capture_ZWO.o] Error
Log / configuration files
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 84 (3 by maintainers)
The Point-Release-4 has changes for Bookworm - Please bear in mind that this is NOT fully tested yet. I have installed it on a few Pi’s and it installs ok, there is a dev branch for the extra modules that also supports Bookworm
Once you have the new version to add any new python modules you will need to put them in the venv so something like
source /home/pi/allsky/venv/bin/activate
pip3 whatever module
deactivate
I’ll leave @EricClaeys to answer the question about the camera as thats his area really.
Cheers
Alex
I had a small problem with the latitude and longitude in controller.js.
In install.sh, line 1596 or 1601 states as an example that you can specify the direction of the compass without spaces after the number
N or S (e.g., 20.1S)
.In controller.js (lines 221, 223,254 and 256), in the case of a string, 2 characters are removed from the end in the conversion functions
sc.latitude = lat.substr(0, len-2) * 1;
Either you have to specify a space in configuration.json during installation or you change the code in the conversion functions to
...len-1...
I have just installed pR4 on Bookworm and tested the basic GPIO functions using a DHT22 and a relay - All works fine. If you can could you reinstall Allsky, preferably on a clean card? To get PR4 to install you will need to remove the ‘exit’ command towards the top of the install.sh script
I have not had chance to test the pi5 yet but will do so over the next few days
@duckend, I fixed this in Point Release 4 (which is NOT ready to be used yet). To fix, replace all occurrences of
REMOTE_DIR
withDIRECTORY
. There are about 10. Thanks again.Andreas
I am looking at this now. Unfortunately its not just a case of using different libraries as the pi5 has a whole new architecture around the RP1, as you mentioned.
I am going to convert all of the code to use the c libgpiod python bindings as its going to be far easier, at least I think it will !!!
I just need to confirm that all versions of the pi prior to the 5 use /dev/gpiochip0 for gpio access, the pi 5 use s/dev/gpiochip4
Cheers
Alex
@Adler6907, Andreas, I believe @Alex-developer is aware of the libgpiod issue and is using his Pi 5 to try and resolve it.
Ok, am writing a fresh PiOS Bookworm Lite 32Bit now, then will try to install allsky before I touch anything else!
I think you are still using the master branch try the following on a clean install of Bookworm (Doesn’t matter which one, the git install is ONLY required for the lite versions but won’t hurt to run it on a desktop version)
sudo apt install git git clone https://github.com/thomasjacquin/allsky.git cd allsky git checkout Point-Release-4 ./install.sh
There is now a check in the master branch that will warn you ig you are trying to install on Bookworm
On the
git clone ...
command line, add--branch Point-Release-4
. Keep in mind we have not tested it as a release, although the updates have been tested by themselves.Just a quick update.
I have a version that now runs on Bookworm. Next stage is to get it tested fully then we can think about releasing it
Alex