Bug 2128264

Summary: pgadmin4-qt stopped launch
Product: [Fedora] Fedora Reporter: Philippe Makowski <makowski.fedora>
Component: pgadmin4Assignee: Sandro Mani <manisandro>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: manisandro
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pgadmin4-6.12-6.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-01 01:13:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Philippe Makowski 2022-09-20 12:44:51 UTC
Description of problem:
Unable to launch

Version-Release number of selected component (if applicable):
pgadmin4-6.12-5.fc36.src.rpm

Steps to Reproduce:
1.pgadmin4-qt

Actual results:

Traceback (most recent call last):
  File "/usr/lib/pgadmin4/pgAdmin4.py", line 235, in <module>
    main()
  File "/usr/lib/pgadmin4/pgAdmin4.py", line 217, in main
    socketio.run(
  File "/usr/lib/python3.10/site-packages/flask_socketio/__init__.py", line 596, in run
    app.run(host=host, port=port, threaded=True,
  File "/usr/lib/python3.10/site-packages/flask/app.py", line 920, in run
    run_simple(t.cast(str, host), port, self, **options)
TypeError: run_simple() got an unexpected keyword argument 'allow_unsafe_werkzeug'

Comment 1 Sandro Mani 2022-09-20 13:41:54 UTC
What python-socketio version are you using?

Comment 2 Philippe Makowski 2022-09-20 14:59:49 UTC
I have python-socketio-5.7.1-1.fc36

Comment 3 Sandro Mani 2022-09-20 16:35:58 UTC
I take removing allow_unsafe_werkzeug=True from socketio.run in /usr/lib/pgadmin4/pgAdmin4.py, line 217 solves the issue?

Comment 4 Philippe Makowski 2022-09-22 09:50:17 UTC
yes removing it solves the issue.

Comment 5 Fedora Update System 2022-09-22 11:25:18 UTC
FEDORA-2022-da51c253f9 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-da51c253f9

Comment 6 Fedora Update System 2022-09-23 01:57:25 UTC
FEDORA-2022-da51c253f9 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-da51c253f9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-da51c253f9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2022-10-01 01:13:16 UTC
FEDORA-2022-da51c253f9 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.