Comments (16)
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.
from manimpango.
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
from manimpango.
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?
from manimpango.
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.
from manimpango.
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...
from manimpango.
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
from manimpango.
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..
from manimpango.
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!
from manimpango.
It worked, thank you so much!
Great, I'll close this issue then.
from manimpango.
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?
from manimpango.
export CPATH=/opt/homebrew/include/
export LIBRARY_PATH=/opt/homebrew/lib/
try installing manim
after exporting those env-vars
from manimpango.
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!
from manimpango.
What do you mean by relinked
?
from manimpango.
brew unlink pkg-config && brew link pkg-config
from manimpango.
That operation doesn't do anything meaningful. Did you do that after exporting those environment variables?
from manimpango.
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.
from manimpango.
Related Issues (20)
- list index out of range when rebasing HOT 2
- Symbol not found: _pango_cairo_create_layout
- Creating Text Mobject retrieves TypeError (manimpango.text2svg has incorrect argument typing) HOT 10
- cairo.h: No such file or directory HOT 2
- Unable to install manim, manimpango HOT 8
- libpango-1.0.so.0: undefined symbol: hb_buffer_set_invisible_glyph HOT 2
- CI: Windows-2016 environment will be removed soon HOT 1
- macOS: Wheels in v0.4.0 isn't working
- Symbol not found: ___darwin_check_fd_set_overflow HOT 8
- M1 Mac Installation Problem HOT 2
- Error when installing ManimPango via pip on windows HOT 13
- Implemented a refactored version HOT 4
- Cannot show Text in Ubuntu20.04 HOT 7
- Building/dependencies HOT 1
- symbol not found in flat namespace HOT 5
- Installing issue with AUR/YaY and PIP HOT 1
- Problem with MANIM installation. HOT 6
- `register_font` broken on Windows with Pango 1.50.12 + Cairo 1.17.6 HOT 1
- Tests fail to run from PyTest: ManimPango could not import and load the necessary shared libraries. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manimpango.