labyrinth crashes at startup "ImportError: No module named Numeric" : missing python-numeric dependency

Bug #327174 reported by Fabián Rodríguez
98
This bug affects 20 people
Affects Status Importance Assigned to Milestone
labyrinth
New
Undecided
Unassigned
labyrinth (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Karmic by Ezra Reeves
Nominated for Lucid by Ezra Reeves

Bug Description

Binary package hint: labyrinth

After installing the package and trying to run it for the first time, it silently crashes.

Launching from command line provides the following output:

magicfab@edgar:~$ labyrinth
Traceback (most recent call last):
  File "/usr/bin/labyrinth", line 45, in <module>
    import utils
  File "/usr/lib/python2.5/site-packages/labyrinth/utils.py", line 29, in <module>
    from Numeric import *
ImportError: No module named Numeric
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_labyrinth.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/labyrinth", line 45, in <module>
    import utils
  File "/usr/lib/python2.5/site-packages/labyrinth/utils.py", line 29, in <module>
    from Numeric import *
ImportError: No module named Numeric

Once the python-numeric package is installed, the application can be launched normally.

It seems python-numeric should be a dependency, which is not the case.

Can python-numeric be added as a dependency for the labyrinth package ?

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

Forgot to mention this happens in Jaunty alpha 3 (updated as of Feb 9 2009).

Revision history for this message
msieloff (m-sieloff-web) wrote :

The same in Jaunty alpha 6

Revision history for this message
David Coeurjolly (dcoeurjo) wrote :

Bug confirmed in the R.C.

Revision history for this message
David Prieto (frandavid100-gmail) wrote :

Happens in jaunty final, too.

Revision history for this message
Arnaud Soyez (weboide) wrote :

Confirmed in Jaunty.

$ apt-cache policy labyrinth
labyrinth:
  Installé : 0.4.0-0ubuntu1
  Candidat : 0.4.0-0ubuntu1
 Table de version :
 *** 0.4.0-0ubuntu1 0
        500 http://mirrors.ccs.neu.edu jaunty/universe Packages
        100 /var/lib/dpkg/status

Changed in labyrinth (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel Queirolo (danf-1979) wrote :

this may or not be related, but I was having problems importing the "util" module. Checking the sources of /usr/bin/labyrinth revealed a error in sys.path. At least in jaunty we're using python2.6, so changing line 40 to:

   sys.path.insert(0, abspath("/usr/lib/python2.6/dist-packages/labyrinth"))

and installing python-numeric should fix all problems. Its running here.

Revision history for this message
Tom (k0nsillyra) wrote :

I applied the fix from comment #6 here, which got me past line 40. But I now get an error at line 45 and labyrinth won't launch. I am using Jaunty 9.04, with python2.6 and Labyrinth 0.4.0-0Ubuntu1 (jaunty)

~$ /usr/bin/labyrinth
Traceback (most recent call last):
  File "/usr/bin/labyrinth", line 45, in <module>
    import utils
ImportError: No module named utils

Revision history for this message
Jay S. (jurgen-schellaert) wrote :

OK, it would appear that /usr/bin/labyrinth uses "site-packages" in its path definition rather than "dist-packages"; in other words, correcting only the version number (from 2.5 to 2.6) is not enough. Make sure the line looks exactly as shown in comment 6.
Once this error was corrected, I had no more problems except it now could not locate Numeric - but then that was easily solved by installing python-numeric.

Revision history for this message
Frederic Muller (fred-beijinglug) wrote :

Problem still in beta, installing python-numeric fixes it.

Revision history for this message
andypiper (andypiperuk) wrote :

Same problem in Karmic pre-release on UNR with Labyrinth installed from Ubuntu Software Centre. apt-get install python-numeric in a terminal window enables Labyrinth to be started.

Revision history for this message
Roman Khatko (nosorog) wrote :

Same problem on Karmic (i386).
Apply fix from post #6 and install python-numeric package, and it works well.

Revision history for this message
m2acis (m2acis) wrote :

Ubuntu 9.10, same problem fix in #10 helps. Seems like this package should have dependency on phython-numeric.

Revision history for this message
Paul-Sebastian Manole (brokenthorn) wrote :

When I installed python-numeric, it also removed nspluginwrapper and I don't know why. I didn't bother with it because I don't like using the deb for running 64bit flashplayer, I just use the beta and install it manually because the wrapper tends to crash. Labyrinth works by the way. This needs repackaging.

Ezra Reeves (ezrareeves)
Changed in labyrinth (Ubuntu):
assignee: nobody → Ezra Reeves (ezrareeves)
status: Confirmed → In Progress
Revision history for this message
Ezra Reeves (ezrareeves) wrote :

This seems to have something to do with LP: #350016.

pycentral seems to move the files to the correct directory but the makefile sets incorrect paths in the source files.

Changed in labyrinth (Ubuntu):
status: In Progress → Confirmed
assignee: Ezra Reeves (ezrareeves) → nobody
Revision history for this message
Frederic Muller (fred-beijinglug) wrote :

so we're in December and anyone installing 9.10 stable gets to go through #6 and #8. How do we get a normal maintenance fix to be released so newcomers can it working out of the box?

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.