From eb65ab6b4b1c10d47c131c8aff15814aac7c3e6b Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Mon, 4 Jul 2022 10:33:12 +0530 Subject: [PATCH] Fixed no module named 'setup' error. --- web/pgAdmin4.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/pgAdmin4.py b/web/pgAdmin4.py index 98772c7c2..93be55b81 100644 --- a/web/pgAdmin4.py +++ b/web/pgAdmin4.py @@ -13,7 +13,6 @@ to start a web server.""" import sys -import setup if sys.version_info < (3, 4): raise RuntimeError('This application must be run under Python 3.4 ' @@ -37,14 +36,13 @@ else: builtins.SERVER_MODE = None import config +import setup from pgadmin import create_app, socketio -from pgadmin.utils import u_encode, fs_encoding, file_quote from pgadmin.utils.constants import INTERNAL # Get the config database schema version. We store this in pgadmin.model # as it turns out that putting it in the config files isn't a great idea from pgadmin.model import SCHEMA_VERSION - ########################################################################## # Support reverse proxying ##########################################################################