Cannot export connections / servers - pgAdmin4 4.24 (windows)

From: "Rengert, Mark" <mark(dot)rengert(at)redcom(dot)com>
To: "pgadmin-support(at)lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: Cannot export connections / servers - pgAdmin4 4.24 (windows)
Date: 2020-08-11 14:42:06
Message-ID: 418820cc6d9d4ebf82b859ae633e28b5@redcom.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hello -
I'm attempting to "dump servers" according to documentation at https://www.pgadmin.org/docs/pgadmin4/4.24/import_export_servers.html... I tried searching your archives for dump-servers but got "no hits". Seems unlikely, maybe something screwy with the search but there is no help anywhere that I can find.

It fails with an error " ModuleNotFoundError: No module named 'encodings'". Any ideas what I am doing wrong? I did try setting the env variables PYTHONHOME and PYTHONPATH to several different things in the "\Program Files\pgAdmin 4\v4" tree but not sure what it wants, if that even matters. I do see the servers in the Web app.

This is the pgAdmin4 v 4.24 Windows 64-bit version on Windows 10 added via the installer. I am not sure if I am running in "server or desktop mode" but probably desktop?

C:\Users\redacted> "\Program Files\pgAdmin 4\v4\runtime\python.exe" "\Program Files\pgAdmin 4\v4\web\setup.py" --dump-servers pgservers.json
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = '\Program Files\pgAdmin 4\v4\runtime\python.exe'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = 'C:\\Program Files\\pgAdmin 4\\v4\\runtime\\python.exe'
sys.base_prefix = ''
sys.base_exec_prefix = ''
sys.executable = 'C:\\Program Files\\pgAdmin 4\\v4\\runtime\\python.exe'
sys.prefix = ''
sys.exec_prefix = ''
sys.path = [
'C:\\Program Files\\pgAdmin 4\\v4\\runtime\\python38.zip',
'.\\DLLs',
'.\\lib',
'C:\\Program Files\\pgAdmin 4\\v4\\runtime',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00002640 (most recent call first):
<no Python frame>

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Mark Rengert 2020-08-11 14:43:46 Cannot export connections / servers - pgAdmin4 4.24 (windows)
Previous Message Khushboo Vashi 2020-08-11 13:09:45 Re: [EXT] Re: pgadmin4 container deployment with ldap-authentication