Project

General

Profile

Tâche #31134

erreur au lancement de pgadmin-tool

Added by Vincent Chavanon 10 months ago. Updated 3 months ago.

Status:
Résolu
Priority:
Normal
Assigned To:
-
Target version:
PNE-SR - MTES - sprint 40 - 01
Start date:
11/16/2020
Due date:
% Done:

0%

Remaining (hours):

Description

le portage du code fait pour la 2.7.1 pose soucis en 2.7.2 : au reconfigure, ou au lancement de pgadmin-tool, on constate l'erreur suivante : run-parts: executing /usr/share/eole/posttemplate/60-pgadmin_reinit_db reconfigure
Traceback (most recent call last):
File "/usr/share/eole/sbin/pgadmin-tool", line 124, in <module>
cli()
File "/usr/lib/python3/dist-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/share/eole/sbin/pgadmin-tool", line 40, in show_user_entry
app = create_app()
File "/usr/share/pgadmin4/web/pgadmin/
_init__.py", line 718, in create_app
from pgadmin.misc.themes import themes
ImportError: cannot import name 'themes'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 154, in apport_excepthook
os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_share_eole_sbin_pgadmin-tool.0.crash'

Original exception was:
Traceback (most recent call last):
File "/usr/share/eole/sbin/pgadmin-tool", line 124, in <module>
cli()
File "/usr/lib/python3/dist-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/share/eole/sbin/pgadmin-tool", line 40, in show_user_entry
app = create_app()
File "/usr/share/pgadmin4/web/pgadmin/
_init__.py", line 718, in create_app
from pgadmin.misc.themes import themes
ImportError: cannot import name 'themes'
NOTE: Configuring authentication for SERVER mode.

Traceback (most recent call last):
File "setup.py", line 413, in <module>
setup_db()
File "setup.py", line 347, in setup_db
app = create_app()
File "/usr/share/pgadmin4/web/pgadmin/__init__.py", line 718, in create_app
from pgadmin.misc.themes import themes
ImportError: cannot import name 'themes'
run-parts: executing /usr/share/eole/posttemplate/70-eoleflask reconfigure

Associated revisions

Revision bf554451 (diff)
Added by Matthieu Lamalle 3 months ago

update scripts for pgadmin4 v5.3

Revision 9c8b1a5c (diff)
Added by Matthieu Lamalle 3 months ago

update paths

Revision 1dd3e560 (diff)
Added by Matthieu Lamalle 3 months ago

correction on paths

History

#1 Updated by Benjamin Bohard 10 months ago

La méthode mise en place pour forcer la langue de l’interface au démarrage pose potentiellement problème lors des mises à jour.
Le fichier pgadmin/__init__.py est écrasé (valeur 'en' remplacée par 'fr') par une version qui ne correspond pas forcément aux dépendances installées. En l’occurence, ce fichier était dans une version plus récente que la dépendance pgadmin4-common et un changement de nom de fonction (Themes vs themes) provoque une erreur d’import.

#2 Updated by Matthieu Lamalle 3 months ago

  • Status changed from Nouveau to Résolu

Also available in: Atom PDF