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

Could not import extension manim.utils.docbuild.manim_directive #3309

Closed
2 tasks done
edrx opened this issue Aug 1, 2023 · 2 comments
Closed
2 tasks done

Could not import extension manim.utils.docbuild.manim_directive #3309

edrx opened this issue Aug 1, 2023 · 2 comments
Labels
installation Everything concerning the installation process

Comments

@edrx
Copy link

edrx commented Aug 1, 2023

Preliminaries

Description of error

Long story short: when I run "cd docs; make html" I get this error:

Running Sphinx v5.0.2
Manim Community v0.11.0


Extension error:
Could not import extension manim.utils.docbuild.manim_directive (exception: No module named 'manim.utils.docbuild')
make: *** [Makefile:33: html] Error 2

Long story long: I'm on Debian 11.7 ("Bullseye"), and I have Manim installed and running here. But when I try to build Manim from the git repository with the commands below the "make html" in the last step gives the error above...

rm -Rfv ~/usrc/manim/
cd      ~/usrc/
git clone https://github.com/ManimCommunity/manim
cd      ~/usrc/manim/
poetry install
cd      ~/usrc/manim/docs/
pip3 install -r     requirements.txt
pip3 install -r rtd-requirements.txt
make
make html
@edrx edrx added the installation Everything concerning the installation process label Aug 1, 2023
@jsonvillanueva
Copy link
Member

jsonvillanueva commented Aug 1, 2023

Based on your output from cd docks; make html, it seems your poetry environment is not entered and though poetry has installed the most recent manim to it's environment, you may be using a old version of Manim (v0.11.0 from October of 2021) installed to your system's Python. You should ensure that you are inside the poetry virtual environment created (using poetry shell) before running make html.

You'll know it's setup/you're in the correct environment when the output of manim --version outputs v0.17.3 (the current version as of this comment).

@edrx
Copy link
Author

edrx commented Aug 1, 2023

Perfect, thanks! =)

@behackl behackl closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Everything concerning the installation process
Projects
None yet
Development

No branches or pull requests

3 participants