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

Circular import #4

Open
eliedrian opened this issue Aug 27, 2020 · 3 comments
Open

Circular import #4

eliedrian opened this issue Aug 27, 2020 · 3 comments

Comments

@eliedrian
Copy link

All I get is this when running pandoc with this filter on.

Traceback (most recent call last):
  File "/home/tan/.local/bin/pandoc-latex-extensions", line 5, in <module>
    from pandoclatexextensions import main
  File "/home/tan/.local/lib/python3.8/site-packages/pandoclatexextensions/__init__.py", line 2, in <module>
    from .core import *
  File "/home/tan/.local/lib/python3.8/site-packages/pandoclatexextensions/core.py", line 33, in <module>
    from . import plugins
ImportError: cannot import name 'plugins' from partially initialized module 'pandoclatexextensions' (most likely due to a circular import) (/home/tan/.local/lib/python3.8/site-packages/pandoclatexextensions/__init__.py)
Error running filter pandoc-latex-extensions:
Filter returned error status 1
@eliedrian
Copy link
Author

eliedrian commented Aug 30, 2020

Apparently installing with pip didn't bring in the plugins folder? Copying what I needed (epigraph.py) from this repo to my plugins folder under site-packages worked.

Curious.

@relikd
Copy link

relikd commented Dec 2, 2020

Thanks @eliedrian, that fixed the issue. But now I face another one, did you have the same or is it my configuration?

% pandoc --filter pandoc-latex-extensions -o content.html content.tex

pandoc-latex-extensions: Wrote the following blocks to header-
includes.  If you use pandoc's  --include-in-header option then you
will need to  manually include these yourself.
Error running filter pandoc-latex-extensions:
Error in $: endOfInput

(and does this extension even work for the tex->html direction?)

@rtbs-dev
Copy link

Tested, hopefully solved with PR #6 . Works on my end (try pip install git+https://github.com/tbsexton/pandoc-latex-extensions.git@patch-1 to try it out on your side...since the version number wasn't changed, make sure to pip uninstall pandoc-latex-extensions first!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants