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.
TypeErrorAn error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.
Seen24 times · 6 variants
WhereDjango, Python
StatusObservedOur team will look into this soon, verify the cause and try to fix it in an upcoming release.
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