Closed ghost closed 2 years ago
Firstly include custom_config.yml into the same folder as scenes.py.
Run:
manimgl scenes.py InitialDemo
Now it just Says the version of ManimGL
Run it in Windows cmd
now I get this error:
In your config file, change all \
's to /
's or \\
. YAML is trying to read the paths as escape characters.
is it because I haven't set up the directories properly?
Oops. You need to change all of those directories to directories that exist.
Where do I get the relevant files for the images and sounds, I can't find them in the github, or does it automatically create them on launch.
I've changed it to this.
I don't think it's using the custom config file
Also, make sure your directories are on directories you can access without needing sudo
access.
Can you provide details about your python installation?
Run wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py
while in a directory on windows cmd
What information do you need to know about my installation, and it has the same output I think, I followed the steps exactly.
What information do you need to know about my installation, and it has the same output I think, I followed the steps exactly.
My ManimGL is on version1.5.0, consider updating maybe?
I followed the instructions from here for installing the windows manimgl but this happened.
C:\maniminstall\manim>pip install -e .
Obtaining file:///C:/maniminstall/manim
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (1.22.1)
Requirement already satisfied: tqdm in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (4.62.3)
Requirement already satisfied: validators in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (0.18.2)
Requirement already satisfied: screeninfo in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (0.8)
Requirement already satisfied: matplotlib in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (3.5.1)
Requirement already satisfied: scipy in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (1.8.0)
Requirement already satisfied: svgelements in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (1.6.9)
Requirement already satisfied: rich in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (11.2.0)
Requirement already satisfied: sympy in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (1.9)
Requirement already satisfied: pyyaml in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (6.0)
Requirement already satisfied: PyOpenGL in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (3.1.5)
Requirement already satisfied: isosurfaces in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (0.1.0)
Requirement already satisfied: moderngl in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (5.6.4)
Requirement already satisfied: mapbox-earcut in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (1.0.0)
Requirement already satisfied: Pillow in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (9.0.1)
Requirement already satisfied: manimpango<0.4.0,>=0.2.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (0.3.1)
Requirement already satisfied: moderngl-window in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (2.4.1)
Requirement already satisfied: skia-pathops in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (0.7.2)
Requirement already satisfied: colour in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (0.1.5)
Requirement already satisfied: pygments in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (2.11.2)
Requirement already satisfied: pydub in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (0.25.1)
Requirement already satisfied: ipython in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from manimgl==1.5.0) (8.0.1)
Requirement already satisfied: backcall in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from ipython->manimgl==1.5.0) (0.2.0)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from ipython->manimgl==1.5.0) (3.0.28)
Requirement already satisfied: colorama in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from ipython->manimgl==1.5.0) (0.4.4)
Requirement already satisfied: matplotlib-inline in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from ipython->manimgl==1.5.0) (0.1.3)
Requirement already satisfied: pickleshare in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from ipython->manimgl==1.5.0) (0.7.5)
Requirement already satisfied: setuptools>=18.5 in c:\program files\windowsapps\pythonsoftwarefoundation.python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\lib\site-packages (from ipython->manimgl==1.5.0) (58.1.0)
Requirement already satisfied: stack-data in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from ipython->manimgl==1.5.0) (0.1.4)
Requirement already satisfied: jedi>=0.16 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from ipython->manimgl==1.5.0) (0.17.2)
Requirement already satisfied: traitlets>=5 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from ipython->manimgl==1.5.0) (5.1.1)
Requirement already satisfied: black in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from ipython->manimgl==1.5.0) (22.1.0)
Requirement already satisfied: decorator in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from ipython->manimgl==1.5.0) (5.1.1)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from matplotlib->manimgl==1.5.0) (3.0.7)
Requirement already satisfied: packaging>=20.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from matplotlib->manimgl==1.5.0) (21.3)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from matplotlib->manimgl==1.5.0) (2.8.2)
Requirement already satisfied: cycler>=0.10 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from matplotlib->manimgl==1.5.0) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from matplotlib->manimgl==1.5.0) (4.29.1)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from matplotlib->manimgl==1.5.0) (1.3.2)
Requirement already satisfied: glcontext<3,>=2 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from moderngl->manimgl==1.5.0) (2.3.4)
Requirement already satisfied: pyrr<1,>=0.10.3 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from moderngl-window->manimgl==1.5.0) (0.10.3)
Requirement already satisfied: pyglet<2,>=1.5.8 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from moderngl-window->manimgl==1.5.0) (1.5.21)
Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from rich->manimgl==1.5.0) (0.9.1)
Requirement already satisfied: mpmath>=0.19 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from sympy->manimgl==1.5.0) (1.2.1)
Requirement already satisfied: six>=1.4.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from validators->manimgl==1.5.0) (1.16.0)
Requirement already satisfied: parso<0.8.0,>=0.7.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from jedi>=0.16->ipython->manimgl==1.5.0) (0.7.1)
Requirement already satisfied: wcwidth in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython->manimgl==1.5.0) (0.2.5)
Requirement already satisfied: multipledispatch in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from pyrr<1,>=0.10.3->moderngl-window->manimgl==1.5.0) (0.6.0)
Requirement already satisfied: platformdirs>=2 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from black->ipython->manimgl==1.5.0) (2.4.0)
Requirement already satisfied: mypy-extensions>=0.4.3 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from black->ipython->manimgl==1.5.0) (0.4.3)
Requirement already satisfied: click>=8.0.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from black->ipython->manimgl==1.5.0) (8.0.3)
Requirement already satisfied: typing-extensions>=3.10.0.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from black->ipython->manimgl==1.5.0) (4.0.1)
Requirement already satisfied: pathspec>=0.9.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from black->ipython->manimgl==1.5.0) (0.9.0)
Requirement already satisfied: tomli>=1.1.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from black->ipython->manimgl==1.5.0) (2.0.1)
Requirement already satisfied: asttokens in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from stack-data->ipython->manimgl==1.5.0) (2.0.5)
Requirement already satisfied: executing in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from stack-data->ipython->manimgl==1.5.0) (0.8.2)
Requirement already satisfied: pure-eval in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from stack-data->ipython->manimgl==1.5.0) (0.2.2)
Installing collected packages: manimgl
Attempting uninstall: manimgl
Found existing installation: manimgl 1.4.1
Uninstalling manimgl-1.4.1:
Successfully uninstalled manimgl-1.4.1
Running setup.py develop for manimgl
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
running develop
C:\Users\david\AppData\Local\Temp\pip-build-env-20ju1i4c\overlay\Lib\site-packages\setuptools\command\easy_install.py:160: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
WARNING: The user site-packages directory is disabled.
C:\Users\david\AppData\Local\Temp\pip-build-env-20ju1i4c\overlay\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\\Lib\\site-packages\\test-easy-install-23792.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\Lib\site-packages\
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://setuptools.pypa.io/en/latest/deprecated/easy_install.html
Please make the appropriate changes for your system and try again.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: No metadata found in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages
Rolling back uninstall of manimgl
Moving to c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\scripts\manim-render.exe
from C:\Users\david\AppData\Local\Temp\pip-uninstall-hz3n3mn5\manim-render.exe
Moving to c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\scripts\manimgl.exe
from C:\Users\david\AppData\Local\Temp\pip-uninstall-hz3n3mn5\manimgl.exe
Moving to c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages\manimgl-1.4.1.dist-info\
from C:\Users\david\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\~animgl-1.4.1.dist-info
Moving to c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages\manimlib\
from C:\Users\david\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\~animlib
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
running develop
C:\Users\david\AppData\Local\Temp\pip-build-env-20ju1i4c\overlay\Lib\site-packages\setuptools\command\easy_install.py:160: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
WARNING: The user site-packages directory is disabled.
C:\Users\david\AppData\Local\Temp\pip-build-env-20ju1i4c\overlay\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\\Lib\\site-packages\\test-easy-install-23792.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\Lib\site-packages\
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://setuptools.pypa.io/en/latest/deprecated/easy_install.html
Please make the appropriate changes for your system and try again.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Try pip uninstall manimgl
, pip install manimgl
IT WORKED, thank you so much
When running the scenes.py using:
python scenes.py
I get an error saying no module manimlib and when i use:manimgl scenes.py
I get no output then it says manimgl v1.4.1 and it tells me some info about the configuration. any ideas?