-
Notifications
You must be signed in to change notification settings - Fork 565
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
nbconvert failed: Inkscape svg to pdf conversion failed #769
Comments
Is there a file at:
? That's the location that |
This may be fixed by #985. |
Closing issue as stale. If you'd like more information on similar issues see my comment here. If your issue is not fixed and does not fit into one of the other issues mentioned my comment, then please comment here asking to re-open and add any additional information that you may have. |
this is not fixed. |
@AshtonSBradley Need some more details on this one for setup, steps taken, versions of packages used. Haven't had many reports of this issue in the year since this was released. |
sorry, that was not a very helpful comment of mine. I must admit I have given up trying to do any of this now, I just export to html and print the pdf. Does mean I can't get latex out of it anymore though. Setup is MacOS 10.14.16, jupyterlab kernel is julia 1.4. Error message is (for pdf and latex export): Not sure how to track down relevant packages that jupyter knows about.
|
What version of nbconvert were you using (assuming 5.6.1)? And what version of inkscape? And finally what python version? For a time, on OSX, it was installed in |
higgs:~ abradley$ jupyter --version higgs:~ abradley$ inkscape --version higgs:~ abradley$ python -V |
Can you paste the outcome of: python -c "from shutil import which; print(which('inkscape'))" ? seems off that your command line can find the which patch but not nbconvert :/ |
higgs:~ abradley$ python -c "from shutil import which; print(which('inkscape'))" |
And you're running nbconvert from the same python installation? Are you setting any custom nbconvert / jupyter config anywhere? Run this to check what the class has assigned at runtime for your environment: |
not sure, just running higgs:~ abradley$ python -c "from nbconvert.preprocessors.svg2pdf import SVG2PDFPreprocessor; print(SVG2PDFPreprocessor().inkscape)" |
That means you're using a different python environment than your command line The way to fix this more generally is to install a virtualenv or a conda environment to isolate your python packages and run lab while one of those are active. This helps eliminate the potential overlap in runtime python choices for packages / language versions. |
That didn't fix it. btw I am not making any call to inkscape directly, just choosing export from jupyterlab. Does jupyter use python 2 by default or something? |
No, you might need to check where you're jupyter command is stored and see how it's launching python ... maybe it's installed from your system python 2 and ignoring your local environment? (I don't have an OSX machine to inspect this for you). Normally these instructions do the trick (with In the end I think you'd need to figure out what environment your jupyter lab is using and make sure it has nbconvert 5.6.1+ and is in python 3.5+. |
When I want to save my notebook as a PDF or Tex doc, I get this error message.
I have downloaded the Inkscape app on Mac, and the Inkscape extension, but it did not changed much.
I guess that somehow I need to tell Julia to take that "package" into account, but I don't know how.
Could someone provide guidance ?
Thanks !
The text was updated successfully, but these errors were encountered: