Matplotlib import fail


In the future please send all messages like this to the user mailing list (cc'd)

Try using the 1.4.1rc1 release candidate, there are windows installers
on sourceforge. If that does not work, please open a new github



On Thu, Oct 16, 2014 at 2:43 PM, Tobias Landwehr <Dolly-Klonschaf@...380...> wrote:

Greetings Thomas,

I am sorry to disturb you, but I found on github, that you could've already
provided a solution to my problem almost three weeks ago. I couldn't really
understand the way how to solve the prob, which is the reason I decided to
write you.

I am currently working with Python 2.7.2 and want to import the matplotlib.
Problems arise obviously since my username-folder contains a non-ascii sign
(german Ä). I would prefer to not setup a second user and the user's folder
shouldn't/can't be renamed.

If you could find some time to deal with the problem over the weekend or
give me a hint, how to solve it, I would be really grateful. Below you'll
find the fail report.

Many thanks in advance, Tobias

Traceback (most recent call last):
  File "C:\Python27\workspace\ITT\src\itt\statistics\block01\",
line 7, in <module>
    import matplotlib.pyplot as plt
  File "C:\Python27\lib\site-packages\matplotlib\", line 1048, in
    rcParams = rc_params()
  File "C:\Python27\lib\site-packages\matplotlib\", line 897, in
    fname = matplotlib_fname()
  File "C:\Python27\lib\site-packages\matplotlib\", line 759, in
    configdir = _get_configdir()
  File "C:\Python27\lib\site-packages\matplotlib\", line 630, in
    return _get_config_or_cache_dir(_get_xdg_config_dir())
  File "C:\Python27\lib\site-packages\matplotlib\", line 555, in
    path = get_home()
  File "C:\Python27\lib\site-packages\matplotlib\", line 323, in
    ret = func(*args, **kwargs)
  File "C:\Python27\lib\site-packages\matplotlib\", line 509, in
    path = os.path.expanduser("~")
  File "C:\Python27\lib\", line 310, in expanduser
    return userhome + path[i:]
UnicodeDecodeError: 'ascii' codec can't decode byte 0x84 in position 16:
ordinal not in range(128)

Thomas Caswell