New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
matplotlib failing to import when running from Unicode path #1075
Comments
You can either use an earlier version, or wait until the next build. There should be one soon (tm). What OS are you using? |
win 7, 64 bit. |
I'm not sure what this means... Can you take a screenshot of Help > About as well as the graph menu being disabled? Additionally, can you open the Also check |
@blitzmann i tried this solution: #1001 (comment) logfile: https://gist.github.com/hraesvelgr/1566c1e4a74d1dd51afc202512b4695c content of the graphframe-data:
|
logfile ist too big to post (character-limit) |
Use gist (link up at the top |
done. |
You have to share the link with us. We won't know what it is. :) |
https://gist.github.com/hraesvelgr/1566c1e4a74d1dd51afc202512b4695c Lunk already has been shared with all the other data you needed :) |
Here's the error. It's due to having unicode characters in the path ( |
@Ebag333 excellent work btw on the logging stuff. Wouldn't have this error without it. Kudos :D |
I'm actually working on the locale tests currently. They're all sorts of messed up because of the revert. I suspect that it has to do with the unicode chars, but some stuff in git thinks they exist and some doesn't. Super frustrating. Since you haven't submitted a PR on the unicode fix I'll probably tackle that next (unless you have an active branch working on it?) |
@hraesvelgr also, as a work around, don't use pyfa from a directory with unicode characters. If you install pyfa with the For future reference for researching this issue, quick google results: http://stackoverflow.com/questions/30095006/python-unicode-decode-error-when-importing-matplotlib |
Locale tests for pyfa won't really help for this issue if it's an internal |
Um, no, they wouldn't.
They don't set Quick search doesn't turn up an issue: |
So... The issue is because of my name (i.e. the name of the directory) and a problem with ascii-table? Ok, and if i simply change the name of my directory with "simple" letters? |
python2, which pyfa is written on, has shit support for unicode characters (rather, the applications have shit support if unicode is not kept in mind while developing).
I strongly advise against changing the actual directory name. There are a lot of things on your system that utilize this and will break if you just arbitrarily change it. :) Here are your options until this can be verified and fixed (or determined unfixable for some reason):
I'll keep progress posted in this thread as to what I find out. Thanks :) |
Much appreciated! |
Can confirm this is a matplotlib/matplotlib@3ba4f5a Updating Until any of that happens, though, if you're interested in using graphing support, please ensure that pyfa doesn't run from a directory which contains Unicode characters. |
I'm going to assume this issue is not longer a thing with the new 2.x versions for the following reasons:
Going to close this issue as solved, if something else creeps up, please open a new issue :) |
On windows 7 32 bit and matplotlib 2.2.2 the problem still persists |
@ine16 can you provide some more details? Are you sure it's due to locale issue, or possibly another reason why graph option might be grayed out? |
downloaded https://github.com/pyfa-org/Pyfa/releases/tag/v1.28.1
but graph is still greyed out. tried to change the "gui" file in "library zip", but 7zip refused this with an error.
so no graphs for me?
@blitzmann says:
WORKAROUND: This is a known issue for the graphing library that we ship with (
matplotlib
v1.4.3). It's been fixed in a higher version, however we haven't been able to update this library just yet. In the meantime, please ensure that pyfa runs from a non-Unicode directory (ASCII only)The text was updated successfully, but these errors were encountered: