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

Including some files from matplotlib fails, commandline works #41

Open
miromarszal opened this issue Nov 8, 2021 · 2 comments
Open
Assignees
Labels

Comments

@miromarszal
Copy link

I have a handful of files from matplotlib that don't like to be included with svg. The one thing they have in common is being created with the imshow command, which means they contain an image. I have no issues with any other files generated with matplotlib.

The relevant part of the log:

Package svg Info: Calling Inkscape on input line 642.
runsystem(inkscape "figures//test.svg" -C --export-latex --export-filename="test_svg-tex.pdf")...executed.



Package svg Warning: The export with Inkscape failed for file
(svg)                `figures//test.svg'
(svg)                Troubleshooting: Please check in the log file how
(svg)                the invocation of Inkscape took place and try to
(svg)                execute it yourself in the terminal on input line 642.

The best part is that I can copy-paste the command to the terminal and it will work like a charm.

I included an example bad file here:
test.zip

@mrpiggi
Copy link
Owner

mrpiggi commented Nov 8, 2021

Which OS you are working with? The path figures//test.svg with two slashes looks odd to me

@miromarszal
Copy link
Author

This is on Ubuntu. It does look odd, but it works for other files, so I didn't think it could be the real issue. I checked on a Windows machine and there everything is fine.

@mrpiggi mrpiggi self-assigned this Nov 16, 2021
@mrpiggi mrpiggi added the bug label Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants