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
XDG_CONFIG_HOME causes server to crash #3068
Comments
What version of mpl are you using? This should be working on master. |
On 5/17/14 9:30 AM, Thomas A Caswell wrote:
|
It looks like on the master branch all calls to |
If I am understanding the code correctly, the crash is caused by this line: return os.environ.get('XDG_CONFIG_HOME', os.path.join(get_home(), '.config')) if XDG_CONFIG_HOME does not exist, then get_home is called, and then joined to 'config.' The problem with my configuration is that HOME in fact exists:
But there is no directory /home/user. Hence, the crash.
Setting does not help
Also does not help. |
can you do a
As a side note, wrapping code blocks in triple back quotes ('```') makes them format better. |
On 5/17/14 9:27 PM, Thomas A Caswell wrote:
Conversely, I guess I can always do: if os.environ.get('HOME') and not os.path.isdir(os.environ['HOME']: Thanks for your help P. |
The goal is to have a release candidate by the end of the month. |
I am using matplotlib on a server to produce graphs. Ther server sets my HOME varialbe to /home/username. But the server does not create a home directory. When I try to import matplot lib, the server crashes because it tries to find a home directory. THe partial traceback is below.
[TAC edited to make backtrace readable]
The text was updated successfully, but these errors were encountered: