SQLAlchemy 2.0 Breaks RSS #239
Labels
No labels
architecture
authentication
backend
bug
ci/cd
cleanup
documentation
duplicate
enhancement
good first issue
help wanted
in progress
invalid
media
mobile
new feature
packaging
question
ui
voice
waiting user input
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: platypush/platypush#239
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It seems that SQLAlchemy installed via pip breaks the RSS plugin with the following stack trace:
The service will load if RSS is not enabled. Installing SQLAlchemy < 2.0 seems to fix it temporarily.
Hi @joshblake, thanks for reporting the error.
This is indeed a regression due to the latest major release of SQLAlchemy (released 3 weeks ago), which introduced many breaking changes. Most of them are actually a good thing though, support for raw SQL statements has been limited and that will prompt me to clean up some parts of the codebase that I was planning to clean up anyway.
Installing the latest version of Platypush (released yesterday) should fix the issue, as it requires
sqlalchemy < 2.0.0
in thesetup.py
.However, I should definitely plan to migrate the codebase to SQLAlchemy 2.x - all the major distros still ship SQLAlchemy 1.x, but that will obviously change in the upcoming weeks/months, and Platypush' dependencies should never conflict with system dependencies.
I will work on a PR to upgrade the compatibility with the latest version soon.
This is now fixed on
master
, I've tested Platypush with SQLAlchemy versions from 1.3 and 2.0 (which should cover anything currently installed on any major distros + the future specifications) and things work.You can install the new version via git, or wait for the next (big) pip release (which should come up in a few days at most).