Trouble

RPi.GPIO_BP is installing wrongly

7 646
Hello,

I'm the enthousiastic user of BananaPI from my Domotica.

The problem is that I can't control the GPIO pins using Python27. I installed RPi.GPIO_BP from GitHub but during installation I got serveral warnings, like:
source/c_gpio.c:73:3: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]source/c_gpio.c:73:3: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]source/c_gpio.c:73:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘uint8_t *’ [-Wformat]source/c_gpio.c:73:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘volatile uint32_t *’ [-Wformat]
And when I try:
import RPi.GPIO as GPIO

I get an error: "No module named GPIO"


Does anyone have a solution for this ?


Best regards Maarten


alessia  
The warning is not the problem. "No module named GPIO" seems to be a general Python problem. Try it using  Python script instead of using IDE.

Dear Alessia,

Thanks for your reaction.

Sure that is the first thing I tried after the "warning" problem ; however when I run import GPIO_BP in the script, it returns not found. I'm affraid it it is not right installed.

Best regards Maarten

To be more precise, in the Python script I called:
import RPi.GPIO_BP as GPIO

And I also faced the problem before, but I then edit the code and maybe a Syntax error before the line or after the line cause the problem.

Dear Tony,

Thanks for your reaction.

As test a only executed one line of code in my script: import RPi.GPIO_BP as GPIO
I ran Python as root, so I don't think there is something wrog with the privaliges.

Maarten

What kind of the OS do you use? Raspbian or Lubuntu or Bananian?

abc20180506
adidas yeezy boost
moncler outlet
air jordans
uggs
ferragamo shoes
coach factory outlet online
polo ralph lauren outlet online
louis vuitton
coach outlet store
moncler coats
kate spade
puma shoes
ugg australia
kate spade outlet store
rolex watches
canada goose uk
kate spade outlet
pandora jewelry
coach factory outlet
yeezy boost 350
air jordan shoes
mulberry bags
ralph lauren uk
vans store
canada goose jackets uk
converse shoes
converse outlet store
jordan shoes
north face outlet
air max 2018
moncler jackets
canada goose outlet
nike air max
pandora charms sale clearance
birkenstock
yeezy boost
coach outlet online
mlb jerseys
coach outlet
adidas outlet
mont blanc pens
ralph lauren sale clearance
coach outlet store
ray ban sunglasses discount
fitflops
coach outlet
mcm outlet
prada handbags
tods outlet
hermes outlet
nike store
cheap jordans free shipping
mbt shoes
pandora jewelry official site
michael kors outlet
kate spade outlet store
polo ralph lauren outlet online
polo ralph lauren outlet
nike free 4.0
polo ralph lauren outlet
coach factory outlet
cheap nike air max
coach outlet
canada goose outlet
polo outlet
hermes handbags
louis vuitton handbags
uggs canada
adidas yeezy
kate spade outlet
adidas shoes
ugg boots on sale
polo ralph lauren outlet
oakley sunglasses
nike zoom
tory burch outlet online
coach outlet
mulberry handbags
pandora jewelry official site
nike huarache
ray ban sunglasses
pandora
nike outlet store
adidas yeezy
new balance shoes
cheap nfl jerseys
adidas superstar
jordan shoes
adidas nmd
nike outlet
birkenstock outlet
canada goose
canada goose sale
supreme clothing
louboutin shoes
ralph lauren sale
ralph lauren outlet
kobe bryant shoes
timberland outlet
coach outlet
michael kors outlet canada
louis vuitton outlet
nike shoes
pandora jewelry
nike outlet online
cheap jordan shoes
nmd adidas
rolex watches
fitflops
adidas yeezy
michael kors outlet
philipp plein outlet
yeezy boost
nike free run
uggs
tory burch outlet store
hermes bags
kevin durant shoes
pandora jewelry outlet
air max 97
christian louboutin outlet
coach outlet store
coach outlet
pandora outlet
pandora charms
coach factorty outlet
pandora jewelry
coach outlet
supreme clothing
ralph lauren outlet
abc20180506

You have to log in before you can reply Login | Sign Up

Points Rules