Rickaym / manim-sideview

A Manim utility extension for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=Rickaym.manim-sideview
MIT License
99 stars 11 forks source link

config file is not loading properly anymore #81

Closed SteynJanus closed 5 months ago

SteynJanus commented 5 months ago

Hi!

Thanks a lot for the development of this lovely addition to manim. Sadly, in the new version, my config file is not loading properly anymore, and it is not finding the "extension" to display the sideview. I've not changed anything to the config file, and it looks exactly like the documentation of manim . just so you know.

I've switched back to v0.2.09.

Thanks again!

Rickaym commented 5 months ago

Hey, I'm glad you've found the extension useful. Can you please add a screenshot of the addressed issue?

SteynJanus commented 5 months ago

Yes, sorry, should have done that in the first place 😃

image image

I reviewed the log a bit better, and the latter error probably occours because my config file changes the format of the video. From landscape to portrait. Therefore, it will not find anything in 1080p60.

However, everything is simulated and created rightly. The partial and final video files look perfect.

I've added the log below. Thanks again ricky! I will buy you a coffee

PS: Just realized I am not up to date with VS code. Version: 1.79.0

here's the log: [1/16/2024 12:38] INFO: Activating extension. [1/16/2024 12:38] INFO: Loading globals and resource paths. [1/16/2024 12:38] INFO: Successfully loaded all globals. [1/16/2024 12:38] INFO: Activated extension. [1/16/2024 12:38] INFO: Parsing configuration file "c:\Users\cah26\Manim\manim.cfg". [1/16/2024 12:38] ERROR: Manim Sideview: Failed parsing the manim.cfg file, ignoring it. [1/16/2024 12:38] INFO: Asked user for a new scene name and recieved "Turbine_to_Windfarm". [1/16/2024 12:38] INFO: Creating a new running configuration for file "c:\Users\cah26\Manim\3D_to_windfarm.py" [1/16/2024 12:38] INFO: Attempting to render via the running configuration { "srcRootFolder": "c:\Users\cah26\Manim\", "srcPath": "c:\Users\cah26\Manim\3D_to_windfarm.py", "moduleName": "3D_to_windfarm", "isUsingConfFile": false, "manimConfig": { "media_dir": "media", "video_dir": "{media_dir}/videos/{module_name}/{quality}", "images_dir": "{media_dir}/images/{module_name}", "quality": "high_quality", "image_name": "{scenename}{version}{extension}", "frame_rate": "60", "quality_map": { "fourk_quality": "2160p60", "production_quality": "1440p60", "high_quality": "1080p60", "medium_quality": "720p30", "low_quality": "480p15", "example_quality": "480p30", "fourk_quality_portrait": "3840p60", "production_quality_portrait": "2560p60", "high_quality_portrait": "1920p60", "medium_quality_portrait": "1280p30", "low_quality_portrait": "720p15", "example_quality_portrait": "720p30" } }, "document": { "uri": { "$mid": 1, "fsPath": "c:\Users\cah26\Manim\3D_to_windfarm.py", "_sep": 1, "external": "file:///c%3A/Users/cah26/Manim/3D_to_windfarm.py", "path": "/c:/Users/cah26/Manim/3D_to_windfarm.py", "scheme": "file" }, "fileName": "c:\Users\cah26\Manim\3D_to_windfarm.py", "isUntitled": false, "languageId": "python", "version": 1, "isClosed": false, "isDirty": false, "eol": 2, "lineCount": 182 }, "sceneName": "Turbine_to_Windfarm" }, { "predictedVideoOutputPath": media\videos\3D_to_windfarm\1080p60\Turbine_to_Windfarm.mp4, "predictedImageOutputPath": media\images\3D_to_windfarm\ManimCE_v0.17.3

