check_dependencies.py fails on version numbers with letters

Bug #1095699 reported by Arjan Schrijver
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Status tracked in Trunk
2.0
Fix Released
Low
Arjan Schrijver
Trunk
Fix Released
Low
Arjan Schrijver

Bug Description

The check_dependencies.py script fails when a software package is checked that has other characters than only numbers in the version.

My example:
sqlalchemy was installed with easy_install on Windows XP. The version number of sqlalchemy is 0.8.0b2
check_dependencies.py fails with the following stacktrace:

Traceback (most recent call last):
  File "C:\footer_onlytitle\scripts\check_dependencies.py", line 190, in <module>
    main()
  File "C:\footer_onlytitle\scripts\check_dependencies.py", line 185, in main
    verify_versions()
  File "C:\footer_onlytitle\scripts\check_dependencies.py", line 124, in verify_versions
    check_vers(sqlalchemy.__version__, VERS['sqlalchemy'], 'sqlalchemy')
  File "C:\footer_onlytitle\scripts\check_dependencies.py", line 94, in check_vers
    version = map(int, version)
ValueError: invalid literal for int() with base 10: '0b2'

Related branches

Revision history for this message
Arjan Schrijver (arjan-s) wrote :

Forgot to mention that this happens on both 2.0 and current trunk.

Revision history for this message
Arjan Schrijver (arjan-s) wrote :

I updated the fix according to the feedback.

Changed in openlp:
assignee: nobody → Arjan Schrijver (arjan-i)
milestone: none → 2.0.2
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.