when $HOME filesystem not writable

Hello,

  I run my code from a batch system, from where the $HOME-filesystem is not writable. In __init__.py in _get_home it finds ("~"), but then crashes because it doesn't have access to it. I tried to set XDG_CONFIG_HOME and MPLCONFIGDIR to circumvent this problem. But it still aborts. The only solution I have found so far is to hack the code and replace ("~") by my writable work-directory.

  Is there any other way to tell it which directory to use - without having to touch the actual code?

Thanks,
         Elena

···

_____________________________________________________________________________

Dr Elena Breitmoser

EPCC>

The University of Edinburgh,
JCMB, Mayfield Rd,
UK-Edinburgh EH9 3JZ
Tel/Fax: +44 (0)131 650 6494/6555 * Room 3401*
_____________________________________________________________________________

"The University of Edinburgh is a charitable body, registered in
  Scotland, with registration number SC005336."

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

Which version of matplotlib are you using? I am fairly certain we fixed this problem for Google App Engine, which also does not have writable home directories.

Ben Root

···

On Fri, Apr 4, 2014 at 4:50 AM, <e.breitmoser@…1189…> wrote:

Hello,

I run my code from a batch system, from where the $HOME-filesystem is not

writable. In init.py in _get_home it finds ("~"), but then crashes

because it doesn’t have access to it. I tried to set XDG_CONFIG_HOME and

MPLCONFIGDIR to circumvent this problem. But it still aborts. The only

solution I have found so far is to hack the code and replace ("~") by my

writable work-directory.

Is there any other way to tell it which directory to use - without having

to touch the actual code?

Thanks,

     Elena

Dr Elena Breitmoser

|EPCC|

The University of Edinburgh,

JCMB, Mayfield Rd,

UK-Edinburgh EH9 3JZ

Tel/Fax: +44 (0)131 650 6494/6555 * Room 3401*


"The University of Edinburgh is a charitable body, registered in

Scotland, with registration number SC005336."

The University of Edinburgh is a charitable body, registered in

Scotland, with registration number SC005336.


Learn Graph Databases - Download FREE O’Reilly Book

“Graph Databases” is the definitive new guide to graph databases and their

applications. Written by three acclaimed leaders in the field,

this first edition is now available. Download your free book today!

http://p.sf.net/sfu/NeoTech


Matplotlib-devel mailing list

Matplotlib-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Hi,

  I use matplotlib version 1.3.1.

Elena

···

On Fri, 18 Apr 2014, Benjamin Root wrote:

Which version of matplotlib are you using? I am fairly certain we fixed
this problem for Google App Engine, which also does not have writable home
directories.

Ben Root

On Fri, Apr 4, 2014 at 4:50 AM, <e.breitmoser@...1189...> wrote:

Hello,

  I run my code from a batch system, from where the $HOME-filesystem is not
writable. In __init__.py in _get_home it finds ("~"), but then crashes
because it doesn't have access to it. I tried to set XDG_CONFIG_HOME and
MPLCONFIGDIR to circumvent this problem. But it still aborts. The only
solution I have found so far is to hack the code and replace ("~") by my
writable work-directory.

  Is there any other way to tell it which directory to use - without having
to touch the actual code?

Thanks,
         Elena

_____________________________________________________________________________

Dr Elena Breitmoser
>EPCC>
The University of Edinburgh,
JCMB, Mayfield Rd,
UK-Edinburgh EH9 3JZ
Tel/Fax: +44 (0)131 650 6494/6555 * Room
3401*

_____________________________________________________________________________

"The University of Edinburgh is a charitable body, registered in
  Scotland, with registration number SC005336."

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Cheers,
         Elena

_____________________________________________________________________________

Dr Elena Breitmoser

EPCC>

The University of Edinburgh,
JCMB, Mayfield Rd,
UK-Edinburgh EH9 3JZ
Tel/Fax: +44 (0)131 650 6494/6555 * Room 3401*
_____________________________________________________________________________

"The University of Edinburgh is a charitable body, registered in
  Scotland, with registration number SC005336."

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

Elena,

Is it possible for you to use the current master branch? We
definitely fixed this so that it would work with gae.

Tom

···

On Fri, Apr 18, 2014 at 9:32 AM, <e.breitmoser@...1189...> wrote:

Hi,

  I use matplotlib version 1.3.1.

Elena

