google-code-export / labyrinth

Automatically exported from code.google.com/p/labyrinth
GNU General Public License v2.0
2 stars 0 forks source link

ImportError: No module named utils #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install labyrinth package on Ubuntu 9.04
2. Run labyrinth
3. Witness the crash

What is the expected output? What do you see instead?
I would expect the tool to run, but it crashes on the import of the 'utils'
module.

What version of the product are you using? On what operating system?
version 4 on ubuntu jaunty.

Please provide any additional information below.
https://bugs.launchpad.net/ubuntu/+source/labyrinth/+bug/86503

Original issue reported on code.google.com by kristian...@gmail.com on 29 Apr 2009 at 10:55

GoogleCodeExporter commented 9 years ago
This issue is similar to #49. In this case, Ubuntu 9.04 comes with Python 2.6 
instead
of 2.5.

Original comment by aadityab...@gmail.com on 9 Jun 2009 at 10:41

GoogleCodeExporter commented 9 years ago
this bug shouldn't be solved by ubuntu? 

Original comment by Pedro.Mo...@gmail.com on 26 Jun 2009 at 9:46

GoogleCodeExporter commented 9 years ago
Pedro:
Replacing an old version with a newer one is not considered a bug. Labyrinth has
hardcoded the version number of Python in its code, which is causing it to 
break with
every new version of Python.

Original comment by aadityab...@gmail.com on 26 Jun 2009 at 5:03

GoogleCodeExporter commented 9 years ago
What is the appropriate course of action given the situation with Python? I 
have been
using this app and love it. However I have recently upgraded to 9.04, and need 
the
app asap. Again, thanks for the great app, but I need a band-aid.

Thanks

Original comment by uberve...@gmail.com on 4 Aug 2009 at 1:08

GoogleCodeExporter commented 9 years ago
ubervento:

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.

Original comment by lloyd.re...@gmail.com on 11 Aug 2009 at 2:48

GoogleCodeExporter commented 9 years ago
It works. Thanks for the tip.

Original comment by uberve...@gmail.com on 21 Aug 2009 at 8:20

GoogleCodeExporter commented 9 years ago
The problem still persists when using Ubuntu 9.10.

Original comment by eug...@gmail.com on 16 Nov 2009 at 12:30

GoogleCodeExporter commented 9 years ago
I installed python2.5 using ubuntu software installer... Works now.  Try it?

Original comment by infil...@gmail.com on 25 Apr 2010 at 9:23

GoogleCodeExporter commented 9 years ago
I'm using Python 2.6.5 on Windows. Here an alternate solution:

import sys
import os
sys.path.insert(0, os.path.abspath("C:/Python26/Lib/"))
from email import utils

if __name__ == '__main__':
    print "starting..."

Original comment by grun...@gmail.com on 1 Jun 2010 at 7:39

GoogleCodeExporter commented 9 years ago
Issue 141 has been merged into this issue.

Original comment by tak...@gmail.com on 6 Aug 2012 at 8:37

GoogleCodeExporter commented 9 years ago
I'm pleased to say that this problem should finally be solved - I've refactored 
labyrinth so it no longer needs to add anything to sys.path.

The fix isn't in 0.5, but it should be in the next release.

Original comment by tak...@gmail.com on 18 Aug 2012 at 5:46

GoogleCodeExporter commented 9 years ago
Issue 149 has been merged into this issue.

Original comment by tak...@gmail.com on 18 Aug 2012 at 5:47