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
dvisvgm cannot create svg files in the default temporary storage folder on Windows #1368
Comments
Is there a bug report upstream(ie, https://github.com/mgieseki/dvisvgm/issues)? |
I have searched, but did not find a similar problem (maybe I missed it). |
This should be reported upstream because this is something upstream should handle IMO. |
I just stumbled over this ticket. The issue probably stems from the old dvisvgm version 2.6.3. It should be fixed since version 2.8. |
How did you even get here 😄 ? @TonyCrane have a mention of it in the docs and this can be closed. |
Sorry. That's my fault. |
Describe the bug
When I run a scene that contains
Tex
and do not make changes tocustom_defaults.yml
, anOSError
will be thrown, indicating that the svg file cannot be found.It may be because my current running directory is in the
D:
drive, and the system default temporary folder is in theC:
drive. And dvisvgm cannot run across disks.And when I set
temporary_storage
incustom_defaults.yml
to a folder inD:
drive, it can run normallyCode:
Wrong display or Error traceback:
Traceback
Additional context
dvisvgm version: 2.6.3
If I set the output level of dvisvgm to the highest level in
tex_file_writing.py
and output the executed command, I will see:Note that even if the output file is specified in the command as
"C:\Users\Me\AppData\Local\Temp\Tex\1b70addfb3f4902b.svg"
(absolute path). But dvisvgm still wants to use a relative path, and the currently running path is underD:
drive, so dvisvgm specifies the disk toC:
and sets the output location to"C:../../../AppData/Local/Temp/Tex/1b70addfb3f4902b.svg"
, which of course will cause errors.So facing this problem, we should try to solve the problem of dvisvgm (I think it will be more difficult), or change a default temporary storage folder for Windows instead of using the system default
tempfile.gettempdir()
.The text was updated successfully, but these errors were encountered: