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
I've got a Debian stable host running pandoc 2.17.1.1, pypandoc 1.10, Python 3.11.2 and I do have an issue when running https://github.com/novoid/lazyblorg/ in a virtualenv in case that this matters.
The issue consists of many warning messages, "polluting" the output console with those snippets:
WARNING:pypandoc:Could not load translations for en-US
data file translations/en.yaml not found
WARNING:pypandoc:The term Abstract has no translation defined.
One for each pypandoc call, which it uses often.
I already "disabled" logging messages via logging.getLogger('pypandoc').addHandler(logging.NullHandler()) as described in the README. This removed some other output but not the one above.
I tried to symlink the translations dir according to hints from jgm/pandoc#6885
mkdir ~/.pandoc/
cd ~/.pandoc/
ln -s /usr/share/pandoc/data/translations .
ls ~/.pandoc/translations/en.yaml ## shows correct file
The log output you provided, suggest that it's "pandoc" that can't find the translation file, however I have never seen this before.
I know running pypandoc in a venv shouldn't effect this. My only suggestions would be to either try to set the data dir argument when using convert_*, check the pandoc documentation, or asking JGM about it as this seems more like a pandoc issue more than a (py)pandoc issue
Hi,
I've got a Debian stable host running pandoc 2.17.1.1, pypandoc 1.10, Python 3.11.2 and I do have an issue when running https://github.com/novoid/lazyblorg/ in a virtualenv in case that this matters.
The issue consists of many warning messages, "polluting" the output console with those snippets:
One for each pypandoc call, which it uses often.
I already "disabled" logging messages via
logging.getLogger('pypandoc').addHandler(logging.NullHandler())
as described in the README. This removed some other output but not the one above.I tried to symlink the translations dir according to hints from jgm/pandoc#6885
That didn't help.
I could not identify any relevant PATH parameter in
convert_text()
from https://github.com/JessicaTegner/pypandoc/blob/master/pypandoc/__init__.py which would allow me to set the data/translations path.Furthermore, I did not find any
pandoc
option I would have been able to use with theextra_args
ofconvert_text()
.Somehow, (py)pandoc is not able to locate the existing translation file
/usr/share/pandoc/data/translations/en.yaml
.Not that this file is needed in my case but I think it would solve my issue when (py)pandoc would be able to access that file.
Any idea what I could do to fix this?
The text was updated successfully, but these errors were encountered: