Tiny Core Linux
Tiny Core Extensions => TCE Corepure64 => Topic started by: Juanito on January 20, 2013, 01:22:15 AM
-
I'm struggling with pygobject - it appears to compile without errors, but:
$ echo "0000" | simple-agent hci0 00:1B:66:00:31:88
Traceback (most recent call last):
File "/usr/local/bin/simple-agent", line 5, in <module>
from gi.repository import GObject
ImportError: No module named gi.repository
This error does not happen with the 32-bit version, pygobject-2.7, using core and even when I load pygobject-2.7 in corepure64 (which would eventually fail due to the 32-bit libs) I get the same error.
I'm wondering if this is something to do with python and 64bit (maybe it looks by default in /usr/local/lib64/python2.7/site-packages for example), but don't know anything about python, let alone debugging it.
Maybe somebody could help out with some basic python debugging suggestions - which physical file corresponds to the gi.repository module, etc?
Of course if a scripting hero would like to have a go at emulating simple-agent without python and it's friends or, better still, take a punt at an fltk gui, please be my guest ;)
-
Ah-ha:
$ python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
/tmp/tcloop/python/usr/local/lib/python2.7/site-packages
..but: $ sudo cp /tmp/tcloop/python/usr/local/bin/* /usr/local/bin
$ python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
/usr/local/lib/python2.7/site-packages
Does anybody know of a more elegant solution than this?
-
Hi Juanito
Not sure, but maybe this helps:
http://stackoverflow.com/questions/7901373/configuring-python-to-use-additional-locations-for-site-packages
-
Thanks - it looks like that would fix the site-packages problem, but there's another one, apps compiling against python look for the headers in /tmp/tcloop/python-dev/usr/local/include...
Looks like the inelegent solution is the way to go :(
-
Use startup script to copy critical files from tar to ram. Did you check x86 version?
-
Yes and modified the extension to suit :)
I was just looking for a better way to do it - will post after testing some more
-
posted