Installing Pysmbus and ccache_cc error
-
Hi everyone,I'm working on a photo-sensing device using onion and Tsl2591 adafruit photosensing module, however, it seems tsl2591 requires pysmbus and smbus-cffi and I'm getting "unable to execute ccache_cc No such file or directory" every time I'm trying to install them...I read the other discussions about python wrapper and I2C, but this doesn’t sound to solve my problem…any suggestions?
https://github.com/maxlklaxl/python-tsl2591
-
@Mohammadamin-Haghighatbin
so you've cloned the linked git repo to your Omega and you're running thepython setup.py install
command? And that's where you see the error?
-
Hi Lazar and thanks for the quick reply,
That's right, it seems tsl2591 is getting installed properly but for smbus-cffi and pysimbus it's looking for a c compiler and that's where I'm getting this error.
-
@Mohammadamin-Haghighatbin Ah yeah, there's no C compiler on the Omega at the moment.
Is there a way to install this without compiling it on the target machine? Maybe as a fixed python module?
-
Couldn't find a work around or solution yet...
-
Hi Everyone,
As I mentioned before, I'm trying to install Tsl2591 python module on onion omega, however, it requires smbus-cffi and it needs a C compiler and I'm getting "unable to execute 'ccache_cc' " error since we don't have any C compiler on onion. So now I'm thinking about compiling smbus-cffi and it's requirements on a cross-compiling environment and then install it as an opkg package on onion. Is this possible?!
-
Hi @Mohammadamin-Haghighatbin, sorry for the late reply. Just to clarify, you want to cross-compile
smbus-cffi
on the Omega?Also, can you explain how is
smbus-cffi
related tosmbus
? We have been able to getsmbus
(the python module) to run on the Omega at one point. Then after upgrading to OpenWRT 15.05, it stopped working and we decided to work on our own I2C driver. Perhaps we might be able to make use of our experience of hacking withsmbus
to getsmbus-cffi
compiled?Cheers!
-
Hi Boken Lin,
Thanks for your reply and yes I would like to see if it would be possible to cross-compile smbus-cffi on the Omega. smbus-cffi according to their site is just "cffi (C foreign function interface)-based python reimplementation of the python-smbus C-extension" : https://pypi.python.org/pypi/smbus-cffi
and the only reason that I'm interested in this module is just because It's one of the requirements for installing TSL2591 module.
It'll be awesome if there would a work around to compile this module somehow...Thanks.