Bug report: Garbled path on MS Windows XP

Edgar Johansen edgar.johansen at kongsberg.com
Tue Oct 23 10:51:26 UTC 2007


I installed QMTest v. 2.4 on Windows XP with Python v. 2.5.

The result of running qmtest.py was:
C:\prog\spdev\swlib\C-Test\osif\tdb>qmtest.py gui
Traceback (most recent call last):
  File "C:\app\Python25\Scripts\qmtest.py", line 126, in <module>
    qm.diagnostic.load_messages("test")
  File "C:\app\Python25\Lib\site-packages\qm\diagnostic.py", line 204, in 
load_messages
    get_diagnostic_set().ReadFromFile(diagnostic_file)
  File "C:\app\Python25\Lib\site-packages\qm\diagnostic.py", line 154, in 
get_diagnostic_set
    "common.txt"))
  File "C:\app\Python25\Lib\site-packages\qm\diagnostic.py", line 83, in 
ReadFromFile
    file = open(path, "r")
IOError: [Errno 2] No such file or directory: 
'C:\x07pp\\Python25\\share/qmtest\\diagnostics\\common.txt'

This seems to happen when the path to the Python installation contains an 
element starting with a lowercase letter in the range a-f. In this case, 
the path is C:\app\Python25

The contents of the config.py file was:
version='2.4'
data_dir='share/qmtest'
doc_dir='share/doc/qmtest'
# The following variables are set / adjusted during
# the build / install process.
extension_path='share\qmtest\site-extensions-2.5'
prefix='C:\app\Python25'

As a workaround, I modified the prefix definition in config.py:
version='2.4'
data_dir='share/qmtest'
doc_dir='share/doc/qmtest'
# The following variables are set / adjusted during
# the build / install process.
extension_path='share\qmtest\site-extensions-2.5'
prefix='C:/app/Python25'
--
Edgar Johansen
Kongsberg Seatex AS



More information about the qmtest mailing list