While deploying Fedocal, I encountered an issue after updating the image stream tag to python:3.9-ubi8. The pod started crashing with an ImportError stating that it cannot import the name relation from sqlalchemy.orm. This happened because in recent versions of SQLAlchemy (1.4+), the relation import has been deprecated or removed in favor of using relationship. The specific line causing the issue is from sqlalchemy.orm import relation as relationship in fedocal/fedocallib/model.py. To resolve this, I propose updating the import to from sqlalchemy.orm import relationship to ensure compatibility with the newer Python and SQLAlchemy versions in our updated base image. I see master already have the latest changes should we sync it:?
Log in to comment on this ticket.