(06-18-2016, 11:12 PM)MarkHaysHarris777 Wrote: ok, what happens if you spell :
import RPi_GPIO as GPIO
--------------------------------------
What version of the source are you using?
Which OS are you using?
Are you compiling from sources outside of the instructions on github, or are you using the github instructions?
sudo python setup.py install
This should not be that hard...
import RPi_GPIO wouldn't make sense. If you look at the code RPI._GPIO is an extension module to the RPI.GPIO module. Tried it anyway just to remove any doubts and got this error:
***
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named _GPIO
***
https://github.com/swkim01/RPi.GPIO-Pine...tup.py#L46
I am using the latest from the swkim01 repo:
https://github.com/swkim01/RPi.GPIO-PineA64
On my Pine I am running Debian on top of the longsleep kernel. Current kernel version: 3.10.102-0-pine64-longsleep
I followed the install instructions found in the README.md, to be super specific this is exactly what I ran:
sudo
python setup.py install --record install-paths.txt
I don't feel like I can trust any of the other documentation in the repo because most of it is left-over that has not been removed from when the Raspberry Pi RPi.GPIO repo was forked. e.g.
https://github.com/swkim01/RPi.GPIO-Pine...NSTALL.txt
I agree that this shouldn't be that hard... alas life is never that easy.
Any help from people familiar with the code would be appreciated very much.
@
aquilegia I don't suppose you have run into this before?
For now I am going to try and switch over and use this instead:
https://pypi.python.org/pypi/pyA20