Menu

#3 Bug in GMath_install.py

open
nobody
None
5
2013-02-19
2002-09-19
No

I'm running Debian with gtk 1.2.10, but GMath_install.py
thinks that "Error: Gtk Version less than 1.2.7".

The problem:

if (string.strip(os.popen("gtk-config
--version").read()) < '1.2.7'):

I don't think you compare in that way.

>>> '1.2.9' < '1.2.7'
0
>>> '1.2.10' < '1.2.7'
1
>>> '1.2.80' < '1.2.7'
0

But

>>> map(int, '1.2.10'.split('.')) < map(int,
'1.2.7'.split('.'))
0

works :)

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.