-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installing ACME in RPI 32bit - dependency error - tree-sitter-languages #165
Comments
I am sorry, but sometimes the dependencies change their requirements. Especially "tree-sitter-languages" depends on a lot of other repositories. Could you try the solution that is mentioned at the end of this issue: oracle/graalpython#378 ? Docker: there is a Dockerfile in the tools/Docker directory that might be a good start. Unfortunately, I haven't updated the image on docker hub, yet. Update I tried it on an old RP3 with Python 3.11.4 and it works:
pip install wheel Cython
pip install --no-build-isolation git+https://github.com/grantjenks/py-tree-sitter-languages@v1.10.2
pip install -r requirements.txt
I guess I have to update the Raspberry Pi HowTo. |
Could you please confirm that this solution solves your issue? Or did you find a better solution? |
Did not solve the problem. Now I am trying to compile Geos lib for version 3.8 but it is being an hard time (mainly because RPI zero is not very fast)... On laptop is everything well and the only difference for the RPI is the Geos version (laptop 3.8 and RPI 3.9) |
Ah, the geos library. At some point it was not available on RPis anymore. I remember now. And yes, everything takes forever on the zero. Make sure you do a backup of the SD card when you finished... Would you be so kind to write down the steps that are required to compile and install it? I like to add this as an extra step to RPi HowTo as well. |
I am still trying... After compiling the GEOS 3.8.0 (the same I have in my laptop where ACME runs well) now I see the error: undefined symbol: GEOSDifferencePrec_r when: python -m acme |
After compiling geos 3.8.0: $geos-config --version $python -m acme returns: undefined symbol: GEOSDifferencePrec_r... Then: $apt-get install libgeos-dev $python -m acme Returns: undefined symbol: GEODensify_r |
I just checked the installation on my RPi3. Perhaps this helps? Debian: 11.8 (via |
I am trying now on a Raspberry Pi 2 B (to have a faster network / by cable). The difference to your RPI3 I think is the 32/64 bit (a part from RAM) |
I have an old RPi zero W somewhere here. If I find time tomorrow I will try. I know that there are some limitations regarding dates and 32-bit timestamps I run into in the past, but I haven't tried to run ACME on that zero for some time. Regarding installation method: Both. And both work fine. Maybe the Python 3.11 makes a difference? Thank you very much for your patiences and perseverance! |
I would like to make some tests and ... to ACME in a low resource SBC so I started by trying the RPI Zero W. However I realized that some installing operations got failed because the network "time-out"/"read-error". Then I move to RPI 2B to use the network cable... However GEOS takes almost 12 hours to compile. |
I will try in parallel. |
Great! I have just compiled the 3.11.4. Geos is already installed in the right version... I am dealing now with shapely. |
RPI 1b: Geos => 3.9.0 already PYTHON 3.11.4: python3 -m pip install shapely==2.0.4 python -m pip install acmecse Then git clone https://github.com/ankraft/ACME-oneM2M-CSE.git Then: Then: acmecse No way... |
I am very sorry that after all these efforts the results are still the same. Perhaps there is a problem with the old 32 bit systems? But I have the GEOS lib running fine on my RPi3 test system. In case you just want to try and the newer features are not that important you may try to clone an older version of ACME? This one (https://github.com/ankraft/ACME-oneM2M-CSE/releases/tag/0.12.0) is the last one that doesn't use shapely etc for geo-location stuff. In the meantime I installed the latest raspian version and now try that one. python 3.11 comes pre-installed, but will try to use a fresh install as well of Python 3.11.10. |
I got it working. RPi Zero W with a fresh Raspian 12 "bookworm", lite version (w/o desktop). This version comes with Python 3.11.2 installed.
Nothing else was necessary to install or compile. |
Let me return to RPI Zero and try these actions... Thanks |
Everything goes well except: I have installed all requirements from requirements.txt with success but... Can you share the package version for textual.widgets you are using, please? |
Did you execute There is another small problem with the bash shell's environment variables that is buggering this release (basically environment variables that contain a |
I re-executed all the steps again and now it is working. Thank you so much! |
Great news! This also gave me some more details to add to the RPi how-to. |
Hello,
I have been trying to install ACME in a 32 bit RPI but it fails because of (at least) dependency related with
tree-sitter-languages==1.10.2
Is there any docker/container image we can use in 32 bit RPI or any solution to overcome the installing error?
Thank you.
A.
The text was updated successfully, but these errors were encountered: