Running Puppy 5.2.8 full HD install. Have used Python 2.6.4 from a .pet for several months without problems. Recently installed the luci_devx_528.sfs. Now Python complains about "no module pygtk".
The previous Python version was:
Code: Select all
Python 2.6.4 (r264:75706, Nov 19 2009, 02:54:25)
[GCC 4.2.2] on linux2
The devx_528 Python is:
Code: Select all
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Looking at the devx_528 Python internals:
Code: Select all
sys.prefix='/usr'
sys.exec_prefix='/usr'
sys.path=['','/usr/lib/python2.6','/usr/lib/python2.6/plat-linux2','/usr/lib/python2.6/lib-tk','/usr/lib/python2.6/lib-old','/usr/lib/python2.6/lib-dynload','/usr/lib/python2.6/dist-packages']
There was no mention of 'site-packages' in the sys.path. That is not suspect as Python is supposed to automatically add 'site-packages'. However, to be sure, I added this line to site.py:
Code: Select all
'/usr/lib/python2.6/site-packages'
Now Python finds the pygtk module. But all is not good because Python now complains about:
Code: Select all
ImportError: /usr/lib/python2.6/site-packages/gtk-2.0/gobject/_gobject.so: undefined symbol: PyUnicodeUCS2_FromObject
It turns out that devx_528.sfs makes no entries into 'site-packages' nor its subdirectories. The data there now is what was there from the previous Python installation. Here is how I installed the devx. I made a directory called data in the / (root) directory and mounted the .sfs file to it:
Code: Select all
mount -o loop luci_devx_528.sfs /data
Then I copied /data (actually the .sfs) to wherever it wanted to write and piped the output into a text file for verification:
Code: Select all
cp -a -v --remove-destination /data/* / >devcopy.txt
Is part of the devx_528.sfs missing? How do we get beyond this point?