Fix psycopg2-binary version

lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=170005 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/home/pcoder/projects/n/public-health-ch/venv/include -I/usr/include/python3.13 -I. -I/usr/include -I/usr/include/postgresql/server -I/usr/include/libxml2 -c psycopg/utils.c -o build/temp.linux-x86_64-cpython-313/psycopg/utils.o -Wdeclaration-after-statement
      psycopg/utils.c: In function ‘psyco_is_main_interp’:
      psycopg/utils.c:397:12: error: implicit declaration of function ‘_PyInterpreterState_Get’; did you mean ‘PyInterpreterState_Get’? [-Wimplicit-function-declaration]
        397 |     return _PyInterpreterState_Get() == PyInterpreterState_Main();
            |            ^~~~~~~~~~~~~~~~~~~~~~~
            |            PyInterpreterState_Get
      psycopg/utils.c:397:38: warning: comparison between pointer and integer
        397 |     return _PyInterpreterState_Get() == PyInterpreterState_Main();
            |                                      ^~
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for psycopg2-binary
This commit is contained in:
PCoder 2025-09-18 17:43:17 +05:30
commit e58eaac2ca

View file

@ -6,7 +6,7 @@ wagtail==6.0.6 # Wagtail 6.0 supports Django 5.0
elasticsearch==7.17.9 # Compatible with Django 5.0
# Database
psycopg2-binary==2.9.9 # Compatible with Django 5.0
psycopg2-binary==2.9.10 # Compatible with Django 5.0 and Python 3.13
dj-database-url==2.2.0 # Updated for Django 5.0
# Content