Hi I have the same problem but I don't know how to change the directory you 
mentioned, would you tell me how should I do it?

El miércoles, 21 de agosto de 2013, 0:15:08 (UTC-5), [email protected] 
escribió:
>
> Changing the current directory should help.
>
> Python is loading Adafruit_BBIO from the current (source) directory, which 
> only contains the __init__.py file.   By changing the current directory, it 
> will load it from the correct (installed) area, which contains the other 
> pieces (such as GPIO.so)
>
> On Friday, August 2, 2013 2:51:54 PM UTC-5, [email protected] wrote:
>>
>> Greetings. I ssh into my BB_B and I have followed this guide 
>> <http://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/installation>
>>  
>> and everything works fine. However when I try typing this code to test my 
>> installation it doesn't work: 
>>    
>>    1. python -c "import Adafruit_BBIO.GPIO as GPIO; print GPIO"
>>    
>>    
>> I get an error: 
>>
>> root@beaglebone:~/adafruit-beaglebone-io-python# python blink.py 
>> Traceback (most recent call last): File "blink.py", line 1, in <module> 
>> import Adafruit_BBIO.GPIO as GPIO ImportError: No module named GPIO
>>
>>
>> root@beaglebone:~/adafruit-beaglebone-io-python# python -c "import 
>> Adafruit_BBIO.GPIO as GPIO; print GPIO"
>> Traceback (most recent call last):
>>   File "<string>", line 1, in <module>
>> ImportError: No module named GPIO
>> root@beaglebone:~/adafruit-beaglebone-io-python#
>>
>> I tried to move along in the guide and typed this code into a new python 
>> file called blink.py:
>>
>> import Adafruit_BBIO.GPIO as GPIO
>> import time
>>  
>> GPIO.setup("P8_10", GPIO.OUT)
>>  
>> while True:
>>  GPIO.output("P8_10", GPIO.HIGH)
>>  time.sleep(0.5)
>>  GPIO.output("P8_10", GPIO.LOW)
>>  time.sleep(0.5)
>>
>>
>>
>> When I try to run blink.py I get a similar error to the one above:
>>
>> root@beaglebone:~/adafruit-beaglebone-io-python# python blink.py 
>> Traceback (most recent call last): File "blink.py", line 1, in <module> 
>> import Adafruit_BBIO.GPIO as GPIO ImportError: No module named GPIO
>>
>>
>> So I know something is up with my GPIO ports but I just do not know what. 
>> Please help me.
>> Thanks for reading
>>
>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/098f26fb-6cbb-4a62-a492-04906bf81663%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to