Python version detection broken on systems that do not report the minor version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openWNS SDK |
Fix Committed
|
Undecided
|
Daniel Bültmann |
Bug Description
The new python version detection mechanisms does not work on systems where python only reports, e.g., 2.6 instead of, e.g., 2.6.5. This happens for example on openSUSE 11.1
cat /etc/issue
Welcome to openSUSE 11.1 - Kernel \r (\l).
This is what happens:
openwns-sdk> ./playground.py install
Executing: scons dbg --warn=
scons: Reading SConscript files ...
WARNING Cannot acces /etc/lsb-release. Unknown distribution. Trying fallback.
IndexError: list index out of range:
File "/tmp/build/
envInfo = EnvInfo()
File "/tmp/build/
self.
The reason is that in the python version output there is only one "." and thus no version[2]:
openwns-sdk> python --version
Python 2.6
Patch please ;)
I think we can make the minor version optional. The code that decides
something depending on the python version only looks at the major
version number. Could you check this and provide the patch if
compilation works on SuSe?
Regards,
Daniel
On 07/14/2010 11:12 AM, Jan wrote: no-missing- sconscript -j 8 default openwns- sdk/SConstruct" , line 61: openwns- sdk/SConstruct" , line 33: "version_ minor"] = "%s" % (version[2])
> Public bug reported:
>
> The new python version detection mechanisms does not work on systems
> where python only reports, e.g., 2.6 instead of, e.g., 2.6.5. This
> happens for example on openSUSE 11.1
>
> cat /etc/issue
> Welcome to openSUSE 11.1 - Kernel \r (\l).
>
> This is what happens:
>
> openwns-sdk> ./playground.py install
> Executing: scons dbg --warn=
> scons: Reading SConscript files ...
>
> WARNING Cannot acces /etc/lsb-release. Unknown distribution. Trying
> fallback.
>
> IndexError: list index out of range:
> File "/tmp/build/
> envInfo = EnvInfo()
> File "/tmp/build/
> self.python[
>
> The reason is that in the python version output there is only one "."
> and thus no version[2]:
>
> openwns-sdk> python --version
> Python 2.6
>
> ** Affects: openwns-sdk
> Importance: Undecided
> Status: New
>