[beagleboard] Re: Beaglebone-Black: Cannot install the Adafruit-BBIO in Arch

2014-02-07 Thread david germain
this worked for me 


   1. git clone git://github.com/adafruit/adafruit-beaglebone-io-python.git
   2. #set the date and time
   3. /usr/bin/ntpdate -b -s -u pool.ntp.org
   4. #install dependency
   5. opkg update  opkg install python-distutils python-smbus
   6. cd adafruit-beaglebone-io-python
   7. python setup.py install
   8. 
   

On Saturday, 23 November 2013 14:31:09 UTC, JJ wrote:





  pip install Adafruit_BBIO
 Downloading/unpacking Adafruit-BBIO
   Downloading Adafruit_BBIO-0.0.18.tar.gz
   Running setup.py egg_info for package Adafruit-BBIO
 Traceback (most recent call last):
   File string, line 16, in module
   File /tmp/pip_build_root/Adafruit-BBIO/setup.py, line 7
 print py_compile module missing; installing to %spy_compile.py %\
^
 SyntaxError: invalid syntax
 Complete output from command python setup.py egg_info:
 Traceback (most recent call last):

   File string, line 16, in module

   File /tmp/pip_build_root/Adafruit-BBIO/setup.py, line 7

 print py_compile module missing; installing to %spy_compile.py %\

^

 SyntaxError: invalid syntax

 
 Cleaning up...
 Command python setup.py egg_info failed with error code 1 in 
 /tmp/pip_build_root/Adafruit-BBIO
 Storing complete log in /root/.pip/pip.log



 That's the problem, py_compile module is missing.
 OS is the latest Arch-Arm.


-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] Re: Beaglebone-Black: Cannot install the Adafruit-BBIO in Arch

2013-11-23 Thread Don deJuan
On 11/23/2013 08:24 AM, JJ wrote:
 I managed to compile BBIO and before that I installed python2 packages.
 Now there's a new problem, let's see following code
 |


 importAdafruit_BBIO.ADC asADC


 ADC.setup()
 value =ADC.read(P8_36)
 voltage =value *1.8#1.8V
 printvoltage
 |

 It should print the analog pin 5 value, but this error appears:
 |
 # python2 voltage.py
 Traceback(most recent call last):
   Filevoltage.py,line 3,inmodule
 ADC.setup()
 RuntimeError:Unableto setup ADC system.Possiblecauses are:
   -A cape witha conflicting pin mapping isloaded
   -A device tree objectisloaded that uses the same name fora
 fragment:helper
  
 |

 -- 
 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 beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
which arch kernel are you running? You should be on the legacy one for
the beagle if you're working with capes also you should make sure you're
using dtc-overlay as opposed to dtc.

This post has some information in regards to the device tree and arch
linux arm.
http://www.adminempire.com/beaglebone-basics-for-arch-linux/

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.