Project

General

Profile

Développement #96394

django-tenant-schemas: avoir psycopg2-binary dans les dépendances casse les build devinst/functest

Added by Gael Pasgrimaud (retour le 12 mai) 7 months ago. Updated 7 months ago.

Status:
Résolu (à déployer)
Priority:
Normal
Category:
-
Target version:
-
Start date:
03 October 2024
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

visiblement pip ne comprends pas que psycopg2 est disponible et tente d'installer le -binary.

ca échoue car c'est en fait un lien vers le paquet debian dont root est propriétaire:

root@testvm:~# ls -l /home/publik/envs/publik-env-py3/lib/python3.11/site-packages/psycopg2/
total 429
-rw-r--r-- 1 root root  14362 25 oct.   2022 errorcodes.py

https://jenkins.entrouvert.org/job/gitea/job/publik-functests/job/main/71/execution/node/86/log/

23:11:21  fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/home/publik/envs/publik-env-py3/bin/pip3", "install", "-e", "/home/publik/src/django-tenant-schemas", "django==3.2.19"], "msg": "stdout: Obtaining file:///home/publik/src/django-tenant-schemas\n  Preparing metadata (setup.py): started\n  Preparing metadata (setup.py): finished with status 'done'\nRequirement already satisfied: django==3.2.19 in /home/publik/envs/publik-env-py3/lib/python3.11/site-packages (3.2.19)\nRequirement already satisfied: asgiref<4,>=3.3.2 in /home/publik/envs/publik-env-py3/lib/python3.11/site-packages (from django==3.2.19) (3.8.1)\nRequirement already satisfied: pytz in /home/publik/envs/publik-env-py3/lib/python3.11/site-packages (from django==3.2.19) (2024.2)\nRequirement already satisfied: sqlparse>=0.2.2 in /home/publik/envs/publik-env-py3/lib/python3.11/site-packages (from django==3.2.19) (0.5.1)\nCollecting ordered-set\n  Downloading ordered_set-4.1.0-py3-none-any.whl (7.6 kB)\nCollecting psycopg2-binary\n  Downloading psycopg2_binary-2.9.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 8.5 MB/s eta 0:00:00\nInstalling collected packages: psycopg2-binary, ordered-set, django-tenant-schemas\n\n:stderr: ERROR: Could not install packages due to an OSError: [Errno 13] Permission non accordée: '/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/psycopg2/pool.py'\nCheck the permissions.\n\n"}

Avant #95881 on avait psycopg2 en dépendance, sans -binary


Related issues

Related to Publik Installation Développeur - Bug #96424: Build cassé sur installation django-tenant-schemasFermé04 October 2024

Actions

History

#1

Updated by Robot Gitea 7 months ago

  • Status changed from Nouveau to Solution proposée
  • Assignee set to Gael Pasgrimaud (retour le 12 mai)

Gael Pasgrimaud (gpasgrimaud) a ouvert une pull request sur Gitea concernant cette demande :

#2

Updated by Robot Gitea 7 months ago

  • Status changed from Solution proposée to Solution validée

Benjamin Dauvergne (bdauvergne) a approuvé une pull request sur Gitea concernant cette demande :

#3

Updated by Gael Pasgrimaud (retour le 12 mai) 7 months ago

  • Related to Bug #96424: Build cassé sur installation django-tenant-schemas added
#4

Updated by Robot Gitea 7 months ago

  • Status changed from Solution validée to Résolu (à déployer)

Gael Pasgrimaud (gpasgrimaud) a mergé une pull request sur Gitea concernant cette demande :

Also available in: Atom PDF