manim icon indicating copy to clipboard operation
manim copied to clipboard

That's important! Why I can't run my manim?

Open EgorusAbobus434 opened this issue 1 year ago • 4 comments

Discussed in https://github.com/3b1b/manim/discussions/2098

Originally posted by CharlieGao2009 February 10, 2024 When I run manimgl in command prompt, the following error occurs:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\gao\AppData\Roaming\Python\Python311\Scripts\manimgl.exe\__main__.py", line 4, in <module>
  File "C:\Users\gao\AppData\Roaming\Python\Python311\site-packages\manimlib\__main__.py", line 6, in <module>
    from manimlib import __version__
ImportError: cannot import name '__version__' from 'manimlib' (C:\Users\gao\AppData\Roaming\Python\Python311\site-packages\manimlib\__init__.py)

Could anybody help me solve this? Thank you very much :D

EgorusAbobus434 avatar Oct 05 '24 11:10 EgorusAbobus434

I just have the same problem and i need help :\

EgorusAbobus434 avatar Oct 05 '24 11:10 EgorusAbobus434

I just have the same problem and i need help :\

I'm sorry for replying too late, but you maybe can run pip install setuptools (in Windows) or pip3 install setuptools (in MacOS/Linux) and that should solve your problem.

MathItYT avatar Oct 12 '24 15:10 MathItYT

You have probably downloaded manimgl from pypi (using pip install manimgl). In that case, you will need Python 3.10 or less. The release of manimgl in pypi is 2+ years old and doesn't support new versions of Python and numpy. If you want the latest, clone the repository (you don't need to fork it) and run the commands to install it from the repo. (See Readme.md). But be aware that the repo is not stable.

mitkonikov avatar Oct 14 '24 03:10 mitkonikov

I think the best solution for this problem if you are using linux / MacOS is using virtual environment

python3 -m venv .env
source .env/bin/activate
pip3 install manim manimlib

This should work.

JasonHonKL avatar Oct 17 '24 11:10 JasonHonKL

I'm using Windows, and thanks to replying me

чт, 17 окт. 2024 г., 14:16 JasonAlbertEinstien @.***>:

I think the best solution for this problem if you are using linux / MacOS is using virtual environment

python3 -m venv .env source .env/bin/activate pip3 install manim manimlib

This should work.

— Reply to this email directly, view it on GitHub https://github.com/3b1b/manim/issues/2173#issuecomment-2419245400, or unsubscribe https://github.com/notifications/unsubscribe-auth/BL3D57RFXREAL4MQZH7TJ23Z36MCBAVCNFSM6AAAAABPNI3CNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJZGI2DKNBQGA . You are receiving this because you authored the thread.Message ID: @.***>

EgorusAbobus434 avatar Oct 17 '24 16:10 EgorusAbobus434

Thank you all! I think these solutions will work.

EgorusAbobus434 avatar Oct 17 '24 16:10 EgorusAbobus434

Discussed in #2098

Originally posted by CharlieGao2009 February 10, 2024 When I run manimgl in command prompt, the following error occurs:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\gao\AppData\Roaming\Python\Python311\Scripts\manimgl.exe\__main__.py", line 4, in <module>
  File "C:\Users\gao\AppData\Roaming\Python\Python311\site-packages\manimlib\__main__.py", line 6, in <module>
    from manimlib import __version__
ImportError: cannot import name '__version__' from 'manimlib' (C:\Users\gao\AppData\Roaming\Python\Python311\site-packages\manimlib\__init__.py)

Could anybody help me solve this? Thank you very much :D

Have you solved this issue? I have the same problem . Can you give some info how to solve it? Thanks!

a20144 avatar Nov 23 '24 02:11 a20144

Can you tell us which manimgl version you have installed?

mitkonikov avatar Nov 23 '24 09:11 mitkonikov