RPi.GPIO python module for Pine A64/A64+
#28
(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
  Reply


Messages In This Thread
RE: RPi.GPIO python module for Pine A64/A64+ - by jacobscarter - 06-19-2016, 01:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  fm transmitter with gpio weasel18 2 4,830 09-10-2019, 04:28 AM
Last Post: desai_amogh
  How to use dts or other setup to declare gpio pin Interrupt (e.g. a button)? dkebler 1 3,602 06-12-2019, 10:37 AM
Last Post: dkebler
Lightbulb Sample GPIO codes highlighting RPi.GPIO-PineA64 and the PI bus MarkHaysHarris777 6 11,138 06-07-2019, 12:37 AM
Last Post: tllim
Star GPIO, SPI and I2C C++ Lib databit 7 11,222 02-04-2019, 05:45 AM
Last Post: Jeff R
Information Howto: Controlling Pine64 GPIO via the filesystem (sysfs) on linux pfeerick 4 11,859 01-24-2019, 03:36 AM
Last Post: Fifth
  GPIO and SPI SamR1 20 31,629 03-15-2018, 10:32 AM
Last Post: jomoengineer
Question GPIO shockr 7 14,779 03-11-2018, 01:52 AM
Last Post: jomoengineer
  Read GPIO problem shworker 14 21,182 08-17-2017, 01:21 PM
Last Post: martinayotte
  Cross-wired Uart Ports between two Pine Boards via Cat5 Cable MarkHaysHarris777 10 16,024 11-20-2016, 04:17 AM
Last Post: pfeerick
  GPIO fiq capability joseph 3 6,102 11-10-2016, 06:07 PM
Last Post: joseph

Forum Jump:


Users browsing this thread: 1 Guest(s)