[Dcmlib] tesqt suite python

Jean-Pierre Roux Jean-Pierre.Roux at creatis.insa-lyon.fr
Tue Oct 21 15:18:51 CEST 2003


Bonjour, les gédécéhèmeux!

Soucis avec la testsuite :

J'ai bien :
[jpr at creatis-jpr]$ echo $GDCM_TEST_DATA_PATH
/home/jpr/gdcmData

mais, au lancement  :
[jpr at creatis-jpr gdcmPython]$        python testSuite.py
GDCM_TEST_DATA_PATH is not setup properly. This test suite
   requires that some Dicom reference files be installed.

Ce qui fait, que, pour chaque fichier 'testé' :

======================================================================
ERROR: testBarre (__main__.gdcmTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "testSuite.py", line 512, in testBarre
    gdcmTestCase._BaseTest(self, gdcmTestCase.BarreFiles)
  File "testSuite.py", line 501, in _BaseTest
    fileName = os.path.join(GDCM_TEST_DATA_PATH, entry[0])
  File "/usr/src/build/87651-i386/install/usr/lib/python2.2/posixpath.py",
line 50, in join
    elif path == '' or path[-1:] == '/':
TypeError: unsubscriptable object

Question :
C'est quoi ce chemin
"/usr/src/build/87651-i386/install/usr/lib/python2.2/posixpath.py" ?

Thx

JPRx





More information about the Dcmlib mailing list