Coder Social home page Coder Social logo

Comments (20)

ferazambuja avatar ferazambuja commented on August 15, 2024 1

Try to add this to the begin of scenes.py to fix with the manim_imports_ext
import sys sys.path.append(".") sys.path.append("..")

also change from simulations import *
to from _2022.wordle.simulations import *

from the /videos folder I'm using this command to run:
manimgl _2022/wordle/scenes.py

I'm able to run quite a few scenes, however the InitialDemo returns an numpy.append error.

from videos.

johnsoe2 avatar johnsoe2 commented on August 15, 2024 1

import sys sys.path.append(".") sys.path.append("..")
^
SyntaxError: invalid syntax`

I had similar error until I split that line like so:
import sys
sys.path.append(".")
sys.path.append("..")

from videos.

Jonah-B-Kehillah avatar Jonah-B-Kehillah commented on August 15, 2024

You are not meant to run it with the community version of manim. Try using 3b1b's version instead. I hope this helps

from videos.

therealOri avatar therealOri commented on August 15, 2024

You are not meant to run it with the community version of manim. Try using 3b1b's version instead. I hope this helps

And we install that version how?

pip install manimgl
Because, this is what i'd install as there is nothing really telling us what to install

from videos.

Jonah-B-Kehillah avatar Jonah-B-Kehillah commented on August 15, 2024

My bad, I should have linked it. Here are the instructions: https://github.com/3b1b/manim#installation

from videos.

Frontgecko avatar Frontgecko commented on August 15, 2024

When running wordle.py InitialDemo all I get is the script, without any of the options shown in the video. How do I load the UI he created to do the guesses in live time?
here is a screenshot of what I see in the terminal when running python script.
I only have 3b1b's version of manim installed.
image

from videos.

cobase2010 avatar cobase2010 commented on August 15, 2024

I use "manimgl _2022/wordle.py InitialDemo" to launch it, just like what the video shows.

from videos.

therealOri avatar therealOri commented on August 15, 2024

I use "manimgl _2022/wordle.py InitialDemo" to launch it, just like what the video shows.

"wordle.py" isn't a file anymore in the latest branch/main branch. What should I/we do instead?

from videos.

Jonah-B-Kehillah avatar Jonah-B-Kehillah commented on August 15, 2024

scenes.py I believe

from videos.

therealOri avatar therealOri commented on August 15, 2024

scenes.py I believe

Running the command: manimgl _2022/scenes.py InitialDemo from the videos directory/folder gives the following error.

ManimGL v1.4.1
Traceback (most recent call last):
  File "/home/ori/Desktop/videos/wrdlENV/bin/manimgl", line 8, in <module>
    sys.exit(main())
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/__main__.py", line 21, in main
    config = manimlib.config.get_configuration(args)
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/config.py", line 294, in get_configuration
    module = get_module(args.file)
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/config.py", line 178, in get_module
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/ori/Desktop/videos/_2022/wordle/scenes.py", line 1, in <module>
    from manim_imports_ext import *
ModuleNotFoundError: No module named 'manim_imports_ext'

Running the same command from the same place but without InitialDemo gives the following error.

ManimGL v1.4.1
Traceback (most recent call last):
  File "/home/ori/Desktop/videos/wrdlENV/bin/manimgl", line 8, in <module>
    sys.exit(main())
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/__main__.py", line 21, in main
    config = manimlib.config.get_configuration(args)
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/config.py", line 294, in get_configuration
    module = get_module(args.file)
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/config.py", line 178, in get_module
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/ori/Desktop/videos/_2022/wordle/scenes.py", line 1, in <module>
    from manim_imports_ext import *
ModuleNotFoundError: No module named 'manim_imports_ext'

I am running the command out of the main videos directory and manim_imports_ext exist there and in the same directory scenes.py exist in.

anything else to help?

from videos.

therealOri avatar therealOri commented on August 15, 2024

Try to add this to the begin of scenes.py to fix with the manim_imports_ext import sys sys.path.append(".") sys.path.append("..")

also change from simulations import * to from _2022.wordle.simulations import *

from the /videos folder I'm using this command to run: manimgl _2022/wordle/scenes.py

I'm able to run quite a few scenes, however the InitialDemo returns an numpy.append error.

That seems to have worked for me. Howver, I can run the WordleScene [76] just fine but any others relating to wordle gives me this and idk what to do or what it is.

[16:24:58] ERROR    LaTeX Error!  Not a worry, it happens to the best of us.       tex_file_writing.py:90
           DEBUG    The error could be: `LaTeX Error: File `standalone.cls' not    tex_file_writing.py:94
                    found.`                                                                              
           DEBUG    The error could be: `Emergency stop.` 


