Ticket #10751 (new)

Opened 6 years ago

Last modified 5 years ago

Problems with python reading in file paths containing python escape characters

Reported by: Lottie Greenwood Owned by:
Priority: major Milestone: Release 3.5
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester:

Description (last modified by Lottie Greenwood) (diff)

Windows specific due to the use of backslash. \x is used as example below but any character that is considered special if within a string with '\' before it will be a problem.

When mantid is reading in files using python, where the path name contains \x (e.g \xxu\datafiles\...) in some circumstances it appears to to read it as a special escape character and throw a 'ValueError: invalid \x escape' error.

To replicate:

Put data in a folder which at some point in it's file path has an \x. Follow http://www.mantidproject.org/PowderDiffractionReduction or http://www.mantidproject.org/Direct:ConvertToEnergy instructions, using the data from that folder.

Change History

comment:1 Changed 6 years ago by Lottie Greenwood

  • Milestone changed from Backlog to Release 3.4
  • Description modified (diff)
  • Summary changed from Problems reading in file paths containing \x to Problems with python reading in file paths containing python escape characters

comment:2 Changed 5 years ago by Nick Draper

  • Milestone changed from Release 3.4 to Release 3.5

Moved to R3.5 at the R3.4 code freeze

comment:3 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 11593

Note: See TracTickets for help on using tickets.