Skip to content

[make] Could not import extension mathdef (exception: cannot import name 'latex_visit_math') #1075

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

Closed
Huxpro opened this issue Sep 25, 2019 · 3 comments

Comments

@Huxpro
Copy link
Contributor

Huxpro commented Sep 25, 2019

spec/document
λ make all
touch _build/.nojekyll
cp -f index.html _build/
(cd core; make BUILDDIR=_build all)
sphinx-build -b latex -d _build/doctrees -D latex_paper_size=a4  . _build/latex
Running Sphinx v2.2.0

Extension error:
Could not import extension mathdef (exception: cannot import name 'latex_visit_math')
make[1]: *** [latexpdf] Error 2
make: *** [build-core] Error 2

I could find the mathdef.py file under the repo https://github.com/WebAssembly/funclets/blob/master/document/core/util/mathdef.py but not sure how to fix this.

@rossberg
Copy link
Member

Hm, sphinx.ext.mathbase, where this function is imported from, has been deprecated in Sphinx 1.8 (last September). But it's not scheduled for removal before v3, so I don't know what the issue is. Maybe they screwed it up with the recent v2 release. Can you try downgrading to 1.7 or 1.8?

Other than that, happy to take patches for upgrading to newer Sphinx versions. :)

@Huxpro
Copy link
Contributor Author

Huxpro commented Sep 26, 2019

@rossberg thanks! apparently v1.7 works for me (although v1.8 still complained the same thing).

@Huxpro Huxpro closed this as completed Sep 26, 2019
@Huxpro Huxpro changed the title Could not import extension mathdef (exception: cannot import name 'latex_visit_math') [make] Could not import extension mathdef (exception: cannot import name 'latex_visit_math') Sep 26, 2019
@rossberg
Copy link
Member

I filed an issue against Sphinx: sphinx-doc/sphinx#6708

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

2 participants