Scene [73] throws the following error:

Traceback (most recent call last):
  File "/home/ori/Desktop/videos/wrdlENV/bin/manimgl", line 8, in <module>
    sys.exit(main())
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/__main__.py", line 25, in main
    scene.run()
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/scene/scene.py", line 76, in run
    self.setup()
  File "/home/ori/Desktop/videos/./custom/characters/pi_creature_scene.py", line 269, in setup
    PiCreatureScene.setup(self)
  File "/home/ori/Desktop/videos/./custom/characters/pi_creature_scene.py", line 42, in setup
    self.pi_creatures = VGroup(*self.create_pi_creatures())
  File "/home/ori/Desktop/videos/./custom/characters/pi_creature_scene.py", line 279, in create_pi_creatures
    self.teacher = Mortimer(color=self.teacher_color)
  File "/home/ori/Desktop/videos/./custom/characters/pi_creature.py", line 70, in __init__
    SVGMobject.__init__(self, file_name=svg_file, **kwargs)
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/mobject/svg/svg_mobject.py", line 118, in __init__
    self.file_path = get_full_vector_image_path(file_name)
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/utils/images.py", line 18, in get_full_vector_image_path
    return find_file(
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/utils/file_ops.py", line 47, in find_file
    raise IOError(f"{file_name} not Found")
OSError: /Users/grant/Dropbox/3Blue1Brown/images/pi_creature/svg/plain.svg not Found

The only scenes that run without erroring for me are 74 and 76.

from videos.

ferazambuja avatar ferazambuja commented on August 15, 2024

You are missing one of manimgl requirements, Latex.
https://github.com/3b1b/manim#installation

The second error I also get it. It seems to be an image that is missing from the github files.

from videos.

therealOri avatar therealOri commented on August 15, 2024

You are missing one of manimgl requirements, Latex.
https://github.com/3b1b/manim#installation

The second error I also get it. It seems to be an image that is missing from the github files.

The link seems broken. It takes me to the issues of this repo but with it saying no results matched your search. How do I install Latex?

Nvm, You just had a different link pasted and it took me somewhere else.

from videos.

JamezN42 avatar JamezN42 commented on August 15, 2024

Try to add this to the begin of scenes.py to fix with the manim_imports_ext import sys sys.path.append(".") sys.path.append("..")

also change from simulations import * to from _2022.wordle.simulations import *

from the /videos folder I'm using this command to run: manimgl _2022/wordle/scenes.py

I'm able to run quite a few scenes, however the InitialDemo returns an numpy.append error.

Maybe I'm just an idiot, but when I add this I just get thrown a syntax error

C:\sims\videos-master>manimgl _2022/wordle/scenes.py InitialDemo
ManimGL v1.4.1
Traceback (most recent call last):
File "c:\users\minec\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return run_code(code, main_globals, None,
File "c:\users\minec\appdata\local\programs\python\python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\minec\AppData\Local\Programs\Python\Python39\Scripts\manimgl.exe_main
.py", line 7, in
File "c:\users\minec\appdata\local\programs\python\python39\lib\site-packages\manimlib_main
.py", line 21, in main
config = manimlib.config.get_configuration(args)
File "c:\users\minec\appdata\local\programs\python\python39\lib\site-packages\manimlib\config.py", line 294, in get_configuration
module = get_module(args.file)
File "c:\users\minec\appdata\local\programs\python\python39\lib\site-packages\manimlib\config.py", line 178, in get_module
spec.loader.exec_module(module)
File "", line 846, in exec_module
File "", line 983, in get_code
File "", line 913, in source_to_code
File "", line 228, in _call_with_frames_removed
File "_2022/wordle/scenes.py", line 1
import sys sys.path.append(".") sys.path.append("..")
^
SyntaxError: invalid syntax

from videos.

johnsoe2 avatar johnsoe2 commented on August 15, 2024

I'm able to run quite a few scenes, however the InitialDemo returns an numpy.append error.

To solve the numpy error, you need to switch to the video-work branch of the manim repo, which has not yet been merged into the master branch.

c:\Users\XXX\manim>git checkout video-work
Switched to a new branch 'video-work'
Branch 'video-work' set up to track remote branch 'video-work' from 'origin'.

from videos.

emirtarik avatar emirtarik commented on August 15, 2024

To solve the numpy error, you need to switch to the video-work branch of the manim repo, which has not yet been merged into the master branch.

My problem here was:

PermissionError: [Errno 13] Permission denied: '/Users/grant

However, I realized that I should have been running this with security privileges. I'm not sure if there's another way to grant permission or I skipped a step during installation but I've used sudo instead, like so:

sudo manimgl _2022/wordle/scenes.py InitialDemo

This fixed the problem and I was able to try out today's Wordle. Anyone has an idea about the text fonts being generic on Mac? I did install LaTeX dependencies using brew install --cask mactex but maybe I should do something additional.

February 13th 2022, Wordle for "robin"

February 13th 2022, Wordle for "robin"

from videos.

therealOri avatar therealOri commented on August 15, 2024

@emirtarik

What scene do you use for that?
I still don't know what to choose. I wish it was just as simple as running a python file passing in a file list and then done. idk what happened after that/his video came out. It's like it got nuked and made way harder to play with.

from videos.

johnsoe2 avatar johnsoe2 commented on August 15, 2024

@emirtarik

What scene do you use for that? I still don't know what to choose. I wish it was just as simple as running a python file passing in a file list and then done. idk what happened after that/his video came out. It's like it got nuked and made way harder to play with.

Use scene 77. You can set the secret word to whatever you want by replacing
self.secret_word = random.choice(s_words)
with
self.secret_word = "words"
(be sure that secret word is lower case, upper case does not work)

from videos.

therealOri avatar therealOri commented on August 15, 2024

Use scene 77. You can set the secret word to whatever you want by replacing
self.secret_word = random.choice(s_words)
with
self.secret_word = "words"
(be sure that secret word is lower case, upper case does not work)



Running Scene 77 throws the following numpy error:

Traceback (most recent call last):
  File "/home/ori/Desktop/videos/wrdlENV/bin/manimgl", line 8, in <module>
    sys.exit(main())
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/__main__.py", line 25, in main
    scene.run()
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/scene/scene.py", line 76, in run
    self.setup()
  File "/home/ori/Desktop/videos/_2022/wordle/scenes.py", line 331, in setup
    self.add_guess_value_grid_title()
  File "/home/ori/Desktop/videos/_2022/wordle/scenes.py", line 358, in add_guess_value_grid_title
    underline.match_y(first.get_bottom() + 0.025 * DOWN)
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/mobject/mobject.py", line 1195, in match_y
    return self.match_coord(mobject, 1, direction)
  File "/home/ori/Desktop/videos/wrdlENV/lib/python3.10/site-packages/manimlib/mobject/mobject.py", line 1186, in match_coord
    mobject.get_coord(dim, direction),
AttributeError: 'numpy.ndarray' object has no attribute 'get_coord'


I am unsure on how to install the manimgl video-work branch within a python virtual-environment(on linux). Normally I'd just install it via pip but, there isn't really a clear way that shows me how to change the branch I am using to the video-work branch..so I guess i'd have to wait for that to be merged into the main branch?

from videos.

johnsoe2 avatar johnsoe2 commented on August 15, 2024

I am unsure on how to install the manimgl video-work branch

to switch branches, from the manim folder:
git checkout video-work

from videos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.