django-q
django-q copied to clipboard
EC2 DB caching error: Django-q unsupported pickle protocol 5
Django-q works but it fails only in this specific scenario:
When I run it on my AWS (AWS Linux 2, Python 3.7) AND if I set my Django caching to use the DB caching option (on Postgres) with the Cache table.
Django-q begins screaming that unsupported pickle protocol 5
.
If I run it locally with DB caching (Python 3.9), it works. If I run it on AWS EC2 using file-based caching, it works.
Its only a combination of BOTH db caching AND EC2 python 3.7 setup.
Any idea to fix it?
I tried pip install pickle5, but i think django-q automatically pulls the older pickle version?
Also, Python 3.7 is natively supported on AWS EC2, so installing another python version is not preferable.
Run in a docker container local and ec2 so all versions match.
I haven't used Docker. I just have that one app running on the server, there is no need.
So I need Python 3.9 I guess? or whats the solution?