qwat / QWAT

TEKSI Water module (project QWAT) - QGIS project
https://www.teksi.ch
GNU General Public License v2.0
57 stars 31 forks source link

pum upgrade: issue with pre/post_all.py #319

Open varrieta opened 2 years ago

varrieta commented 2 years ago

I'm upgrading my qwat database using PUM from version 1.3.4 to 1.3.6 (using windows).

pum -c pum_config.yaml upgrade -p pg_dev -t qwat_sys.info -d update\delta -v int SRID 2056

All the deltas passed with no issues and my database is now at version 1.3.6 as expected. But I have a problem with pre_all.py and post_all.py. I get theses errors messages:

For pre_all.py

Applying pre-all.py... Message from DropViews: Dropping views Message from DropViews: psql service=pg_dev -f update\delta....\ordinary_data\views\drop_views.sql psql: warning: extra command-line argument "update\delta....\ordinary_data\views\drop_views.sql" ignored psql: FATAL: authentification par mot de passe échouée pour l'utilisateur « -f » Message from DropViews: Dropping views: done OK Applying pre-all.sql... OK

For post_all.py

Applying post-all.py... Message from RecreateViewsAndFunctions: Reloading views and functions 'PGSERVICE' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. 'PGSERVICE' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. Message from RecreateViewsAndFunctions: Reloading views and functions: done OK Applying post-all.sql... OK

@olivierdalang Do I miss something in my installation or cmd ? I don't have this issue with QGEP.

PUM version : 0.9.14 Pirogue version: 1.4.1

varrieta commented 1 year ago

Problem temporary solved by @olivierdalang. The script was adapted for windows.

It can't be used in production for now due to this issue #354