eventyay-tickets icon indicating copy to clipboard operation
eventyay-tickets copied to clipboard

Update psycopg2 version

Open progmatic-99 opened this issue 1 year ago • 3 comments

Fixes #91

progmatic-99 avatar May 18 '24 14:05 progmatic-99

@marcoag I ran the project with the updated psycopg2 version on my local and also created an event. No problems with db at my end

progmatic-99 avatar May 19 '24 14:05 progmatic-99

@progmatic-99 are you sure? I just retested your branch with a full deployment and as migrations fail with:

File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/utils.py", line 6, in utc_tzinfo_factory
    raise AssertionError("database connection isn't set to UTC")
AssertionError: database connection isn't set to UTC

Can you please check your container has the correct psycopg2 version and test?

pretixuser@9a06140c7fd3:~/src$ python 
Python 3.8.19 (default, Apr 10 2024, 15:23:25) 
[GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psycopg2
>>> psycopg2.__version__
'2.9.9 (dt dec pq3 ext lo64)'

marcoag avatar May 21 '24 21:05 marcoag

@marcoag this is compatible with python 3.9 image

progmatic-99 avatar May 22 '24 10:05 progmatic-99