pgadmin-org / pgadmin4

pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.
https://www.pgadmin.org
Other
2.46k stars 645 forks source link

pgAdmin4 throws error of simplejson if on release v7.0 or v7.1 #6268

Closed bmaehr closed 1 year ago

bmaehr commented 1 year ago

Describe the bug

pgAdmin4 throws error of simplejson if starting on Windows on release v7.0 and v7.1.

To Reproduce

Steps to reproduce the behavior:

  1. Installe release 7.1 of pgadmin4
  2. Start pgAdmin4.exe

Expected behavior

No Error message should be displayed if user launches pgAdmin4

Error message

pgAdmin Runtime Environment

Python Path: "D:\prog\programmieren\pgAdmin\python\python.exe" Runtime Config File: "C:\Users\bmaehr\AppData\Roaming\pgadmin\runtime_config.json" pgAdmin Config File: "D:\prog\programmieren\pgAdmin\web\config.py" Webapp Path: "D:\prog\programmieren\pgAdmin\web\pgAdmin4.py" pgAdmin Command: "D:\prog\programmieren\pgAdmin\python\python.exe -s D:\prog\programmieren\pgAdmin\web\pgAdmin4.py" Environment:

Total spawn time to start the pgAdmin4 server: 0.012 Sec Traceback (most recent call last): File "D:\prog\programmieren\pgAdmin\web\pgAdmin4.py", line 102, in

app = create_app()

File "D:\prog\programmieren\pgAdmin\web\pgadmin__init.py", line 549, in create_app authenticate.init_app(app) File "D:\prog\programmieren\pgAdmin\web\pgadmin\authenticate__init.py", line 340, in init_app AuthSourceRegistry.load_modules(app) File "D:\prog\programmieren\pgAdmin\web\pgadmin\authenticate\registry.py", line 31, in load_modules from . import oauth2 as module File "D:\prog\programmieren\pgAdmin\web\pgadmin\authenticate\oauth2.py", line 14, in from authlib.integrations.flask_client import OAuth File "D:\prog\programmieren\pgAdmin\python\lib\site-packages\authlib\integrations\flask_client__init__.py", line 3, in from .apps import FlaskOAuth1App, FlaskOAuth2App File "D:\prog\programmieren\pgAdmin\python\lib\site-packages\authlib\integrations\flask_client\apps.py", line 2, in from ..requests_client import OAuth1Session, OAuth2Session File "D:\prog\programmieren\pgAdmin\python\lib\site-packages\authlib\integrations\requests_client\init__.py", line 1, in from .oauth1_session import OAuth1Session, OAuth1Auth File "D:\prog\programmieren\pgAdmin\python\lib\site-packages\authlib\integrations\requests_client\oauth1_session.py", line 2, in from requests import Session File "D:\prog\programmieren\pgAdmin\python\lib\site-packages\requests\init__.py", line 45, in from .exceptions import RequestsDependencyWarning File "D:\prog\programmieren\pgAdmin\python\lib\site-packages\requests\exceptions.py", line 9, in from .compat import JSONDecodeError as CompatJSONDecodeError File "D:\prog\programmieren\pgAdmin\python\lib\site-packages\requests\compat.py", line 40, in from simplejson import JSONDecodeError ImportError: cannot import name 'JSONDecodeError' from 'simplejson' (unknown location)

Desktop (please complete the following information):

Additional context

Seems to be related to https://github.com/pgadmin-org/pgadmin4/issues/6088

Removing it and installing v6.21 on the same machine in the same directory works fine.

yogeshmahajan-1903 commented 1 year ago

@bmaehr Could you please try cleaning old installation directory of 6.21(in your case - D:\prog\programmieren\pgAdmin) and then install 7.0/7.1 version?

bmaehr commented 1 year ago

@bmaehr Could you please try cleaning old installation directory of 6.21(in your case - D:\prog\programmieren\pgAdmin) and then install 7.0/7.1 version?

Thank you. I deleted also the folders in AppData/Local and AppData/Roaming - dont't know if that was necessary - and reinstalled it and it started to work. Thank you.