3b1b/videos

Running `scenes.py InitialDemo` can't find manimlib

NoelleTGS opened this issue · 8 comments

I'm trying to run the Wordle solver, and when I run scenes.py InitialDemo I always get an error about not being able to find manimlib. From what I know I have everything I need, so I have no idea why it isn't finding it.

Traceback (most recent call last):
  File "C:\Users\Noelle\Desktop\Wordle solver\scenes.py", line 1, in <module>
    from manim_imports_ext import *
  File "C:\Users\Noelle\Desktop\Wordle solver\manim_imports_ext.py", line 1, in <module>
    from manimlib import *
ModuleNotFoundError: No module named 'manimlib'

You should load manimgl. is in main branch.
https://github.com/3b1b/manim#directly-windows

I didn't edit the file at all, seems it's coming from manim_imports_ext.py, so should I edit that file to replace manimlib with manimgl?

Try running "pip install manimgl" in your terminal.

Yeah I had already done that, I was able to run simulations.py just fine and retrying the install just says I've got it all installed already

3b1b commented

Are you able to run the example scenes from manimgl (see here)?

My bad, I was running the script incorrectly in the first place. I'm having the same issue as here now, and for whatever reason the solution ferazambuja gave just gives me an invalid syntax.

File "C:\Users\Noelle\Desktop\Wordle solver\scenes.py", line 1
    import sys sys.path.append(".") sys.path.append("..")
               ^^^
SyntaxError: invalid syntax

I'm a moron lol, that problem was literally solved further down in the thread.