Can't open the sucsessfully installed "Labyrinth Mind-mapping"

Bug #86503 reported by AlbUser
192
This bug affects 44 people
Affects Status Importance Assigned to Milestone
labyrinth
Unknown
Unknown
labyrinth (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Just cant open it at all and inviting me for a bug report.

I thank you very much for this great OS. Keep doing the great job.
Netxt time I' try to record my screen to demostrate the problems that may arise. I'm sorry I can't contribute in a more effective way.

Have a Great day

ProblemType: Crash
Date: Tue Feb 20 09:34:04 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/labyrinth
InterpreterPath: /usr/bin/python2.5
Package: labyrinth 0.3-0ubuntu1
ProcCmdline: python /usr/bin/labyrinth
ProcCwd: /home/fredi
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/labyrinth']
SourcePackage: labyrinth
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/labyrinth", line 43, in <module>
     import utils
 ImportError: No module named utils
Uname: Linux DellUbuntu 2.6.20-8-generic #2 SMP Tue Feb 13 05:18:42 UTC 2007 i686 GNU/Linux

Revision history for this message
AlbUser (fredzoto) wrote :
Revision history for this message
Jim Braux-Zin (j-brauxzin) wrote :

Same problem for me in feisty

Revision history for this message
Jim Braux-Zin (j-brauxzin) wrote :

The code doesn't look very clean, the path is hard-coded. Hence this change solve the problem:

$ diff labyrinth labyrinth-ok
39c39
< sys.path.insert(0, abspath("/usr/lib/python2.4/site-packages/labyrinth"))
---
> sys.path.insert(0, abspath("/usr/lib/python2.5/site-packages/labyrinth"))

Revision history for this message
Ralf Nieuwenhuijsen (ralf-nieuwenhuijsen) wrote :

This fix is there I see .. but who's responsible for fixing it?

Revision history for this message
Michael Broadbent (mikebro) wrote :

Thank you for taking your time to file this bug report.

Which version of Feisty are you using? (eg. Herd 3, Herd 4)

Also, the change Jim Braux-Zin posted is on line 39 of the file /usr/bin/labyrinth

Revision history for this message
Michael Broadbent (mikebro) wrote :

I'm not sure if this will work in all cases or if it is the best way to solve this issue, but attached is a patch I created that worked for me.

Changed in labyrinth:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Ralf Nieuwenhuijsen (ralf-nieuwenhuijsen) wrote :

For me, it magically started working again without the patch. Eventhough this specific package hasn't been updated..

What I think happened is that they put python2.4 in the repo's as well now. And this package and many others breaking with the 2.5 transition are now functioning again.

I don't know if this is permanent or not. But if it is it closes this bug..

Revision history for this message
Michael Broadbent (mikebro) wrote :

I was wondering that as well because I tested this with Herd 4 and an older version, they both had python2.4 and python2.4 is listed as a Feisty package (http://packages.ubuntu.com/feisty/python/python2.4)
The requirements for labyrinth say python2.4 (http://www.gnome.org/~dscorgie/more.html#r_Requirements)

I am going to change the status back to unconfirmed

Changed in labyrinth:
status: Confirmed → Unconfirmed
Revision history for this message
Duncan Lithgow (duncan-lithgow) wrote :

I'm also getting this bug in bug number #91745.

Changing the path to python2.5 fixed it for me. i don't know how to apply patches - so that was the easiest solution.

Revision history for this message
Daniel Holbach (dholbach) wrote :

The patch is not going to work. Get the source package and take a look at the code:

def _check (path):
        return exists(path) and isdir(path) and isfile(path+"/AUTHORS")

name = join(dirname(__file__), '..')
if _check(name):
                sys.path.insert(0, abspath(name))
else:
                sys.path.insert(0, abspath("@PYTHONDIR@"))
...

Revision history for this message
Daniel Holbach (dholbach) wrote :

Is this broken for anybody at the moment?

Changed in labyrinth:
status: Unconfirmed → Needs Info
Revision history for this message
Duncan Lithgow (duncan-lithgow) wrote :

I think Daniel that it's broken for all of us with Feisty and without Python 2.4. So I guess you mean does the patch work? The change I made works for me - but of course the package is still broken. I've sent this upline to http://code.google.com/p/labyrinth/issues/detail?id=49

Revision history for this message
Don Scorgie (don-scorgie) wrote :

The configure script for labyrinth calls AM_PATH_PYTHON:
AM_PATH_PYTHON(2.4)
This looks for and finds (at minimum) 2.4 and should work properly with 2.5. The @PYTHONDIR@ insertion is figured out at buildtime from the information found using AM_PATH_PYTHON. There is nothing in labyrinth that depends on python 2.4 (misleading comments and mistakes on the website aside).

I suspect the build system is using python-dev 2.4 to build labyrinth. If this were the case, rebuilt using python-dev-2.5 and / or the Build-Depends-Indep in debian/control was changed to use python-dev >= 2.5 everything would be hunky-dory. I may well be wrong, but if someone could test this out, it would be most appreciated.

When did python 2.5 become default in Feisty? If it was after mid-November (when labyrinth was uploaded) a rebuild should fix the issue.

Revision history for this message
Don Scorgie (don-scorgie) wrote :

Just to confirm, rebuilding the package with python 2.5 works as expected (i.e. the files are put in the right place and all the defines are correctly defined) and labyrinth runs fine.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks a lot for investigating.

 labyrinth (0.3-0ubuntu2) feisty; urgency=low
 .
   * debian/pycompat: 2.
   * debian/control: debhelper (>= 5.0.37.2).

Changed in labyrinth:
assignee: nobody → dholbach
status: Needs Info → Fix Released
Revision history for this message
xtsbdu3reyrbrmroezob (xtsbdu3reyrbrmroezob) wrote :

Please reopen this bug for Jaunty. It's back! ;-)

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

Changed in labyrinth (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

At the moment I have no time to work on this.

Can somebody please forward this upstream?

Changed in labyrinth (Ubuntu):
assignee: Daniel Holbach (dholbach) → nobody
Revision history for this message
xtsbdu3reyrbrmroezob (xtsbdu3reyrbrmroezob) wrote : Re: [Bug 86503] Re: Can't open the sucsessfully installed "Labyrinth Mind-mapping"

On Wed, Apr 29, 2009 at 1:59 AM, Daniel Holbach
<email address hidden> wrote:
> At the moment I have no time to work on this.

No worries Daniel. Thanks for your help in everything else you are
doing for Ubuntu!

> Can somebody please forward this upstream?

Done...
http://code.google.com/p/labyrinth/issues/detail?id=137
--
Kristian Erik Hermansen

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Thanks. Marking as triaged.

Changed in labyrinth (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Sonny (aadityabhatia) wrote :

Apparently the reappeared issue got no attention upstream so far.

Ref:
http://code.google.com/p/labyrinth/issues/detail?id=137

Revision history for this message
Jérôme (jerome-bouat) wrote :

still not working on Jaunty 9.04

Revision history for this message
b3n87 (benhellyer) wrote :

This bug has not been fixed yet, and is in Karmic 9.10.

I think it has something to do with the version of Python we are using.

Revision history for this message
thefluxster (buy-ikentech) wrote :

From launchpad Bug 327174:
"... 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."

I can confirm this hack worked for me too.

Revision history for this message
Cristian V (cristivlad) wrote :

I confirm that the thefluxter's solution above works perfectly in Ubuntu 9.10. Thanks!

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

can someone give this patch a look over, it works here on python2.5 and python2.6 on 9.10 but I was just wondering if its a reasonable solution

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

little mistake by old me (pyversion > '2.5' not pyversion > 2.5)
added python-numeric dependency

labyrinth (0.4.0-0ubuntu2) karmic; urgency=low
* debian/patches/10_python_path_check.patch: for linux, check for python version
    and add a correct sys.path (closes LP: #86503)
  * debian/control: add python-numeric as package dependency (closes LP: #86503)

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

I really dont know any python so if someone could give that a sanity check then if it passes i'll subscribe main sponsor

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :
Revision history for this message
Ezra Reeves (ezrareeves) wrote :

Did not realise I was working on a duplicate bug... either fix should work, although the test would be testing the build servers python version which would be 2.6 not the persons machine that the package gets installed on unless they download the source and compile on their computer.

Revision history for this message
Ezra Reeves (ezrareeves) wrote :

And I left out python-numeric depend

Revision history for this message
Allan Caeg (allancaeg) wrote :

I'm still having this problem on Karmic 32

Changed in labyrinth (Ubuntu):
assignee: nobody → SevenMachines (sevenmachines)
Changed in labyrinth (Ubuntu):
assignee: SevenMachines (sevenmachines) → nobody
Revision history for this message
Romeo Ordos (romeo-ordos) wrote :

Karmic 32: Just installed Labyrinth. Getting this message on start:

# 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.

Installing python-numeric solved this issue and now Labyrinth runs normal. Maybe dependency is missing?

Revision history for this message
Tomasz Chrzczonowicz (tch) wrote :

I can confirm that the problem is gone after installing python-numeric in Karmic. Labyrinth package needs to depend on python-numeric.

Revision history for this message
Ezra Reeves (ezrareeves) wrote :

This bug has been fixed in Lucid.

Changed in labyrinth (Ubuntu):
status: Triaged → Fix Released
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.