-
Notifications
You must be signed in to change notification settings - Fork 20
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
This module can only be run on a Raspberry Pi! #5
Comments
I managed to get it working again, switching to python3 and skipping 'sudo pip install RPi.GPIO' |
What you experienced is expected behavior. When you did 'sudo pip install RPi.GPIO' you installed the original Rasberry Pi version of RPi.GPIO from pypi.python.org. To install the modified code that's been ported for the Pine64 you must manually install from this code repository. |
I had this problem with python 2.7. |
Solved. Can close this issue. |
i am getting this with python3 on Debian 10 for Rpi
|
problem solved with this way ;)
I think problem its when people install rpi.gpio using |
It seems like pine64:~:% cat /proc/cpuinfo
processor : 0
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 2
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 3
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
At the same time RPi.GPIO-PineA64/source/cpuinfo.c Lines 40 to 61 in 5ee3c2f
That's why the lib throws an exception here: RPi.GPIO-PineA64/source/py_gpio.c Lines 1023 to 1026 in 5ee3c2f
This file may look differently only on my OS because I use armbian but the Raspberrypi repo has a similar issue that may be useful raspberrypi/linux#2110. |
On a Pine64, I bypassed the faulty detection the following way
|
I committed your code just now. Thank you. |
Beware, IIRC there were different code paths for Pine64 and Pine64+ |
Hi, I am using Mate 1.12.1 on my Pine 64 and get the following when trying to run my python file:
This is after these steps:
The weird thing is this worked for me before, but I had to reinstall the system, and now I keep running in to the above issue.
The text was updated successfully, but these errors were encountered: