You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is similar to #294 but it looks like progress on that has stalled and my use case is slightly different as I am using the rebase_relative_paths extension. I've tried a number of different combinations of changing the working directory and providing a resource path but no matter what I can't get pypandoc to convert a document with images. Maybe I'm missing something but the document converts fine using an almost identical command provided to the pandoc binary. I have tried multiple versions of pandoc, the version listed below was just the last one I tested against.
>./main.py
[WARNING] Could not fetch resource documents/doc1/doc/../resources/image.png: PandocResourceNotFound "documents/doc1/doc/../resources/image.png"
Running the same command in pandoc doesn't produce any warnings about missing resources.
> pip show pypandoc
Name: pypandoc
Version: 1.10
Summary: Thin wrapper for pandoc.
Home-page: https://github.com/JessicaTegner/pypandoc
Author: b'Juho Veps\xc3\xa4l\xc3\xa4inen'
Author-email: [email protected]
License: MIT
Location: /Users/username/.pyenv/versions/3.10.1/envs/pypandoc-test/lib/python3.10/site-packages
Requires:
Required-by:
> python --version
Python 3.10.1
> pandoc --version
pandoc 2.18
Compiled with pandoc-types 1.22.2, texmath 0.12.5, skylighting 0.12.3,
citeproc 0.7, ipynb 0.2, hslua 2.2.0
Scripting engine: Lua 5.4
User data directory: /Users/kreby/.local/share/pandoc
Copyright (C) 2006-2022 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
The text was updated successfully, but these errors were encountered:
This issue is similar to #294 but it looks like progress on that has stalled and my use case is slightly different as I am using the rebase_relative_paths extension. I've tried a number of different combinations of changing the working directory and providing a resource path but no matter what I can't get pypandoc to convert a document with images. Maybe I'm missing something but the document converts fine using an almost identical command provided to the pandoc binary. I have tried multiple versions of pandoc, the version listed below was just the last one I tested against.
I've created a repo with an example that will hopefully help.
Using pypandoc
Running the same command in pandoc doesn't produce any warnings about missing resources.
The text was updated successfully, but these errors were encountered: