Skip to content
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

PGF Backend with LuaLaTeX: Permission denied error #3848

Closed
lachholden opened this issue Nov 26, 2014 · 8 comments
Closed

PGF Backend with LuaLaTeX: Permission denied error #3848

lachholden opened this issue Nov 26, 2014 · 8 comments

Comments

@lachholden
Copy link

Using the PGF backend for Matplotlib, a permission denied error is occurring when using LuaLaTeX as the texsystem.

The minimal example as follows:

import matplotlib as mpl

mpl.use('pgf')
mplparams = {
    "font.family": "serif",
    "text.usetex": True,
    "pgf.texsystem": "lualatex",
    "pgf.rcfonts": False,
    "pgf.preamble": [r"\usepackage{fourier}"]
}
mpl.rcParams.update(mplparams)

import matplotlib.pyplot as plt
plt.title("Example Plot")
plt.plot([1, 2, 3, 4, 5])

plt.savefig('output.pdf')

Gives me the following error:

This is LuaTeX, Version beta-0.76.0-2013062820 (rev 4627)
(c:/users/lholden/appdata/local/temp/mpl_pgf_5oh3zg/figure.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ara

<snip>

*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(C:/Users/LHolden/AppData/Roaming/MiKTeX/2.9/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) ABD: EveryShipout initializing macroslualatex: Permission denied: c:/users/lho
lden/appdata/local/temp/mpl_pgf_5oh3zg/figure.pgf
lualatex: Data: c:/users/lholden/appdata/local/temp/mpl_pgf_5oh3zg/figure.pgf

I'm using 64-bit Python 2.7.8 from Anaconda 2.1.0, running Windows 8. luatex --version results in This is LuaTeX, Version beta-0.76.0-2013062820 (MiKTeX 2.9) (rev 4627). I am on version 1.4.2 of matplotlib.

Executing the same example within an administrator command prompt gave the same result. The same example with "pgf.texsystem": "lualatex" commented out completed successfully, except only the numbers were in the font specified in the preamble - the text was still in the default font.

@lachholden
Copy link
Author

Update:
After reading that xelatex was the default texsystem, I tried again changing pgf.texsystem to pdflatex, which worked perfectly. This error has only occurred for me when using lualatex.

@lachholden lachholden changed the title PGF Backend with LuaLaTeX: Permission denied PGF Backend with LuaLaTeX: Permission denied error Nov 26, 2014
@tacaswell tacaswell added this to the unassigned milestone Nov 26, 2014
@tacaswell
Copy link
Member

pgf is making the temporary directories using the standard library machinery and on skimming seems to dot all it's i's and cross all it's t's with the file writing.

I strongly suspect that something is borked with your luatex installation.

@lachholden
Copy link
Author

Tried removing and reintalling all lua* packages within MikTeX with no success. Will try uninstalling and doing a fresh reinstall of MikTeX in a little bit and will report back.

@lachholden
Copy link
Author

Update:
Complete re-install of MikTeX completed, still getting the same error.

@cgohlke
Copy link
Contributor

cgohlke commented Jan 13, 2015

I can reproduce this issue.

@jankatins
Copy link
Contributor

I can't reproduce this (win7, no admin, portable miktex, updated a few month ago, mpl 1.5.1, conda system)

@cgohlke
Copy link
Contributor

cgohlke commented Apr 18, 2016

I can also no longer reproduce this issue with mpl 1.5.1 and LuaTeX beta-0.80.0.

@anntzer
Copy link
Contributor

anntzer commented Dec 15, 2017

Closing for lack of activity and reproduction.
Feel free to request a reopen if still an issue.

@anntzer anntzer closed this as completed Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants