Line 937 is:
self.rtname = self.args[0]

printing self.rtname in pycentral gives:
/usr/bin/python2.3

line 941 calls get_installed_runtimes(), so I will look into it:

installed_runtimes is None, so the if statement will be executed:
>>> import fnmatch, glob, os, re, sys, time
>>> from optparse import OptionParser
>>> sys.path[0:0] = ['/usr/share/python', '/usr/share/pycentral-data']
>>> import pyversions
>>> try:
...     SetType = set
... except NameError:
...     import sets
...     SetType = sets.Set
...     set = sets.Set
... 
>>> shared_base = '/usr/share/pycentral/'
>>> req_pycentral_version = '0.5'

>>> import glob
>>> default_version = pyversions.default_version(version_only=True)
>>> print default_version
2.4
>>> supported = pyversions.supported_versions()
>>> print supported
['python2.4']

why python 2.3 isn't here?

>>> for_aux = glob.glob('/usr/bin/python[0-9].[0-9]') # simulating line 197
>>> print for_aux
['/usr/bin/python2.3', '/usr/bin/python2.4']
>>> interp='/usr/bin/python2.3'
>>> if_aux=os.path.basename(interp) # simulating line 198
>>> print if_aux
python2.3

oops python2.3 isn't in supported, continue...

>>> interp='/usr/bin/python2.4'
>>> if_aux=os.path.basename(interp)
>>> print if_aux
python2.4

now, line 199 will not be executed

after pasted PythonRuntime class code:
>>> rt = PythonRuntime('python' + version,version,'/usr/bin/python' + 
>>> version,'/usr/lib/python' + version)
>>> print rt.name
python2.4
>>> print rt.version
2.4
>>> print rt.short_name
2.4
>>> print rt.interp
/usr/bin/python2.4
>>> print rt.prefix
/usr/lib/python2.4/

So get_installed_runtimes() will return only a 2.4 python runtime that
will be rejected by the if statement in line 942 and ptcentral will
print installed runtime python2.3 not found

-- 
python2.3 not installable
https://launchpad.net/bugs/58062

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to