haavee / jiveplot

Python based plotting package for CASA MeasurementSet
GNU General Public License v3.0
11 stars 9 forks source link

Compatibility issues for Python 3.7 or higher #18

Closed bmarcote closed 2 years ago

bmarcote commented 2 years ago

The current version of jiveplot cannot be used in Python 3.7 or higher (works fine up to 3.6) due to changes in the standard library. Relevant ones seems to be in the re module:

Changed in version 3.6: Unknown escapes in pattern consisting of '\' and an ASCII letter now are errors.
Changed in version 3.7: Unknown escapes in repl consisting of '\' and an ASCII letter now are errors.

The latter seems to trigger the following error when parsing any str in most of the functions (e.g. bl):

invalid escape sequence \w
haavee commented 2 years ago

I think is fixed in the python23compat branch, which will become the new master at some point