Open tzarii opened 4 years ago
I downloaded the source code of manimlib and put it in a folder instead of directly using pip install. This is easier to manage and debug.
Put eulers_method.py and manimlib in the same level folder, so that from eulers_method import *
can be used.
Is there a way to resolve this issue while still installing manim through pip and without having to relocate external modules to manimlib's directory?
Hey @slaavn,
Before you pip install manimlib, also clone the GitHub repository. Then change the path variable in your environment so you can use manim without keeping the file in the manim directory. After this method of installation, you should be able to import other modules as well.
I downloaded the source code of manimlib and put it in a folder instead of directly using pip install. This is easier to manage and debug.
Put eulers_method.py and manimlib in the same level folder, so that
from eulers_method import *
can be used.
It seems to work, but in this way I cannot keep my sources and the manimlib separate. Otherwise I must put all my codes in one file in that I am unable to organize my scenes by defining them in mutiple files.
Update: Problem solved. I modified the launch.json of VSCode Debugger to make the PYTHONPATH my codes folder.
I'm trying to import a module called eulers_method in my manim script called anim_engine, however, manim cannot find the eulers_method module
if I run ls in my current dir, you can see both files are in the same directory
And if I run os.getcwd() from the file it matches the directory I called manim from Output of os.getcwd()
/var/home/slaavn/Programs/manim
Output of pwdI also tried to run os.getcwd() from config.py and get the same output I thought the problem might have been my manim installation, because it was a system installation. I uninstalled manim and reinstalled it using
--no-cache-dir
flag for pip, but I got the same error. I then tried to install it in a virtual environment, and as you can see from above, I encountered the same error. As for other things I have tried that have failed:I have no clue as to what's going on at this point