[1/16/2024 12:38] INFO: Using python environment "my-manim-environment" for manim. [1/16/2024 12:38] INFO: [10984] Spawned a new process for executing ""c:\Users\cah26\Anaconda3\envs\my-manim-environment\Scripts\manim" "c:\Users\cah26\Manim\3D_to_windfarm.py" Turbine_to_Windfarm ". [1/16/2024 12:38] INFO: [10984] RE: "Manim Community v0.17.3\n\n" [1/16/2024 12:38] INFO: [10984] RE: "[01/16/24 12:38:07] INFO\t Animation 0 : Using cached\tcairo_renderer.py:78\n\t\t\t\t\t" [1/16/2024 12:38] INFO: [10984] RE: "\t\t data (hash :\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t 1861201505_1076466279_2852742\t\t\t\t\t \n\t\t\t\t\t\t\t 086)\t\t\t\t\t\t\t\t\t\t\t \n" [1/16/2024 12:38] INFO: [10984] RE: "\t\t\t\t\tINFO\t Animation 1 : Using cached\tcairo_renderer.py:78\n\t\t\t\t\t\t\t data (hash :\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t 2520307643_1276438454_2307704\t\t\t\t\t \n\t\t\t\t\t\t\t 54)\t\t\t\t\t\t\t\t\t\t\t \n" [1/16/2024 12:38] WARN: [10984] Captured stderr output " Animation 1: AnimationGroup(Group): 0%|\t\t | 0/1 [00:00<?, ?it/s]" [1/16/2024 12:38] WARN: [10984] Captured stderr output " \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t " [1/16/2024 12:38] INFO: [10984] RE: "\t\t\t\t\tINFO\t Animation 2 : Using cached\tcairo_renderer.py:78\n\t\t\t\t\t\t\t data (hash :\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t 2520307643_190800790_20414928\t\t\t\t\t \n\t\t\t\t\t\t\t 13)\t\t\t\t\t\t\t\t\t\t\t \n" [1/16/2024 12:38] INFO: [10984] RE: "[01/16/24 12:38:08] INFO\t Animation 3 : Using cached\tcairo_renderer.py:78\n\t\t\t\t\t\t\t data (hash :\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t 2520307643_3079288284_4121291\t\t\t\t\t \n\t\t\t\t\t\t\t 445)\t\t\t\t\t\t\t\t\t\t\t \n" [1/16/2024 12:38] WARN: [10984] Captured stderr output " Animation 3: AnimationGroup(Group): 0%|\t\t | 0/1 [00:00<?, ?it/s]" [1/16/2024 12:38] WARN: [10984] Captured stderr output " \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t " [1/16/2024 12:38] INFO: [10984] RE: "\t\t\t\t\tINFO\t Animation 4 : Using cached\tcairo_renderer.py:78\n\t\t\t\t\t\t\t data (hash :\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t 2520307643_190800790_30159216\t\t\t\t\t \n\t\t\t\t\t\t\t 60)\t\t\t\t\t\t\t\t\t\t\t \n" [1/16/2024 12:38] INFO: [10984] RE: "\t\t\t\t\tINFO\t Combining to Movie file. scene_file_writer.py:617\n" [1/16/2024 12:38] INFO: [10984] RE: "\t\t\t\t\tINFO\t\t\t\t\t\t\t scene_file_writer.py:736\n\t\t\t\t\t\t\t File ready at\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t 'C:\Users\cah26\Manim\med\t\t\t\t\t\t \n\t\t\t\t\t\t\t ia\videos\3D_to_windfarm\t\t\t\t\t\t \n\t\t\t\t\t\t\t 1920p60\Turbine_to_Windfa\t\t\t\t\t\t \n\t\t\t\t\t\t\t rm.mp4'\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \n" [1/16/2024 12:38] INFO: [10984] RE: "\t\t\t\t\tINFO\t Rendered Turbine_to_Windfarm\t\t scene.py:241\n\t\t\t\t\t\t\t Played 5 animations\t\t\t\t\t\t\t \n" [1/16/2024 12:38] INFO: [10984] Execution returned code=0 in 43.354 seconds
[1/16/2024 12:38] INFO: [17420] Render output is predicted as "Video". [1/16/2024 12:38] ERROR: Manim Sideview: Predicted output file does not exist at "c:\Users\cah26\Manim\media\videos\3D_to_windfarm\1080p60\Turbine_to_Windfarm.mp4" Make sure that the designated video directories are reflected in the extension log.

Rickaym commented 5 months ago

Thank you. Release v0.2.12 should address the issue.