Tiny Core Extensions > TCE Corepure64
pygobject
Juanito:
I'm struggling with pygobject - it appears to compile without errors, but:
--- Code: ---$ 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
--- End code ---
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 ;)
Juanito:
Ah-ha:
--- Code: ---$ python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
/tmp/tcloop/python/usr/local/lib/python2.7/site-packages
--- End code ---
..but:
--- Code: ---$ 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
--- End code ---
Does anybody know of a more elegant solution than this?
Rich:
Hi Juanito
Not sure, but maybe this helps:
http://stackoverflow.com/questions/7901373/configuring-python-to-use-additional-locations-for-site-packages
Juanito:
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 :(
bmarkus:
Use startup script to copy critical files from tar to ram. Did you check x86 version?
Navigation
[0] Message Index
[#] Next page
Go to full version