Re: [Matplotlib-users] usetex=True and savefig(eps-file)
Hi Jouni, Thanks for your explaination. On Wednesday 02 December 2009 17:20:37 Jouni K. Seppänen wrote: Matthias Michler matthiasmich...@gmx.net writes: ./root/article.cls.tex: Permission denied ./root/article.cls: Permission denied ./lost+found/article.cls.tex: Permission denied ./lost+found/article.cls: Permission denied ./root/article.cls.tex: Permission denied ./root/article.cls: Permission denied ./lost+found/article.cls.tex: Permission denied ./lost+found/article.cls: Permission denied That looks like a TeX configuration problem. I'm guessing that when TeX encounters \documentclass{article}, it asks the path-searching library for article.cls, and for some reason /root and /lost+found are included in the path. You don't have permission as normal user to access these directories, so the library causes error messages to be printed. The path probably also includes the correct directories, so the search eventually succeeds, but then article.cls wants to input size10.clo, causing a new round of errors: ./root/size10.clo.tex: Permission denied ./root/size10.clo: Permission denied (etc) Do you know why is happens only for ps/eps-files? Have you set any TeX-related environment variables or edited any configuration files? What does kpsepath tex print? in my .zshrc I set TEXINPUTS=~/Texte/Styles//:.//: export TEXINPUTS and $ kpsepath tex yields /home/michler/Texte/Styles//:.//:.:/home/michler/.texmf-config/tex/kpsewhich//:/home/michler/.texmf-var/tex/kpsewhich//:/home/michler/texmf/tex/kpsewhich//:/etc/texmf/tex/kpsewhich//:!!/var/lib/texmf/tex/kpsewhich//:!!/usr/local/share/texmf/tex/kpsewhich//:!!/usr/share/texmf/tex/kpsewhich//:!!/usr/share/texmf-texlive/tex/kpsewhich//:/home/michler/.texmf-config/tex/generic//:/home/michler/.texmf-var/tex/generic//:/home/michler/texmf/tex/generic//:/etc/texmf/tex/generic//:!!/var/lib/texmf/tex/generic//:!!/usr/local/share/texmf/tex/generic//:!!/usr/share/texmf/tex/generic//:!!/usr/share/texmf-texlive/tex/generic//:/home/michler/.texmf-config/tex///:/home/michler/.texmf-var/tex///:/home/michler/texmf/tex///:/etc/texmf/tex///:!!/var/lib/texmf/tex///:!!/usr/local/share/texmf/tex///:!!/usr/share/texmf/tex///:!!/usr/share/texmf-texlive/tex/// Furthermore I did (as root): $ cd /root$ cd /lost+found/ and $ cd /tmp/ and $ ls **/*tex **/*.cls but always got ls: cannot access **/*tex: No such file or directory ls: cannot access **/*.cls: No such file or directory ... That means there are no tex or cls-files. Do you have any idea what's wrong? Kind regards, Matthias -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] usetex=True and savefig(eps-file)
Matthias Michler matthiasmich...@gmx.net writes: Do you know why is happens only for ps/eps-files? The ps backend uses TeX in a different way than the other backends. It uses psfrag and dvips to construct the final file. Have you set any TeX-related environment variables or edited any configuration files? What does kpsepath tex print? in my .zshrc I set TEXINPUTS=~/Texte/Styles//:.//: It's probably the .// entry, which causes TeX to search all subdirectories of the current directory. The ps backend does something like cd /tmp latex file.tex so it should just look in subdirectories of the temporary directory, but perhaps it somehow goes awry. Do you have some setting that causes temporary files to end up in the root directory? -- Jouni K. Seppänen http://www.iki.fi/jks -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] usetex=True and savefig(eps-file)
Hi Jouni, thanks again for your advice. I don't think that I do have 'some setting that causes temporary files to end up in the root directory, because my system is more or less kubuntu (8.04) out of the box. But maybe you are nevertheless right, because in tmp there are ./root and ./lost+found, which I am not allowed to enter. Finally this error is due to the behaviour of ps-backend and my TEX-path, which searches in all sub-directories. Thanks a lot for your time and advice to locate the root of the strange behaviour. Kind regards, Matthias On Thursday 03 December 2009 19:04:55 Jouni K. Seppänen wrote: Matthias Michler matthiasmich...@gmx.net writes: Do you know why is happens only for ps/eps-files? The ps backend uses TeX in a different way than the other backends. It uses psfrag and dvips to construct the final file. Have you set any TeX-related environment variables or edited any configuration files? What does kpsepath tex print? in my .zshrc I set TEXINPUTS=~/Texte/Styles//:.//: It's probably the .// entry, which causes TeX to search all subdirectories of the current directory. The ps backend does something like cd /tmp latex file.tex so it should just look in subdirectories of the temporary directory, but perhaps it somehow goes awry. Do you have some setting that causes temporary files to end up in the root directory? -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] usetex=True and savefig(eps-file)
Hello list, may be the last message got lost among the lots of mpl-mails. So I'd like to ask you once more for comments. Can anyone confirm this behaviour or should it be due to some wrong configuration on my computer? Kind regards, Matthias On Monday 16 November 2009 15:45:08 Matthias Michler wrote: Hello list, I encounter some strange error output including several Permission denied when using usetex=True and saveing eps-pictures. My example is quite easy and the output is attached. (Please notice the resulting figure looks as expected.) import matplotlib matplotlib.rc('text', usetex=True) import matplotlib.pyplot as plt plt.plot([0, 1], [0, 1]) plt.savefig(test_usetex_with_savefig_as_eps_file.eps) I have no problems with png-files. Can anybody confirm this behaviour? Kind regards and thanks in advance for any hints, Matthias -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] usetex=True and savefig(eps-file)
I can confirm that this works for me, so it is probably some sort of configuration difference. Can you provide the error output? It would be useful to know what specifically it is being denied permission for. Mike Matthias Michler wrote: Hello list, may be the last message got lost among the lots of mpl-mails. So I'd like to ask you once more for comments. Can anyone confirm this behaviour or should it be due to some wrong configuration on my computer? Kind regards, Matthias On Monday 16 November 2009 15:45:08 Matthias Michler wrote: Hello list, I encounter some strange error output including several Permission denied when using usetex=True and saveing eps-pictures. My example is quite easy and the output is attached. (Please notice the resulting figure looks as expected.) import matplotlib matplotlib.rc('text', usetex=True) import matplotlib.pyplot as plt plt.plot([0, 1], [0, 1]) plt.savefig(test_usetex_with_savefig_as_eps_file.eps) I have no problems with png-files. Can anybody confirm this behaviour? Kind regards and thanks in advance for any hints, Matthias -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] usetex=True and savefig(eps-file)
On Mon, Nov 16, 2009 at 9:45 AM, Matthias Michler matthiasmich...@gmx.net wrote: Hello list, I encounter some strange error output including several Permission denied when using usetex=True and saveing eps-pictures. My example is quite easy and the output is attached. (Please notice the resulting figure looks as expected.) import matplotlib matplotlib.rc('text', usetex=True) import matplotlib.pyplot as plt plt.plot([0, 1], [0, 1]) plt.savefig(test_usetex_with_savefig_as_eps_file.eps) I have no problems with png-files. Can anybody confirm this behaviour? Kind regards and thanks in advance for any hints, I cannot reproduce this behavior. It looks like there is some problem with your latex environment, not matplotlib. I suggest you ensure latex is working properly before trying to use usetex. Darren -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] usetex=True and savefig(eps-file)
On Wed, Dec 2, 2009 at 9:57 AM, Michael Droettboom md...@stsci.edu wrote: I can confirm that this works for me, so it is probably some sort of configuration difference. Can you provide the error output? It would be useful to know what specifically it is being denied permission for. He had attached it to the original post. -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] usetex=True and savefig(eps-file)
Hi Darren, thanks for your reply. The point is that saving pdf, jpg, etc. works fine but in case I use ps or eps I get the long error output. Therefore I expected a problem in the ps-backend. Kind regards, Matthias On Wednesday 02 December 2009 15:57:31 Darren Dale wrote: On Mon, Nov 16, 2009 at 9:45 AM, Matthias Michler matthiasmich...@gmx.net wrote: Hello list, I encounter some strange error output including several Permission denied when using usetex=True and saveing eps-pictures. My example is quite easy and the output is attached. (Please notice the resulting figure looks as expected.) import matplotlib matplotlib.rc('text', usetex=True) import matplotlib.pyplot as plt plt.plot([0, 1], [0, 1]) plt.savefig(test_usetex_with_savefig_as_eps_file.eps) I have no problems with png-files. Can anybody confirm this behaviour? Kind regards and thanks in advance for any hints, I cannot reproduce this behavior. It looks like there is some problem with your latex environment, not matplotlib. I suggest you ensure latex is working properly before trying to use usetex. Darren -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] usetex=True and savefig(eps-file)
Matthias Michler matthiasmich...@gmx.net writes: ./root/article.cls.tex: Permission denied ./root/article.cls: Permission denied ./lost+found/article.cls.tex: Permission denied ./lost+found/article.cls: Permission denied ./root/article.cls.tex: Permission denied ./root/article.cls: Permission denied ./lost+found/article.cls.tex: Permission denied ./lost+found/article.cls: Permission denied That looks like a TeX configuration problem. I'm guessing that when TeX encounters \documentclass{article}, it asks the path-searching library for article.cls, and for some reason /root and /lost+found are included in the path. You don't have permission as normal user to access these directories, so the library causes error messages to be printed. The path probably also includes the correct directories, so the search eventually succeeds, but then article.cls wants to input size10.clo, causing a new round of errors: ./root/size10.clo.tex: Permission denied ./root/size10.clo: Permission denied (etc) Have you set any TeX-related environment variables or edited any configuration files? What does kpsepath tex print? -- Jouni K. Seppänen http://www.iki.fi/jks -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users