Giter VIP home page Giter VIP logo

Comments (16)

naveen521kk avatar naveen521kk commented on May 12, 2024 3

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:

  1. 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
  2. Make sure setup.py is available in the same directory as the terminal currently is.
  3. Install build deps: pip3 install -U setuptools Cython wheel
  4. 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.

markshep avatar markshep commented on May 12, 2024 2

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.

naveen521kk avatar naveen521kk commented on May 12, 2024

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.

Makon3 avatar Makon3 commented on May 12, 2024

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?

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.

naveen521kk avatar naveen521kk commented on May 12, 2024

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.

Makon3 avatar Makon3 commented on May 12, 2024

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.

ad-chaos avatar ad-chaos commented on May 12, 2024

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.

Makon3 avatar Makon3 commented on May 12, 2024

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:

  1. 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
  2. Make sure setup.py is available in the same directory as the terminal currently is.
  3. Install build deps: pip3 install -U setuptools Cython wheel
  4. 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.

naveen521kk avatar naveen521kk commented on May 12, 2024

It worked, thank you so much!

Great, I'll close this issue then.

from manimpango.

kafka-tamura avatar kafka-tamura commented on May 12, 2024

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.

ad-chaos avatar ad-chaos commented on May 12, 2024
export CPATH=/opt/homebrew/include/
export LIBRARY_PATH=/opt/homebrew/lib/

try installing manim after exporting those env-vars

from manimpango.

kafka-tamura avatar kafka-tamura commented on May 12, 2024

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.

ad-chaos avatar ad-chaos commented on May 12, 2024

What do you mean by relinked?

from manimpango.

kafka-tamura avatar kafka-tamura commented on May 12, 2024

brew unlink pkg-config && brew link pkg-config

from manimpango.

ad-chaos avatar ad-chaos commented on May 12, 2024

That operation doesn't do anything meaningful. Did you do that after exporting those environment variables?

from manimpango.

kafka-tamura avatar kafka-tamura commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.