manim-sideview icon indicating copy to clipboard operation
manim-sideview copied to clipboard

manim side view does not pop up, Error: spawn manim ENOENT[undefined]

Open Emi0719 opened this issue 1 year ago • 9 comments

Manim sideview was working just fine when i first install it, but then i try to tidy up my library and this error occurred. I think I might have accidentally delete something, but I don't remember what exactly i deleted. Not sure what i did wrong here and I don't understand what the error mean. When i click the sideview button, this just popped up in the terminal, can anyone please explain to me what's going on and how to fix this? Tysm. Screenshot 2024-07-16 230805

Emi0719 avatar Jul 16 '24 16:07 Emi0719

Seems more like a manim specific issue rather than an issue that is related to this extension. Can you run manim manually in your terminal? manim "c:\Users\emily\Documents\practice\example1" Scene1

lbirkert avatar Jul 16 '24 17:07 lbirkert

If that does not work, you should go ahead and reinstall manim.

lbirkert avatar Jul 16 '24 17:07 lbirkert

If that does not work, you should go ahead and reinstall manim.

i have ran it manually and reinstalled manim too, but the error remains. Is there anything else i can do?

Emi0719 avatar Aug 05 '24 12:08 Emi0719

If that does not work, you should go ahead and reinstall manim.

i have ran it manually and reinstalled manim too, but the error remains. Is there anything else i can do?

does running manually work?

lbirkert avatar Aug 05 '24 13:08 lbirkert

How did you install Manim? This seems like an issue of the manim executable not being on path.

Rickaym avatar Aug 05 '24 13:08 Rickaym

How did you install Manim? This seems like an issue of the manim executable not being on path.

i installed it by chocolatey

Emi0719 avatar Aug 05 '24 14:08 Emi0719

If that does not work, you should go ahead and reinstall manim.

i have ran it manually and reinstalled manim too, but the error remains. Is there anything else i can do?

does running manually work?

no it doesn't work

Emi0719 avatar Aug 05 '24 14:08 Emi0719

If that does not work, you should go ahead and reinstall manim.

i have ran it manually and reinstalled manim too, but the error remains. Is there anything else i can do?

does running manually work?

no it doesn't work

Then you firstly need to find out how to even run manim locally.

lbirkert avatar Aug 05 '24 20:08 lbirkert

There should be guides on this online, you can also try to use a different installation method if you current one does not work.

The official docs lists a bunch of different methods: https://docs.manim.community/en/stable/installation/windows.html

lbirkert avatar Aug 05 '24 20:08 lbirkert

What worked for me is that I am running manim in a virtual environment and so I make sure that I am running my VSCode in my virtual environment.

Steps:

  1. Open CMD
  2. Activate your virtual environment ( .[your virtual env]\Scripts\activate )
  3. Check if manim is installed properly ( manim --version )
  4. If it is installed then proceed to VSCode, if not install manim using pip ( pip install manim )
  5. In VSCode, change your python interpreter to the virtual environment where manim was installed earlier.
  6. Click on File --> Preferences --> Settings.
  7. In Settings, search manim
  8. In Default Manim Path, type in your manim path 8.a To find your manim path, in cmd that you have opened earlier type ( where manim ), copy the path and paste in Default Manim Path
  9. Change the Manim Sideview to the version that you got from Step 3.

Hopefully, this works for you!

guweisen1 avatar Jan 07 '25 22:01 guweisen1