#25 IOError when using Barcode List

closed-fixed
None
5
2011-07-04
2011-06-30
Terry O'Neill
No

When trying to generate a Manifest using a barcode list the Manifest Maker gets up to the "Select Output Directory" step and when the user presses next an error dialog pops up such as:

Title: IO error
Text: The file '/control1/file1_1' had an IO error

Note that files are found correctly in the Select Base Directory step. In the example given above the barcode list file gave a relative file path of 'control1/file1_1'.

Discussion

  • Terry O'Neill
    Terry O'Neill
    2011-06-30

    Setup for error situation and picture of error message

     
  • Terry O'Neill
    Terry O'Neill
    2011-06-30

    • assigned_to: nobody --> acunliffe
     
  • Terry O'Neill
    Terry O'Neill
    2011-06-30

    Seems to be a problem with how relative file names are handled. Have changed line of code in NumberingMethod.py from:
    relativeFilePath = fullFilePath[len(self.baseDir):]
    to:
    relativeFilePath = os.path.relpath(fullFilePath, self.baseDir)

    This seems to fix the problem as subsequent code no longer sees the reference with a prefix / which seems to have previously been confusing it to think it was an absolute directory.

     
  • Allan Cunliffe
    Allan Cunliffe
    2011-07-04

    • status: open --> closed-fixed
     
  • Allan Cunliffe
    Allan Cunliffe
    2011-07-04

    Tested in Manifest Maker Testing Branch (Date: Thu Jun 30 13:38:25 2011 +1000)

    Manifest Maker supports relative path names in barcode lists.