python - PGadmin未加载

标签 python postgresql pgadmin heroku-postgres pgadmin-4

我最近在笔记本电脑上安装了pgadmin4,当我启动该应用程序时,它只是卡在了负载上。我看了一下日志,这就是我看到的内容:

日志

2020-11-14 00:22:46: Checking for system tray...
2020-11-14 00:22:46: Starting pgAdmin4 server...
2020-11-14 00:22:46: Creating server object, port:64222, key:2a079549-63da-44d2-8931-efa9de3a847f, logfile:C:/Users/yonis/AppData/Local/pgadmin4.d41d8cd98f00b204e9800998ecf8427e.log
2020-11-14 00:22:46: Python Path: C:/Program Files/PostgreSQL/13/pgAdmin 4/venv/Lib/site-packages;C:/Program Files/PostgreSQL/13/pgAdmin 4/venv/DLLs;C:/Program Files/PostgreSQL/13/pgAdmin 4/venv/Lib
2020-11-14 00:22:46: Python Home: C:/Program Files/PostgreSQL/13/pgAdmin 4/venv
2020-11-14 00:22:46: Initializing Python...
2020-11-14 00:22:46: Python initialized.
2020-11-14 00:22:46: Adding new additional path elements
2020-11-14 00:22:46: Redirecting stderr...
2020-11-14 00:22:46: stderr redirected successfully.
2020-11-14 00:22:46: Initializing server...
2020-11-14 00:22:46: Webapp Path: C:/Program Files/PostgreSQL/13/pgAdmin 4/web/pgAdmin4.py
2020-11-14 00:22:46: Server initialized, starting server thread...
2020-11-14 00:22:46: Open the application code and run it.
2020-11-14 00:22:46: Set the port number, key and force SERVER_MODE off
2020-11-14 00:22:46: PyRun_SimpleFile launching application server...
2020-11-14 00:22:47: Application Server URL: http://127.0.0.1:64222/?key=2a079549-63da-44d2-8931-efa9de3a847f
2020-11-14 00:22:47: The server should be up. Attempting to connect and get a response.
2020-11-14 00:22:53: Attempt to connect one more time in case of a long network timeout while looping
2020-11-14 00:22:53: Everything works fine, successfully started pgAdmin4.

最佳答案

看一下以下链接:
https://www.postgresql-archive.org/pg-Admin-4-v4-28-Errors-on-launch-td6162407.html
我认为这是您需要的解决方案

Hi All We were not able to reproduce this issue on any of our machines during pre-release testing for v4.28. Then after some R&D, we are able to reproduce this issue. Cause of the problem: if value of "HKEY_CLASSES_ROOT.js\Content Type" is set to "text/plain" then issue is reproducible. In any javascript file, the content type should be “text/javascript” in the response header but in the above registry setting it is "text/plain", so the browser won't allow it. Solution: Open the registry and changed the value of "HKEY_CLASSES_ROOT.js\Content Type" to "text/javascript".

关于python - PGadmin未加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64829748/

相关文章:

postgresql - 在 pgAdmin 中选择整列内容

python - 在 matplotlib 中绘制数字字符串值

python - 使用 matplotlib 动画波脉冲

python - 在 INSERT 中使用 WHERE … ON CONFLICT …

python-2.7 - 如何关闭 psycopg2 和 postgresql 之间的旧连接?

postgresql - 使用数据库备份文件安装 Openbravo

Python 线程从队列获取项目 - 如何确定线程尚未调用 task_done()?

python - 使用 PyPI + OS 级依赖项打包 Python 应用程序

php - PostgreSQL 9.2.2。表 "xxx"有一个条目,但不能从这部分查询中引用它

java - Postgres : connection refused