无法启动应用程序服务器,Windows上存在服务器线程

sou*_*aid 9 pgadmin pgadmin-4

我在他们的网站上使用了EnterpriseDB postgresql安装程序,但是当我完成并运行pgadmin(安装了postgresql)后,我收到一个配置错误,上面写着:

An error occurred initializing the application server:

Failed to launch application server, server thread existing
Run Code Online (Sandbox Code Playgroud)

然后它要求我输入python路径和应用程序路径.对于python路径,我假设它C:\Users\xxx\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\是我安装python的地方.但是我不确定它询问的是哪个应用程序.

9.6.3版本的postgresql.pgadmin版本是4. windows 10 64bit

Saj*_*ier 3

我遇到了同样的问题,发现“PYTHONPATH”系统变量导致了问题。所以我删除了环境变量并且工作正常。幸运的是,我没有使用这些变量,因为我的开发环境是远程的。

因此,请尝试从环境变量列表中删除“PYTHONHOME”或“PYTHONPATH”并启动应用程序。

从 pgAdmin 代码来看,

# For unknown reason the Qt runtime does not pass the environment
# variables (i.e. PYTHONHOME, and PYTHONPATH), to the Python
# sub-processes, leading to failures executing background processes.
#
# This has been observed only on windows. On *nix systems, it is likely
# picking the system python environment, which is good enough to run
# the process-executor.**
Run Code Online (Sandbox Code Playgroud)

  • 我在ubuntu上遇到这个问题。有什么提示吗? (6认同)