FS#54813 - [pgadmin4] Fails to start

Attached to Project: Community Packages
Opened by Gregory (rollenwiese) - Friday, 14 July 2017, 21:56 GMT
Last edited by Levente Polyak (anthraxx) - Tuesday, 01 August 2017, 18:17 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jerome Leclanche (Adys)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 12
Private No

Details

Description:


[gregory@seneca ~]$ pgadmin4
Python path: ""
Python Home: "/usr/lib/pgadmin4/venv"
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fe033a52880 (most recent call first):
Aborted (core dumped)



This task depends upon

Closed by  Levente Polyak (anthraxx)
Tuesday, 01 August 2017, 18:17 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.6-2
Comment by Alexis Marchand (LxFx) - Monday, 17 July 2017, 07:46 GMT
Same issue here, v1.5 is fine.
Comment by Alexis Marchand (LxFx) - Monday, 24 July 2017, 09:20 GMT
Is there by any chance a Python quick fix to make it work until 1.6-2 arrives? thanks!
Comment by Ricardo Vrech (ricardo.vrech) - Friday, 28 July 2017, 20:03 GMT
Same mistake on several different machines with Manjaro...
-------------------
[ricardo@tecso-rcv ~]$ /usr/bin/pgadmin4
qt5ct: using qt5ct plugin
Python path: ""
Python Home: "/usr/lib/pgadmin4/venv"
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f6386221880 (most recent call first):
Abortado (`core' generado)
------------------
Comment by Peter (protake) - Tuesday, 01 August 2017, 10:18 GMT
Sooo, will this be fixed? Bug has been present for more than half a month now.
Comment by Jerome Leclanche (Adys) - Tuesday, 01 August 2017, 10:19 GMT
Sorry, I don't know what to do about this. I'm tempted to move pgadmin4 back to the AUR, that software is a disaster.
Comment by Alexis Marchand (LxFx) - Tuesday, 01 August 2017, 12:37 GMT
How can we help out?
I can't find a related upstream bug report, except maybe this one:

https://redmine.postgresql.org/issues/2614

I'm just a beginner in Python, but available to help search for a solution.
Comment by Alexis Marchand (LxFx) - Tuesday, 01 August 2017, 12:39 GMT
Also, this older email mentions the same symptoms:
https://www.postgresql.org/message-id/CA%2BOCxoweo4JYoR-FKrH4tMcP%3D7zXtdc3%3DPkpkop8z0PGV0zPLA%40mail.gmail.com

So, might be PythonPath related?

Loading...