On Fri, 18 Apr 2014, Benjamin Root wrote:

Which version of matplotlib are you using? I am fairly certain we fixed
this problem for Google App Engine, which also does not have writable home
directories.

Ben Root

On Fri, Apr 4, 2014 at 4:50 AM, <e.breitmoser@...1189...> wrote:

Hello,

  I run my code from a batch system, from where the $HOME-filesystem is not
writable. In __init__.py in _get_home it finds ("~"), but then crashes
because it doesn't have access to it. I tried to set XDG_CONFIG_HOME and
MPLCONFIGDIR to circumvent this problem. But it still aborts. The only
solution I have found so far is to hack the code and replace ("~") by my
writable work-directory.

  Is there any other way to tell it which directory to use - without having
to touch the actual code?

Thanks,
         Elena

_____________________________________________________________________________

Dr Elena Breitmoser
>EPCC>
The University of Edinburgh,
JCMB, Mayfield Rd,
UK-Edinburgh EH9 3JZ
Tel/Fax: +44 (0)131 650 6494/6555 * Room
3401*

_____________________________________________________________________________

"The University of Edinburgh is a charitable body, registered in
  Scotland, with registration number SC005336."

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Cheers,
         Elena

_____________________________________________________________________________

Dr Elena Breitmoser
>EPCC>
The University of Edinburgh,
JCMB, Mayfield Rd,
UK-Edinburgh EH9 3JZ
Tel/Fax: +44 (0)131 650 6494/6555 * Room 3401*
_____________________________________________________________________________

"The University of Edinburgh is a charitable body, registered in
  Scotland, with registration number SC005336."

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

--
Thomas Caswell
tcaswell@...149...

Tom,

  I can use the current master branch. But in contrast to the issue on Google App Engine, the computer I am working on can see the HOME-dir, so it will set it. But then it has no read/write permissions on it (when running as a batch job).

Thanks,
Elena

···

On Fri, 18 Apr 2014, Thomas Caswell wrote:

Elena,

Is it possible for you to use the current master branch? We
definitely fixed this so that it would work with gae.

Tom

On Fri, Apr 18, 2014 at 9:32 AM, <e.breitmoser@...1189...> wrote:

Hi,

  I use matplotlib version 1.3.1.

Elena

On Fri, 18 Apr 2014, Benjamin Root wrote:

Which version of matplotlib are you using? I am fairly certain we fixed
this problem for Google App Engine, which also does not have writable home
directories.

Ben Root

On Fri, Apr 4, 2014 at 4:50 AM, <e.breitmoser@...1189...> wrote:

Hello,

  I run my code from a batch system, from where the $HOME-filesystem is not
writable. In __init__.py in _get_home it finds ("~"), but then crashes
because it doesn't have access to it. I tried to set XDG_CONFIG_HOME and
MPLCONFIGDIR to circumvent this problem. But it still aborts. The only
solution I have found so far is to hack the code and replace ("~") by my
writable work-directory.

  Is there any other way to tell it which directory to use - without having
to touch the actual code?

Thanks,
         Elena

_____________________________________________________________________________

Dr Elena Breitmoser
>EPCC>
The University of Edinburgh,
JCMB, Mayfield Rd,
UK-Edinburgh EH9 3JZ
Tel/Fax: +44 (0)131 650 6494/6555 * Room
3401*

_____________________________________________________________________________

"The University of Edinburgh is a charitable body, registered in
  Scotland, with registration number SC005336."

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Cheers,
         Elena

_____________________________________________________________________________

Dr Elena Breitmoser
>EPCC>
The University of Edinburgh,
JCMB, Mayfield Rd,
UK-Edinburgh EH9 3JZ
Tel/Fax: +44 (0)131 650 6494/6555 * Room 3401*
_____________________________________________________________________________

"The University of Edinburgh is a charitable body, registered in
  Scotland, with registration number SC005336."

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

--
Thomas Caswell
tcaswell@...149...

Cheers,
         Elena

_____________________________________________________________________________

Dr Elena Breitmoser

EPCC>

The University of Edinburgh,
JCMB, Mayfield Rd,
UK-Edinburgh EH9 3JZ
Tel/Fax: +44 (0)131 650 6494/6555 * Room 3401*
_____________________________________________________________________________

"The University of Edinburgh is a charitable body, registered in
  Scotland, with registration number SC005336."

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.