Python build fails because the gi module is unavailable

Error recorded 24 times in PanelAlpha Engine deploys on Django, Python. The deploy log below is the recorded failure output.

Seen24 times · 6 variants
WhereDjango, Python

Why it happens

The Python package build imports the application while generating wheel requirements. That import reaches gi.repository, but PyGObject is not installed in the build environment. The base Python image does not include the required Python and system GTK/GObject dependencies.

What the log looks like

Deploy log
Getting requirements to build wheel: startedGetting requirements to build wheel: finished with status 'error'Traceback (most recent call last):  File "/app/makeman.py", line 13, in <module>    from zim.main import HelpCommand  ...  File "/app/zim/signals.py", line 7, in <module>    from gi.repository import GObjectModuleNotFoundError: No module named 'gi'error: subprocess-exited-with-error

Try PanelAlpha Engine yourself.

The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.

Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPURead the documentation