PyMB (model-builder) crashes on startup

Bug #146182 reported by tuwe
42
This bug affects 7 people
Affects Status Importance Assigned to Milestone
model-builder (Ubuntu)
Fix Released
Medium
Luca Falavigna

Bug Description

Binary package hint: model-builder

Installation of model-builder and dependencies via synaptic.
Starting PyMB in gnome-terminal results in the follwing output:

-------------------
Traceback (most recent call last):
  File "/usr/bin/PyMB", line 8, in <module>
    load_entry_point('Model-Builder==0.4.0', 'gui_scripts', 'PyMB')()
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 277, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2179, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1912, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.5/site-packages/model_builder/PyMB.py", line 29, in <module>
    wxversion.select('2.6')
  File "/usr/lib/python2.5/site-packages/wxversion.py", line 149, in select
    raise VersionError("Requested version of wxPython not found")
wxversion.VersionError: Requested version of wxPython not found
-------------------

Solution: Install python-wxgtk2.6

ProblemType: Crash
Architecture: i386
Date: Fri Sep 28 08:56:53 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/PyMB
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: model-builder 0.4.0-2
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/PyMB
ProcCwd: /home/uwe
ProcEnviron:
 SHELL=/bin/bash
 PATH=/home/uwe/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=de_CH.UTF-8
PythonArgs: ['/usr/bin/PyMB']
SourcePackage: model-builder
Title: PyMB crashed with VersionError in select()
Uname: Linux saturn 2.6.22-12-generic #1 SMP Sun Sep 23 18:11:30 GMT 2007 i686 GNU/Linux

Tags: apport-crash
Revision history for this message
tuwe (tuwe) wrote :
Changed in model-builder:
assignee: nobody → dktrkranz
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package model-builder - 0.4.1-2ubuntu1

---------------
model-builder (0.4.1-2ubuntu1) hardy; urgency=low

  * Resync with Debian unstable.
  * debian/control:
    - Let model-builder binary package depend on python-wxgtk2.6 to fix
      VersionError exception (LP: #146182).
    - Update Maintainer field as per spec.

model-builder (0.4.1-2) unstable; urgency=low

  * debian/control: Build-Depend and Depend on python-numpy instead of
    python-numpy-ext and python-numpy-dev virtual packages provided by
    python-numpy (Closes: #463208)

model-builder (0.4.1-1) unstable; urgency=low

  * New upstream release
  * Bump Standards-Version to 3.7.3
  * Bump debhelper compat to 6
  * Add Homepage header and replace XS-Vcs with Vcs
  * Add debian/orig-tar.sh to create orig.tar.gz
  * debian/rules: add get-orig-source target
  * Add patches/desktop_file.diff to fix desktop file category and remove
    encoding field
  * Add patches/show.diff to fix problems while loading model-builder

 -- Luca Falavigna <email address hidden> Wed, 30 Jan 2008 21:18:38 +0100

Changed in model-builder:
status: In Progress → Fix Released
Revision history for this message
sd (stvdnb) wrote :

This bug seems to have returned in 0.4.1-4. I have just installed it and I get the same error message as originally reported. Installing python-wxgtk2.6 fixes the problem.

Revision history for this message
John Pye (jdpipe) wrote :

This bug is still present. Just tested with freshly-installed model-builder package on Intrepid. output:

john@roadwork:~$ PyMB
Traceback (most recent call last):
  File "/usr/bin/PyMB", line 8, in <module>
    load_entry_point('Model-Builder==0.4.1', 'gui_scripts', 'PyMB')()
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 277, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2180, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1913, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.5/site-packages/model_builder/PyMB.py", line 30, in <module>
    wxversion.select('2.6')
  File "/usr/lib/python2.5/site-packages/wxversion.py", line 152, in select
    raise VersionError("Requested version of wxPython not found")
wxversion.VersionError: Requested version of wxPython not found
john@roadwork:~$ dpkg -l model-builder
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-======================================-======================================-============================================================================================
ii model-builder 0.4.1-4 graphical ODE simulator
john@roadwork:~$

Changed in model-builder:
status: Fix Released → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package model-builder - 0.4.1-4ubuntu1

---------------
model-builder (0.4.1-4ubuntu1) jaunty; urgency=low

  * Let model-builder binary package depend on python-wxgtk2.6 to fix
    VersionError exception (LP: #146182).

 -- Luca Falavigna <email address hidden> Sat, 17 Jan 2009 02:06:03 +0100

Changed in model-builder:
status: Confirmed → Fix Released
Revision history for this message
George (gnwiii) wrote :

Ubuntu 9.10 Matplotlib requires wxPython 2.8, but model-builder still requires wxPython 2.6

  File "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_wx.py", line 144, in <module>
    raise ImportError(missingwx)
ImportError: Matplotlib backend_wx and backend_wxagg require wxPython >=2.8

Workaround: remove wxPython 2.6, install python-setuptools and use easy_install to install
Model_Builder:

PYTHONPATH=/usr/local/lib/python2.6/site-packages easy_install-2.6 -d /usr/local/lib/python2.6/site-packages/ Model_Builder

Revision history for this message
mounjar (mounjar) wrote :

This bug affects me too

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.