Errores #58

Error due to Python version

Added by Iñaki Baz Castillo over 2 years ago. Updated over 2 years ago.

Status:Resuelta Start:07/13/2009
Priority:Normal Due date:
Assigned to:Saúl Ibarra Corretgé % Done:

0%

Category:Python
Target version:0.5.0

Description

My system is Linux Kubuntu Jaunty 64 bits.
My Python default version is 2.6:

/usr/bin/python -> python2.6

However, when installing yass it's installed into Python2.5 directory:

~$ dpkg -L yass
/.                            
/usr                          
/usr/lib                      
/usr/lib/python2.5            
/usr/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages/YASS-0.5.0.egg-info
/usr/lib/python2.5/site-packages/yass               
/usr/lib/python2.5/site-packages/yass/yassrunner.pyc
/usr/lib/python2.5/site-packages/yass/modules
[...]

Since the first line in /usr/bin/yass.phone is:

#!/usr/bin/env python

Then it's executed by Python2.6 and I get this obvious error:

~$ yass.phone
Traceback (most recent call last):
  File "/usr/bin/yass.phone", line 21, in <module>
    import yass.yassrunner
ImportError: No module named yass.yassrunner

History

Updated by Saúl Ibarra Corretgé over 2 years ago

That's true, I need to find a fix for that, but in the meantime please, do this (I've tested it xD):

update-alternatives --install /usr/bin/python /usr/bin/python2.5 10
update-alternatives --install /usr/bin/python /usr/bin/python2.6 20

Then do:

update-alternatives --config python

and selet the 2.5 version

Updated by Saúl Ibarra Corretgé over 2 years ago

  • Status changed from Nueva to Resuelta

Fixed. After discussing it with Manwe, we both agreed that if YASS is done in Python 2.5 the dependency should be = 2.5, not >= 2.5.

Fixed files shebang (now it points to /usr/bin/python2.5) and debian/control file (package dependencies),

Also available in: Atom PDF