Closed bmaehr closed 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 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.
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:
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:
__PSLockDownPolicy: 0
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
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.