3b1b / videos

Code for the manim-generated scenes used in 3blue1brown videos
6.01k stars 1.57k forks source link

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

Closed NoelleTGS closed 2 years ago

NoelleTGS commented 2 years ago

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'
blackne0n commented 2 years ago

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

NoelleTGS commented 2 years ago

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?

bohrium2b commented 2 years ago

Try running "pip install manimgl" in your terminal.

NoelleTGS commented 2 years ago

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 2 years ago

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

NoelleTGS commented 2 years ago

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
NoelleTGS commented 2 years ago

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

blackne0n commented 2 years ago

Please comment with link to solution, thank you.

Alberto Giardino


From: Noelle @.> Sent: Monday, February 14, 2022 5:11:13 AM To: 3b1b/videos @.> Cc: Alberto Giardino @.>; Comment @.> Subject: Re: [3b1b/videos] Running scenes.py InitialDemo can't find manimlib (Issue #32)

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

— Reply to this email directly, view it on GitHubhttps://github.com/3b1b/videos/issues/32#issuecomment-1038616684, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXCLGKEOWVJMGYGWTWUVADDU3B6GDANCNFSM5OCS3FGA. You are receiving this because you commented.Message ID: @.***>