fossasia / eventyay-tickets

Apache License 2.0
1.51k stars 41 forks source link

Update psycopg2 version #92

Closed progmatic-99 closed 1 week ago

progmatic-99 commented 4 months ago

Fixes #91

progmatic-99 commented 4 months ago

@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

marcoag commented 4 months ago

@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)'
progmatic-99 commented 4 months ago

@marcoag this is compatible with python 3.9 image