-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Environment:
- OS: Ubuntu 24.04 (Linux Mint based)
- Python: 3.11 / 3.12 (tested in venv)
- Pip: latest
- Project: OpenWebTTS (requirements.txt)
Steps to reproduce
git clone <repo>
cd OpenWebTTS
python3 -m venv openvenv
source openvenv/bin/activate
pip install -r requirements.txt
Observed behavior
pipfails while buildingPyGObjectfrom source.- Error message:
ERROR: Dependency 'girepository-2.0' is required but not found. - Even with
libgirepository1.0-dev,libglib2.0-dev,pkg-config, etc. installed, the build fails. - Root cause:
PyGObjectis not intended to be installed from PyPI on Ubuntu/Debian, it should come from system packages.
Workaround
- Install
PyGObjectvia apt:sudo apt install -y python3-gi python3-gi-cairo gir1.2-gtk-3.0 - Remove
PyGObjectfromrequirements.txt. - Install remaining requirements with pip:
pip install -r requirements.txt
Suggested fix
- Remove
PyGObjectfromrequirements.txt(or mark it as optional). - Update the README with extra system dependencies for Ubuntu/Debian:
sudo apt install -y python3-gi python3-gi-cairo gir1.2-gtk-3.0 - This avoids build failures and simplifies project setup on Linux.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working