Open Resonanz opened 1 year ago
These OS packages are already mentioned in the first page of the tutorial, in the "Linux" tab of "install Toga into your virtual environment". However, if I was reading that, I wouldn't bother clicking on the Linux tab because I already know that the pip install
command is the same on all platforms, so I would probably have missed it too.
Instead, it would be better for the OS dependencies to be a separate section, as it is on the "How to contribute code" page. Or even better, create a separate page for the whole process of installing Python, creating the virtual environment and installing OS packages, and reference it from both locations.
Fyi I had the same issue for Ubuntu. I copy pasted the line from Ubuntu 18.04+ / Debian 10+. Installing python3-cairo-dev fixed it for me.
When installing Toga on Ubuntu (and Raspberri Pi) I had the same issue regarding pycairo (details pasted below)
Environment:
UBUNTU: python3 -m pip install --pre toga-demo
Suggestions for installing pycairo to get around this issue:
https://stackoverflow.com/questions/70508775/error-could-not-build-wheels-for-pycairo-which-is-required-to-install-pyprojec
sudo apt-get install libcairo2
libcairo2 is already the newest version (1.16.0-5ubuntu2).
apt-get install libcairo2-dev
Lots of libraries installed following this command. Now try Toga again:
UBUNTU: python3 -m pip install --pre toga-demo
sudo apt install libgirepository1.0-dev
Installed fine, try Toga again:
Successfully installed gbulb-0.6.3 pycairo-1.21.0 pygobject-3.42.2 toga-0.3.0.dev39 toga-core-0.3.0.dev39 toga-demo-0.3.0.dev39 toga-gtk-0.3.0.dev39 travertino-0.1.3
Toga now working beautifully !!!