SliTaz SliTaz Forum

You are not logged in.

#1 2015-02-18 00:12:38

new_u
Member
Registered: 2014-03-30
Posts: 93

wxPython in 4.0

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

#2 2015-02-18 06:22:06

new_u
Member
Registered: 2014-03-30
Posts: 93

Re: wxPython in 4.0

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

#3 2015-02-21 03:24:22

new_u
Member
Registered: 2014-03-30
Posts: 93

Re: wxPython in 4.0

For completness' sake : python can also load .so libraries directly, without relying on any .pth file.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.023 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]