Closed Makon3 closed 1 year ago
Not sure why Cython didn't automatically create manimpango/cmanimpango.c
. Maybe Cython isn't installed and something didn't work? From your logs, I see a
Error in sitecustomize; set PYTHONVERBOSE for traceback: AssertionError:
which is weird. Can you set PYTHONVERBOSE
(that's an environment variable) and attach the output (note it'll be really long). Also, how did you install python and what does python --version --version
print?
Not sure why Cython didn't automatically create
manimpango/cmanimpango.c
. Maybe Cython isn't installed and something didn't work? From your logs, I see aError in sitecustomize; set PYTHONVERBOSE for traceback: AssertionError:
which is weird. Can you set
PYTHONVERBOSE
(that's an environment variable) and attach the output (note it'll be really long). Also, how did you install python and what doespython --version --version
print?
Really sorry, but how do I do that?
Can you set
PYTHONVERBOSE
(that's an environment variable) and attach the output (note it'll be really long)
I just went to python website (https://www.python.org/downloads/) and installed the latest version.
python --version --version
prints zsh: command not found: python
while python3 --version --version
prints Python 3.10.6 (main, Aug 30 2022, 04:58:14) [Clang 13.1.6 (clang-1316.0.21.2.5)]
You were right, Cython wasn't installed, so I ran brew install Cython
but it still didn't solve the problem.
Really sorry, but how do I do that?
Run export PYTHONVERBOSE=1
first, then run pip and attach its output to a file here.
You were right, Cython wasn't installed, so I ran brew install Cython but it still didn't solve the problem.
It should be automatically installed using pip...
After running export PYTHONVERBOSE=1
and then pip3 install manim
I got:
github.pdf
After running export PYTHONVERBOSE=1
and then pip3
I got:
github 2.pdf
I think that AssertionError
is not related to this one.
I'm not sure why Cython is not available in the environment pip creates. I think installing it using the classic setup.py install
would work for now, follow the steps below:
setup.py
is available in the same directory as the terminal currently is.pip3 install -U setuptools Cython wheel
python3 setup.py install
This should install ManimPango and stuff should work, but this isn't really the "correct" way to install but it should work.
Also can you join the discord? Easier to talk and settle things there and then we can come here and update it for future reference and googleability..
I think that
AssertionError
is not related to this one.I'm not sure why Cython is not available in the environment pip creates. I think installing it using the classic
setup.py install
would work for now, follow the steps below:
- Dowload and extract https://github.com/ManimCommunity/ManimPango/releases/download/v0.4.1/ManimPango-0.4.1.tar.gz to a directory and open a terminal there
- Make sure
setup.py
is available in the same directory as the terminal currently is.- Install build deps:
pip3 install -U setuptools Cython wheel
- Install:
python3 setup.py install
This should install ManimPango and stuff should work, but this isn't really the "correct" way to install but it should work.
It worked, thank you so much!
It worked, thank you so much!
Great, I'll close this issue then.
I just hit this problem too, again on an M1 Mac with Homebrew python on it. I ran pip3 install git-sim
and manimpango
is a dependency of that. However I managed to fix the problem by upgrading pip by running the suggested command at the end of the output:
[notice] A new release of pip available: 22.3.1 -> 23.0
[notice] To update, run: python3.10 -m pip install --upgrade pip
I am running into the same problem on my M1 Mac. Tried @markshep's and @naveen521kk's recommendation. No dice. For me, it says that it can't find "cairo.h". Cairo and Py3cairo are both installed. Any thoughts?
export CPATH=/opt/homebrew/include/
export LIBRARY_PATH=/opt/homebrew/lib/
try installing manim
after exporting those env-vars
The issue with with pkg-config
. It was failing and not passing the params accurately. The setup assumes when pkg-config
fails that library variables are provided and hence couldn't locate cairo
. Relinked pkg-config
and installation worked fine. Thanks!
What do you mean by relinked
?
brew unlink pkg-config && brew link pkg-config
That operation doesn't do anything meaningful. Did you do that after exporting those environment variables?
No, I did not export any variables. TBH, I wanted to do that initially, but was unable to figure the right env variables. Linking/ relinking was a hail Mary.
Have an M1 mac, tried to install manim, but after typing
pip3 install manim
I get:I tried to solve the problem by running
brew install pango pkg-config
as was said on this website: https://github.com/ManimCommunity/manimpango#linuxmacosBut, after doing that it still gave the same error when I typed
pip3 install manim
Can you please help me?