wammu crashed with ImportError in <module>()

Bug #255770 reported by Nizar Kerkeni
192
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wammu (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: wammu

first run of wammu

ProblemType: Crash
Architecture: amd64
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/wammu
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: wammu 0.27-1
PackageArchitecture: all
ProcAttrCurrent: unconfined
ProcCmdline: /usr/bin/python /usr/bin/wammu
ProcEnviron:
 PATH=/home/User Name/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/wammu']
SourcePackage: wammu
Title: wammu crashed with ImportError in <module>()
Uname: Linux 2.6.26-5-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev video

Tags: apport-crash
Revision history for this message
Nizar Kerkeni (nizarus) wrote :
Revision history for this message
Jakub Nowacki (j-s-nowacki) wrote :

Same here on 8.10 beta. To make wammu work just have to install package python-wxgtk2.8 (with all dependences). Wammu package have currently following dependences: python-wxgtk2.6 | python-wxgtk2.8 therefore it automatically installs python-wxgtk2.6 (which apparently doesn't work properly).

Revision history for this message
hoang448 (hoang448) wrote : Re: [Bug 255770] Re: wammu crashed with ImportError in <module>()

Thanks a lot

On Mon, Oct 6, 2008 at 8:42 PM, Jakub Nowacki <email address hidden>wrote:

> Same here on 8.10 beta. To make wammu work just have to install package
> python-wxgtk2.8 (with all dependences). Wammu package have currently
> following dependences: python-wxgtk2.6 | python-wxgtk2.8 therefore it
> automatically installs python-wxgtk2.6 (which apparently doesn't work
> properly).
>
> --
> wammu crashed with ImportError in <module>()
> https://bugs.launchpad.net/bugs/255770
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "wammu" source package in Ubuntu: New
>
> Bug description:
> Binary package hint: wammu
>
> first run of wammu
>
> ProblemType: Crash
> Architecture: amd64
> DistroRelease: Ubuntu 8.10
> ExecutablePath: /usr/bin/wammu
> InterpreterPath: /usr/bin/python2.5
> NonfreeKernelModules: nvidia
> Package: wammu 0.27-1
> PackageArchitecture: all
> ProcAttrCurrent: unconfined
> ProcCmdline: /usr/bin/python /usr/bin/wammu
> ProcEnviron:
> PATH=/home/User
> Name/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> LANG=fr_FR.UTF-8
> SHELL=/bin/bash
> PythonArgs: ['/usr/bin/wammu']
> SourcePackage: wammu
> Title: wammu crashed with ImportError in <module>()
> Uname: Linux 2.6.26-5-generic x86_64
> UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev
> video
>

Revision history for this message
Jens (jens.timmerman) wrote :

I can confirm this on 8.10

running it from command line gives:
 wammu
Traceback (most recent call last):
  File "/usr/bin/wammu", line 31, in <module>
    import Wammu.Locales
  File "/usr/lib/python2.5/site-packages/Wammu/Locales.py", line 31, in <module>
    import wx
ImportError: No module named wx

so there seems to be a problem with dependencies?

jens@morpheus:~$ sudo aptitude install wammu
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following NEW packages will be installed:
  libgammu-common{a} libgammu3{a} libwxbase2.6-0{a} libwxgtk2.6-0{a}
  python-bluez{a} python-gammu{a} python-wxgtk2.6{a} python-wxversion{a}
  timidity{a} wammu

aptitude installed libwxgtk.6.0 and python-wxgtk2.6 while wammu is using python 2.5?

Revision history for this message
Jens (jens.timmerman) wrote :

ok, thx jakob, installing python-wxgtk2.8 makes gammu work

Changed in wammu:
status: New → Confirmed
Revision history for this message
gda (geert-datema) wrote :

Wammu is up and running......thanks

Geert

Op zondag 12-10-2008 om 15:01 uur [tijdzone +0000], schreef Keneo:
> ok, thx jakob, installing python-wxgtk2.8 makes gammu work
>
> ** Changed in: wammu (Ubuntu)
> Status: New => Confirmed
>

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

This should have been fixed by wxwidgets2.6 2.6.3.2.2-2ubuntu5. Can you reopen if it wasn't ?

Changed in wammu:
status: Confirmed → Fix Released
Revision history for this message
Mathieu Marquer (slasher-fun) wrote :

Reopening.

On ubuntu jaunty up-to-date as of 24 feb., after installing wammu and gammu, launching wammu says :

$ wammu
Traceback (most recent call last):
  File "/usr/bin/wammu", line 31, in <module>
    import Wammu.Locales
  File "/usr/lib/python2.5/site-packages/Wammu/Locales.py", line 31, in <module>
    import wx
ImportError: No module named wx
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 85, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL), 'w')
OSError: [Errno 17] File exists: '/var/crash/_usr_bin_wammu.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/wammu", line 31, in <module>
    import Wammu.Locales
  File "/usr/lib/python2.5/site-packages/Wammu/Locales.py", line 31, in <module>
    import wx
ImportError: No module named wx

After installing python-wxgtk2.6, it works fine (python-wxgtk2.8 was already installed)

Changed in wammu:
status: Fix Released → Confirmed
Revision history for this message
Stani (stani) wrote :

@Mathieu Marquer

I tried both with:
- python-wxgtk2.6 only installed
- python-wxgtk2.8 only installed
... and both work fine.

Feel free to reopen this bug in case you still encounter the error. Matthieu you can for example remove python-wxgtk2.6 by:

$ sudo dpkg -r --force-depends python-wxgtk2.6

check wammu

and install back

$ sudo apt-get install python-wxgtk2.6

Changed in wammu (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Mathieu Marquer (slasher-fun) wrote :

Works fine for now with py-wx2.8 and 2.6, so not reopening this time :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.