-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Error when creating and exporting plots in gr() backend: 'GetTempFileName failed: The file exists' #699
Comments
Glad you're enjoying it. Is this on windows? I am admittedly hopeless with
windows debugging.
…On Wed, Feb 22, 2017 at 11:00 PM PedroSapichu ***@***.***> wrote:
Hello all,
I cannot visualize or save png plots with gr().
I've been working with some pretty big datasets, generating thousands of
plots, reason why I use the gr() backend, since it's pretty fast.
Everything had worked just perfect yesterday with the exact same code.
Today I keep getting the same error each time I create even the simplest
plot. I cannot even visualize the plot, and that's a bummer since the
alternative I have is pyplot() and is significantly slower in generating
that amount of plots.
Here I attach the type of plot I've been generating. Left is pyplot(),
right is gr().
[image: example]
<https://cloud.githubusercontent.com/assets/25947175/23244245/ea0176f6-f951-11e6-8edd-f842a04cc68f.png>
I've tried all the obvious fixes (not a CS background, actually a
biologist), like rebooting julia, Jupyter, modifying the syntax, etc. I
just can't visualize a simple "plot(rand(10)" in the gr() backend, it gives
the same error.
Thank you all! I just discovered Julia, and the Plots.jl is a monster for
generating great visualizations!,
Pedro.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#699>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA492hDRNS0_LHoz1ZCD-VPBfAjInB1zks5rfQRsgaJpZM4MJhJR>
.
|
Yes, it is windows. It just suddenly stopped working. Hope it has a way around, gr() saves me hours of waiting. Thanks! |
Very odd... maybe there is an issue with your temporary file directory.
As a side note: Have you tried using backend |
I solved this by uninstalling everything, and now is working great. I'm still not sure what was the problem, but my best guess is that some wierd temporary file storage in windows was causing the problem in the computer I was using at the time, since my laptop and other independent computer were working just fine with the same settings/code. Thanks! |
UPDATE1 Both me and a colleague have been struggling with this same error, using the script I wrote, that saves a png through each iteration in a for loop, with a unique filename in each loop. We both are using a Windows machine, that belongs to the university. This might prevent us to access some temp file system (?), I actually don't know how to check this @ma-laforge (could you elaborate a bit more in this, whenever I type 'tempname()' I get the same result. This is odd, since the script had been working for a few days, and then suddenly it keeps throwing the same error. I've uninstalled everything and reinstalling, and that fixes the problem for a little while, but it appears again.
I'd appreciate any further help on this, thank you! |
Sure thing...
You can take a look at the code implementing this function:
In Windows, it calls a C? function If you say you are not getting unique names when this bug occurs, I would appreciate it if you raised an issue on Julia's own Github page: https://github.com/JuliaLang/julia. EDIT: I don't believe this should happen (my guess is that you should not run out of temporary file names with thousands of runs). There might be a bug in this function. If not, the base Julia guys might know what would cause this event. |
As a temporary solution: The Workaround 1 Workaround 2 Of course, you can always temporarily switch over to Workaround 3 |
@PedroSapichu: I have a side question: I know you said that However: In this case: I could imagine |
One more possibility/question: @PedroSapichu: Is your temp directory full when you look at it? i.e. is GR not deleting its temporary files as it is done with them? That might be an issue to raise with the GR backend - and might be making the |
Hello all,
I cannot visualize or save png plots with gr().
I've been working with some pretty big datasets, generating thousands of plots, reason why I use the gr() backend, since it's pretty fast. Everything had worked just perfect yesterday with the exact same code. Today I keep getting the same error each time I create even the simplest plot. I cannot even visualize the plot, and that's a bummer since the alternative I have is pyplot() and is significantly slower in generating that amount of plots.
Here I attach the type of plot I've been generating. Left is pyplot(), right is gr().
I've tried all the obvious fixes (not a CS background, actually a biologist), like rebooting julia, Jupyter, modifying the syntax, etc. I just can't visualize a simple "plot(rand(10)" in the gr() backend, it gives the same error.
Thank you all! I just discovered Julia, and the Plots.jl is a monster for generating great visualizations!,
Pedro.
The text was updated successfully, but these errors were encountered: