Skip to content
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

Can't Run Examples #62

Closed
dooley-ch opened this issue Oct 29, 2022 · 9 comments
Closed

Can't Run Examples #62

dooley-ch opened this issue Oct 29, 2022 · 9 comments

Comments

@dooley-ch
Copy link

It seems that mraa and upm libraries and not maintained anymore. So you cannot use mraa and upm related Grove modules. FIX THIS BLOODY ISSUE AND DO NOT CLOSE IT AGAIN UNTIL IT IS FIXED.

@jbazala
Copy link

jbazala commented Nov 2, 2022

Hello, I have same issue, I bought Grove Base Kit for Raspberry Pi on August to learn how IoT works and then for using sensors and LCD in future project.. but nothings works.. all documentations, instructions and examples are out of date and I cannot figure how to get it working.. I am pretty disapointed. any sugestions? e.g. How did I get LCD running? I am using Raspberry Pi OS (bullseye).

@dooley-ch
Copy link
Author

dooley-ch commented Nov 2, 2022 via email

@jbazala
Copy link

jbazala commented Nov 29, 2022

I find a solution - I bought Arduino Uno and grove shield for it… And than I was able to run all grove sensors… But it is shame, that it does not work any more on RPi… Grove Base Kit for RPi is still on the stock, also at original e-shop, you can get it very easily. But it is very difficult to find out, that it will not work anymore. Especially for a newbie like me it is really time waste.

@dooley-ch
Copy link
Author

dooley-ch commented Nov 29, 2022 via email

@jonrot1906
Copy link

I actually found that to be very frustrating as well, as we have a few dozens of LCD displays and sensors sitting here, apparently without software support. After trying to build and install mraa and upm for hours without any luck (script for mraa and upm installation), I decided to go on and found the GrovePi repo from DexterIndustries. While not covering all sensors, I think that's a good starting point and helped me at least.

@CurtisMJ
Copy link

CurtisMJ commented Sep 10, 2023

Just in case someone finds this useful, I had managed to successfully compile UPM from source, but a few caveats needed resolving:

libmraa:
Seemed to go perfectly fine following the official build instructions on the Pi itself

UPM:
Needed to use clang to avoid errors with linking atomic symbols (GCC standard library for ARM is weird?? Really don't know)
Needed to manually copy the python parts like "pyupm.py" to the dist-packages/upm folder,__init__.py seemed blank for some reason
Needed to export LD_LIBRARY_PATH to the upm lib folder before running python examples. Could probably be solved by setting the install prefix correctly for Debian when running cmake
Needed to pass "DWERROR=OFF" because clang is more pedantic than whatever they usually compile with
Also passed "DSWIGNODE=OFF" because I wasn't using Node
All of this was done on Raspian (RPI OS?) 11 bullseye, with Python 3.9. I can now use the Grove LCD module (the white on blue one) just fine with the Grove hat. This was on a Raspberry Pi Zero, so I left it to compile overnight, cross-compiling may have been easier... but it worked lol

@takanotume24
Copy link

Just in case someone finds this useful, I had managed to successfully compile UPM from source, but a few caveats needed resolving:

libmraa: Seemed to go perfectly fine following the official build instructions on the Pi itself

UPM: Needed to use clang to avoid errors with linking atomic symbols (GCC standard library for ARM is weird?? Really don't know) Needed to manually copy the python parts like "pyupm.py" to the dist-packages/upm folder,init.py seemed blank for some reason Needed to export LD_LIBRARY_PATH to the upm lib folder before running python examples. Could probably be solved by setting the install prefix correctly for Debian when running cmake Needed to pass "DWERROR=OFF" because clang is more pedantic than whatever they usually compile with Also passed "DSWIGNODE=OFF" because I wasn't using Node All of this was done on Raspian (RPI OS?) 11 bullseye, with Python 3.9. I can now use the Grove LCD module (the white on blue one) just fine with the Grove hat. This was on a Raspberry Pi Zero, so I left it to compile overnight, cross-compiling may have been easier... but it worked lol

@CurtisMJ Thanks so much for sharing useful information. I too was able to get it to work with RasPi 4 (RasPi OS bullseye 32bit) + Grove Base Hat + Grove tempareture sensor, but not with RasPi OS bookworm, probably due to its dependency on Python2. It is not working on RasPi OS bookwarm, probably because it depends on Python2.

@takanotume24
Copy link

I have published a bash script to solve this dependency issue. Please feel free to use it as a reference if you find it helpful. https://github.com/takanotume24/grove_py_installer

@is-qian
Copy link
Contributor

is-qian commented Sep 22, 2024

Refer to #73 .This issue is closed, If you have any questions, you can comment and reply.

@is-qian is-qian closed this as completed Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants