You are not logged in.
Pages: 1
I was trying to run a python app that uses wx but
import wx
gave the usual -module not found- message
I already had installed wxpython (2.8.12.1 SliTaz 4.0) but it turns out that package is missing all the python files that make up the wx interface. It only has the OS side libraries (*.so) .
The wxpython package from SliTaz 5.0 however has all the needed files. So I installed that package. I also had to re-install wxWidgets (using the 5.0 package). Finally some apps like filezilla now complained that libtiff.so.5 was missing so I added a link from libtiff.so.5 to libtiffxx.so.3.9.5 - Im not sure why filezilla (and other apps) would need support for tiff files? Anyway. that fixed it.
Offline
I've just learned that it's possible for python to import modules directly from a .so library, so maybe the SliTaz 4.0 had the correct files, and what failed was the setup?
I succesfuly added the apsw module by creating
/usr/lib/python2.7/site-packages/apsw
copying apsw.so to
/usr/lib/python2.7/site-packages/apsw
and creating a text file
/usr/lib/python2.7/site-packages/apsw.pth
containing the line
apsw
--------
As far as I cant tell, the SliTaz 4.0 package doesn't have any pth files which seem to tell python that a module should be loaded?
Offline
For completness' sake : python can also load .so libraries directly, without relying on any .pth file.
Offline
Pages: 1
[ Generated in 0.023 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]