SliTaz SliTaz Forum

You are not logged in.

#1 2012-02-27 08:22:11

Kaar3l
Member
Registered: 2012-02-27
Posts: 1

ImportError: No module named qt

Hello

I am tying to start a python script with qt, but no qt found. :S

in script it's like this:

form qt import *

Thanks, Kaarel

Offline

#2 2012-02-27 08:47:19

Guest
Guest

Re: ImportError: No module named qt

You need these packages:

[*]qt4

[*]PyQt-x11-gpl

Example: # tazpkg get-install qt4

#3 2012-03-08 20:32:13

eee2guser
Member
Registered: 2012-03-07
Posts: 6

Re: ImportError: No module named qt

Similar to the above post I am trying to run a two line script...

[c]#!/user/bin/python
import wx[/c]
but get ImportError: No module named wx

Using python 2.7 interactively and

[c]>>> help('modules wx')[/c]
no results appear although wx.py was expected.

[c]tazpkg search wx[/c]
shows 1 installed package namely wxpython 2.8.12.1 x-window

and I have tried a re-install as in...

[c]tazpkg get-install wxpython-2.8.12.1 --forced[/c]
Is anyone using the wxPython package or have any further ideas to try pls apart from attempting a fresh cookutils wxpythonXXX.tazpkg generation that appears a wee bit daunting?

Offline

#4 2012-03-09 00:44:57

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: ImportError: No module named qt

... you still need wxWidgets

Offline

#5 2012-03-09 18:57:08

eee2guser
Member
Registered: 2012-03-07
Posts: 6

Re: ImportError: No module named qt

tazpkg get-install wxWidgets-2.8.12.1

tazpkg -gi wxpython-2.8.12.1

wxpython-2.8.12.1 is already installed etc.

tazpkg -gi wxWidgets-2.8.12.1

wxWidgets-2.8.12.1 is already installed etc.

tazpkg search wx

wxWidgets  2.8.12.1  x-window.

wxpython   2.8.12.1  x-window.

2 installed package(s) found for : wx

python

>>> help('modules wx')

No matches found.

>>> help('modules')

Other matches but nothing starting with wx.

Run 2 line program below...

#!/usr/bin/python

import wx

ImportError: No module named wx

Offline

#6 2012-03-10 08:29:53

eee2guser
Member
Registered: 2012-03-07
Posts: 6

Re: ImportError: No module named qt

Incidentally regarding above

[c]find / -name wx.py -print 2>/dev/null[/c]
does not give any matches; but on the other hand it doesn't on a Ubuntu system happily running wxpython programs.

Offline

#7 2012-03-10 11:20:54

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: ImportError: No module named qt

Two things. You clearly don't have wxPython installed. And the second thing, the file is NOT NAMED wx.py since it's not a python script, but a compiled C library and is probably named wx.pyo.

Read http://wiki.wxpython.org/How%20to%20install%20wxPython#Linux_-_Building_from_the_source on how to install it yourself or learn how to make the interface in PyGTK (and the subset Glade), PyQT or gazpacho - all of which are included with SliTaz 3

That or you can switch to SliTaz 4RC2 and use the wxpython package provided by it.

Offline

#8 2012-05-06 14:55:54

sylvainhalle
Member
Registered: 2012-05-06
Posts: 1

Re: ImportError: No module named qt

Same problem here. I install the packages python, wxpython and wxwidgets, but when I type

[c]>>> help('modules wx')[/c]

Python does not seem to see the installed modules.

@Trixar_za:

> You clearly don't have wxPython installed.

Then why does the command [c]tazpkg search wx[/c] confirm that package wxpython is indeed there?

Offline

#9 2012-07-27 19:48:32

BugRaiser
Member
Registered: 2012-06-19
Posts: 39

Re: ImportError: No module named qt

I have a similar issue, too.

I have just installed Wammu, but when trying to launch it from the Applications menu, nothing happens.

Going over to terminal, here's the output:

$ wammu

Traceback (most recent call last):

  File "/usr/bin/wammu", line 31, in <module>

    import Wammu.Locales

  File "/usr/lib/python2.7/site-packages/Wammu/Locales.py", line 31, in <module>

    import wx

ImportError: No module named wx

I have both wxWidgets and wxPython installed.

What other packet do I need to run Wammu?

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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