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

Manimgl does not find the imports. #61

Open
ghost opened this issue Apr 26, 2023 · 5 comments
Open

Manimgl does not find the imports. #61

ghost opened this issue Apr 26, 2023 · 5 comments

Comments

@ghost
Copy link

ghost commented Apr 26, 2023

Hi guys
I need your help. I have cloned the repo to rebuild the videos. Unfortunately I have several problems.
In various instructions I was told to copy the file to be executed to the root directory of the git. I have done that. After that I started the Python file with Manim. It came to an error message, this can be seen in the picture. It means that it cannot find the file manim_imports_ext. This is demonstrably there.
Can you help me to solve the problem?

Thanks in advance.

image

@ghost
Copy link
Author

ghost commented Apr 27, 2023

Python:

/mnt/c/Users/Niffecs [root@Legion] [1:57]
> python3 --version
Python 3.10.6

ffmpeg:

> ffmpeg -version
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil      56. 70.100 / 56. 70.100
libavcodec     58.134.100 / 58.134.100
libavformat    58. 76.100 / 58. 76.100
libavdevice    58. 13.100 / 58. 13.100
libavfilter     7.110.100 /  7.110.100
libswscale      5.  9.100 /  5.  9.100
libswresample   3.  9.100 /  3.  9.100
libpostproc    55.  9.100 / 55.  9.100

Tex:

/mnt/c/Users/Niffecs [root@Legion] [1:58]
> tex --version
TeX 3.141592653 (TeX Live 2022/dev/Debian)
kpathsea version 6.3.4/dev
Copyright 2021 D.E. Knuth.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.

/mnt/c/Users/Niffecs [root@Legion] [1:59]
> pdflatex --version
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)
kpathsea version 6.3.4/dev
Copyright 2021 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.03

/mnt/c/Users/Niffecs [root@Legion] [1:59]
> biber --version
biber version: 2.17

@Plugner
Copy link

Plugner commented May 26, 2023

Happening here too... Opensuse Tumbleweed Linux 6.3.2

@saivian1
Copy link

解决了吗

@straeter
Copy link

either you have to run it from an IDE and set the run directory to the main folder, or copy the script to the main folder or add something like

import os
os.chdir("/path/to/main/folder")

or add the main folder path to your environment or ask chatgpt or stackoverflow to choose one of 10 other solutions ;)

@DejanWho
Copy link

DejanWho commented Dec 4, 2024

One possible solution is to add the videos folder to your python path like
export PYTHONPATH="${PYTHONPATH}:/path/to/the/gitrepo/videos"

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

4 participants