Open netotz opened 3 years ago
My temporary solution was to use the absolute path as a string literal where I installed Inkscape instead of calling self.inkscape
, in my case the path is 'C:\\Program Files\\Inkscape\\inkscape.exe'
:
https://github.com/jupyter/nbconvert/blob/88baf7a9ca724d74c9f890a60d5c3680e8959a14/nbconvert/preprocessors/svg2pdf.py#L57
in that line I have p = subprocess.Popen(['C:\\Program Files\\Inkscape\\inkscape.exe', '--version']
.
I printed self.inkscape
and the output was 'C:\Program Files\Inkscape\inkscape.exe'
. I thought it was because of the double back slash so I tried os.path.abspath(self.inkscape)
but it was adding at the beginning the path from where I was calling the command. I also tried pathlib.Path(self.inkscape)
but it didn't work, so I have no idea what the problem could be.
By the way as you can see, this is previous to 5852762 as that change doesn't work for me.
May I kindly ask to put this to high priority? There are already a pull requests which shall fix this issue, e.g. https://github.com/jupyter/nbconvert/pull/1512. @MSeal Is there a way I can help to move it forward?
By the way, this is probably a duplicate of https://github.com/jupyter/nbconvert/issues/1447
By Changing the version of nbconvert
to 5.5.0, it did work!
I think the developers of nbconvert
should refer to the version 5.5.0?
By Changing the version of
nbconvert
to 5.5.0, it did work! I think the developers ofnbconvert
should refer to the version 5.5.0?
I didn't use any other method but added inkscape to system path before compiling GAN_Human.ipynb
to latex. Anyone else met this problem could take this into consideration...
Trying to convert a Jupyter notebook to PDF throws the following trace error:
Before that I was getting an error related to Inkscape but I reinstalled it and followed this answer: https://github.com/jupyter/nbconvert/issues/456#issuecomment-452833451
nbconvert version: 6.0.7