django-q icon indicating copy to clipboard operation
django-q copied to clipboard

EC2 DB caching error: Django-q unsupported pickle protocol 5

Open igalci opened this issue 2 years ago • 2 comments

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.

igalci avatar Jul 22 '22 16:07 igalci

Run in a docker container local and ec2 so all versions match.

jyoost avatar Jul 22 '22 16:07 jyoost

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?

igalci avatar Jul 24 '22 22:07 igalci