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

Install requirements for Cairo / Ubuntu 18.04 #8

Closed
francofusco opened this issue Aug 11, 2019 · 4 comments
Closed

Install requirements for Cairo / Ubuntu 18.04 #8

francofusco opened this issue Aug 11, 2019 · 4 comments

Comments

@francofusco
Copy link

Hello! I just wanted to report a minor issue that I encountered, to help people in the future. I am running on Ubuntu 18.04, and had both python 3.6 and python 3.7 already installed. When installing the dependencies for Cairo, I encountered no problem. However, when installing Cairo itself, I get an error about a missing header "Python.h". The reason is simply that when executing

sudo apt install python3-dev

the package manager installed the headers for python 3.6. Installing explicitly the correct version, i.e., python3.7-dev, solved the issue.

Hope it helps! :)

@Elteoremadebeethoven
Copy link
Owner

Elteoremadebeethoven commented Aug 12, 2019

Thank you very much for this, but I think it would be better if you sent a pull request to the official documentation, in this way the developers can add it to the repository.

@francofusco
Copy link
Author

Hi, I considered doing what you suggested and forked manim on my pc. However, looking into its documentation, python 3.7 does not seem to be a "strict" requirement. Indeed, I just gave it a try and it seems to be working also with python 3.6.8. Perhaps I missed some points, so if you know that 3.7 should be used instead I would be more than happy to be aware of future issues I could encounter by using 3.6 instead!

That said, I think the best would be to add a note in this repo to tell that python 3.6 could work as well. I would still mention the python3-dev vs. python3.7-dev issue, it might be helpful for some people. I can do it and send you a PR, or let me know if you'd like to do it directly. At the same time, I will prepare a PR to the main manim repo to add in the docs what you need to install Cairo - from what I see, it is not mentioned at all. In there, I can try to warn about the python3.x-dev issue.

Let me know what you think!

@francofusco
Copy link
Author

python 3.7 does not seem to be a "strict" requirement

Well, I was of course mistaken. It is written in the beginning of the README that

Manim runs on python 3.7

I will contact them to know if python 3.6 is ok as well, and also to propose the mentioned PR. Sorry for bothering 😅

@Elteoremadebeethoven
Copy link
Owner

No problem.

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

2 participants