Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 20046

Re: i2c-tool pgk to be able to use SMBUS in python

$
0
0

Hi AlexanderMerz

     I'm almost done. I'm able to use i2cdetect and i2cget as per your post.

     I got an error when running the setup.py. Here is my update:

 

root@clanton:/media/mmcblk0p1/i2c-tools-master/py-smbus# python setup.py install

running install

running build

running build_ext

building 'smbus' extension

i586-poky-linux-uclibc-gcc -m32 -march=i586 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c smbusmodule.c -o build/temp.linux-i586-2.7/smbusmodule.o

smbusmodule.c:19:20: fatal error: Python.h: No such file or directory

compilation terminated.

error: command 'i586-poky-linux-uclibc-gcc' failed with exit status 1

 

For your reference, this is my Python version in the Galileo

Python 2.7.3 (default, May 24 2014, 23:06:31)

[GCC 4.7.2] on linux2

 

let me know your recommendations.

thanks

Keiner


Viewing all articles
Browse latest Browse all 20046

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>