From: Joel B. M. <jm...@ga...> - 2013-12-06 13:17:37
|
I'm getting a unicodeescape error importing matplotlib in the IPython notebook interface. The traceback is shown below. Annotate states that https://github.com/matplotlib/matplotlib/commit/bd71341ff645e1e4eb7470a5d2a5541e73bf6d5f introduced the changes to __init__.py which appears to have instigated the error. I was able to import matplotlib 1.3.1 in the IPython notebook. This traceback is appearing for me in both IPython 1.0.0 and 1.1.0. I'm on win32 32-bit. I would appreciate feedback on whether this is a real regression or something on my system. import matplotlib --------------------------------------------------------------------------- UnicodeDecodeError Traceback (most recent call last) <ipython-input-1-82be63b7783c> in <module>() ----> 1 import matplotlib C:\Python27\lib\site-packages\matplotlib\__init__.py in <module>() --> 240 class Verbose: C:\Python27\lib\site-packages\matplotlib\__init__.py in Verbose() --> 252 for arg in map(six.u, sys.argv[1:]): C:\Python27\lib\site-packages\six.pyc in u(s) --> 468 return unicode(s, "unicode_escape") UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape Thanks, Joel |