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

AttributeError: module 'manim' has no attribute 'ArrowTriangleFilledTip' #91

Closed
Olimiya opened this issue Jun 7, 2023 · 7 comments
Closed

Comments

@Olimiya
Copy link

Olimiya commented Jun 7, 2023

The steps are following the QuickStart:

  1. choco install manimce
  2. choco install miktex.install
  3. workon conan(my virtual python env)
  4. pip install git-sim.
  5. git-sim rm*

The output is below, containing the version info.

And the system is win11.

Thanks.

Olimi@Olimi-PC D:\F\GitWorkSpace\NotionNext git:(build)
(0) > git-sim rm *
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ d:\software-dev\language\python\env\conan\lib\site-packages\git_sim\commands.py:302 in rm        │
│                                                                                                  │
│   299 │   from git_sim.rm import Rm                                                              │
│   300 │                                                                                          │
│   301 │   settings.hide_first_tag = True                                                         │
│ ❱ 302 │   scene = Rm(files=files)                                                                │
│   303 │   handle_animations(scene=scene)                                                         │
│   304                                                                                            │
│   305                                                                                            │
│                                                                                                  │
│ ╭─────────────── locals ────────────────╮                                                        │
│ │ files = [                             │                                                        │
│ │         │   'blog.config.js',         │                                                        │
│ │         │   'components',             │                                                        │
│ │         │   'CONTRIBUTING.md',        │                                                        │
│ │         │   'Dockerfile',             │                                                        │
│ │         │   'docs',                   │                                                        │
│ │         │   'git-sim_media',          │                                                        │
│ │         │   'jsconfig.json',          │                                                        │
│ │         │   'lib',                    │                                                        │
│ │         │   'LICENSE',                │                                                        │
│ │         │   'next-sitemap.config.js', │                                                        │
│ │         │   ... +11                   │                                                        │
│ │         ]                             │                                                        │
│ │    Rm = <class 'git_sim.rm.Rm'>       │                                                        │
│ ╰───────────────────────────────────────╯                                                        │
│                                                                                                  │
│ d:\software-dev\language\python\env\conan\lib\site-packages\git_sim\rm.py:13 in __init__         │
│                                                                                                  │
│    10                                                                                            │
│    11 class Rm(GitSimBaseCommand):                                                               │
│    12 │   def __init__(self, files: List[str]):                                                  │
│ ❱  13 │   │   super().__init__()                                                                 │
│    14 │   │   self.hide_first_tag = True                                                         │
│    15 │   │   self.allow_no_commits = True                                                       │
│    16 │   │   self.files = files                                                                 │
│                                                                                                  │
│ ╭─────────────────────── locals ───────────────────────╮                                         │
│ │ files = [                                            │                                         │
│ │         │   'blog.config.js',                        │                                         │
│ │         │   'components',                            │                                         │
│ │         │   'CONTRIBUTING.md',                       │                                         │
│ │         │   'Dockerfile',                            │                                         │
│ │         │   'docs',                                  │                                         │
│ │         │   'git-sim_media',                         │                                         │
│ │         │   'jsconfig.json',                         │                                         │
│ │         │   'lib',                                   │                                         │
│ │         │   'LICENSE',                               │                                         │
│ │         │   'next-sitemap.config.js',                │                                         │
│ │         │   ... +11                                  │                                         │
│ │         ]                                            │                                         │
│ │  self = <git_sim.rm.Rm object at 0x0000013D13A97D68> │                                         │
│ ╰──────────────────────────────────────────────────────╯                                         │
│                                                                                                  │
│ d:\software-dev\language\python\env\conan\lib\site-packages\git_sim\git_sim_base_command.py:68   │
│ in __init__                                                                                      │
│                                                                                                  │
│     65 │   │   if settings.style == StyleOptions.CLEAN:                                          │
│     66 │   │   │   self.commit_stroke_width = 5                                                  │
│     67 │   │   │   self.arrow_stroke_width = 5                                                   │
│ ❱   68 │   │   │   self.arrow_tip_shape = m.ArrowTriangleFilledTip                               │
│     69 │   │   │   self.font_weight = m.NORMAL                                                   │
│     70 │   │   elif settings.style == StyleOptions.THICK:                                        │
│     71 │   │   │   self.commit_stroke_width = 30                                                 │
│                                                                                                  │
│ ╭────────────────────── locals ───────────────────────╮                                          │
│ │ self = <git_sim.rm.Rm object at 0x0000013D13A97D68> │                                          │
│ ╰─────────────────────────────────────────────────────╯                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: module 'manim' has no attribute 'ArrowTriangleFilledTip'
(conan)
Olimi@Olimi-PC D:\F\GitWorkSpace\NotionNext git:(build)
(0) > manim
manim.exe    manimce.exe
(conan)
Olimi@Olimi-PC D:\F\GitWorkSpace\NotionNext git:(build)
(0) > manimce --version
Manim Community v0.16.0.post0

(conan)
Olimi@Olimi-PC D:\F\GitWorkSpace\NotionNext git:(build)
(0) > git-sim --version
git-sim version 0.3.1
@ldslds449
Copy link

You can downgrade git-sim to version 0.2.9 to fix this problem temporarily.

@initialcommit-io
Copy link
Contributor

@Olimiya Oh it looks like you have an older version of Manim installed (0.16.0) that doesn't support one of the required Manim classes ArrowTriangleFilledTip.

Can you try upgrading to Manim 0.17.3? (which should be the default installed version with git-sim on a clean install), and let me know if that fixes it?

@Olimiya
Copy link
Author

Olimiya commented Jun 8, 2023

yes, I try: pip install git-sim==0.2.9, now I can use it normally.

I use choco install manim, following the docs in Manim, and i get this version.

So it seems the default steps now,
choco install manim and pip install git-sim,
these steps will install incompatible version.

@initialcommit-io
Copy link
Contributor

@Olimiya I see. Instead of using git-sim version 0.2.9, can you try to use git-sim 0.3.1 and Manim 0.17.3? I think you can try something like:

pip install manim --upgrade

And then check to make sure you have manim version 0.17.3 (and you also should be using latest git-sim 0.3.1, instead of downgrade to 0.2.9)

@Olimiya
Copy link
Author

Olimiya commented Jun 8, 2023

I tried: pip install manim --upgrade.

After that, when mainm --version, it shows Manim Community v0.16.0.post0 still.

@ldslds449
Copy link

I think the problem is that your Python version is 3.7, not 3.8 or higher.
manim 0.17.3 requires Python version to be at least 3.8.

@Olimiya
Copy link
Author

Olimiya commented Jun 8, 2023

oh yes. It is, so this is the reason. Thanks a lot.

@Olimiya Olimiya closed this as completed Jun 8, 2023
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

3 participants