gpt4 book ai didi

python - 初始化应用服务器 : Failed to locate pgAdmin4. py 时发生错误,终止服务器线程

转载 作者:行者123 更新时间:2023-12-03 23:54:17 25 4
gpt4 key购买 nike

我收到此错误:

An error occurred initializing the application server: Failed to locate pgAdmin4.py, terminating server thread.



当它失败时,它会提示调整 python 和应用程序路径,但我在 Stack Overflow 上阅读了一个答案,该人说他删除了对他有用的路径并这样做了,但它仍然给了我同样的错误,我没有看到再次提示。

所以我去了pgAdmin官方网站才看到如果失败我必须输入python和应用程序路径。如何配置 pgAmin 的路径。我正在使用 Fedora 27。

最佳答案

As it fails it will prompt to adjust the python and application path but read an answer on stackoverflow where the person said he deleted the path it worked for him and did so but it still gave me the same error and i don't see the prompt again



可能你的第一个错误实际上是

An error occurred initialising the application server:
Failed to launch the application server, server thread exiting.

很可能你错过了一些像 python3-flask-babelex 这样的 dep

例如在 Fedora 安装
sudo dnf install python3-flask-babelex

当您配置错误的用户配置文件时,您会看到以下错误(您提到的错误)。这是在您从提示 编辑默认值后创建的

An error occurred initializing the application server:
Failed to locate pgAdmin4.py, terminating server thread.

可以通过修复您的配置或删除它以使用默认值来解决此错误:

例如在 Fedora 上检查您的用户配置是否正确

vi ~/.config/pgadmin/pgadmin4.conf

主要检查 [General]中的路径变量部分没问题。

# example
[General]
ApplicationPath=/usr/lib/python3.6/site-packages/pgadmin4-web/
PythonPath=/usr/lib/python3.6/site-packages:/usr/lib64/python3.6/site-packages

关于python - 初始化应用服务器 : Failed to locate pgAdmin4. py 时发生错误,终止服务器线程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51721210/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com