bivab / smbus-cffi

Python bindings for Linux SMBus access through i2c-dev using cffi
GNU General Public License v2.0
61 stars 31 forks source link

Python 3 Support – problem with installing through PIP #8

Closed VincentJGeisler closed 9 years ago

VincentJGeisler commented 9 years ago

Im trying to install this package on arch arm (IMX-233) through pip. there seems to be a dependancy problem in building the package.


[root@alarm /]# pip install smbus-cffi Downloading/unpacking smbus-cffi Downloading smbus-cffi-0.3.2.tar.gz Running setup.py (path:/tmp/pip_build_root/smbus-cffi/setup.py) egg_info for package smbus-cffi Traceback (most recent call last): File "", line 17, in File "/tmp/pip_build_root/smbus-cffi/setup.py", line 7, in import smbus File "/tmp/pip_build_root/smbus-cffi/smbus/init.py", line 1, in from .smbus import ffi File "/tmp/pip_build_root/smbus-cffi/smbus/smbus.py", line 29, in from util import validate ImportError: No module named 'util' Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "", line 17, in

File "/tmp/pip_build_root/smbus-cffi/setup.py", line 7, in

import smbus

File "/tmp/pip_build_root/smbus-cffi/smbus/init.py", line 1, in

from .smbus import ffi

File "/tmp/pip_build_root/smbus-cffi/smbus/smbus.py", line 29, in

from util import validate

ImportError: No module named 'util'


Cleaning up... Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/smbus-cffi Storing debug log for failure in /root/.pip/pip.log

any assistance you can give would be awesome.

bivab commented 9 years ago

You mentioned in #9 that the install went ok, what did you do differently?

VincentJGeisler commented 9 years ago

Different version of python. 2.7 installs fine, 3.4 has dependancy problems on install.. both with i2ctools installed.

Using ArchArm current on an IMX233 board.

bivab commented 9 years ago

Python 3 isn't supported yet

VincentJGeisler commented 9 years ago

Well that would explain it :-)

Thanks!