简体   繁体   English

pgAdmin 4 未在 Windows 10 64 位上启动

[英]pgAdmin 4 not starting on Windows 10 64bit

After a fresh install of postgres 9.6.0.1 for Windows 10 64bit I am not able to get pgAdmin 4 starting.在为 Windows 10 64 位全新安装 postgres 9.6.0.1 后,我无法启动 pgAdmin 4。

First it throws an fatal error message:首先它抛出一个致命的错误信息:

尝试启动 pgAdmin 4 时出现致命错误的消息

After OK, that message appears:确定后,出现该消息:

pgadmin 的配置路径

Is there anything wrong?有什么问题吗? because after OK - the program won't start.因为确定后 - 程序将无法启动。

What can I do to get pgadmin 4 running?我该怎么做才能让 pgadmin 4 运行? What should I enter in Python Path and what in Application Path?我应该在 Python Path 中输入什么,在 Application Path 中输入什么?

I have found now the problem, it was the Java installation on which pgadmin 4 depend heavily.我现在发现了问题,这是 pgadmin 4 严重依赖的 Java 安装。

In Windows when installing Java 8 (Java SE in this case) you do not have to use JAVA_HOME and JAVA_JRE anylonger and you can install java with default path settings (with the version number)在 Windows 中安装 Java 8(在本例中为 Java SE)时,您不必再使用 JAVA_HOME 和 JAVA_JRE,您可以使用默认路径设置(使用版本号)安装 java

So I installed JAVA SDK 8 32 and 64bit and pgadmin start up normally.所以我安装了JAVA SDK 8 32位和64位,pgadmin正常启动。 The PATH variable includes only C:\\ProgramData\\Oracle\\Java\\javapath, thats all and let you use allways the latest version of java you installed. PATH 变量仅包括 C:\\ProgramData\\Oracle\\Java\\javapath,仅此而已,让您始终使用您安装的最新版本的 java。

In my case, I installed pgAdmin 4 v4.25 (released Aug. 20, 2020) .就我而言,我安装了 pgAdmin 4 v4.25(2020 年 8 月 20 日发布)。 It solved my issue .它解决了我的问题。

I had the same problem.我有同样的问题。 I think, the installation of Visual C++ 2013 Redistributable is the source.我认为,Visual C++ 2013 Redistributable 的安装是来源。 I fixed it uninstalling pgAdmin 4 and installing it again.我修复了它卸载 pgAdmin 4 并再次安装它。 It tried to install Visual C++ 2013 Redistributable again, but it was already installed and now it works.它尝试再次安装 Visual C++ 2013 Redistributable,但它已经安装并且现在可以工作了。

Hope this helps.希望这会有所帮助。

尝试安装 pgamin 4.5.1,它适用于我 ( w10 x64) pgadmin 4.1.5

After struggling for weeks with this problem I found a solution.在为这个问题苦苦挣扎数周后,我找到了解决方案。 In my case I have Anaconda installed and maybe it affects PgAdmin in some way, I don't know.就我而言,我安装了 Anaconda,也许它会以某种方式影响 PgAdmin,我不知道。 In order to start PgAdmin I followed these steps:为了启动 PgAdmin,我遵循了以下步骤:

  1. Open cmd and move to C:\\Program Files\\PostgreSQL\\11\\pgAdmin 4\\web打开 cmd 并移动到C:\\Program Files\\PostgreSQL\\11\\pgAdmin 4\\web
  2. Run pgAdmin4.py with your Python distribution.使用您的 Python 发行版运行pgAdmin4.py I had to install several libraries.我不得不安装几个库。
  3. In my case, an error appeared, I needed to change Line #32 of C:\\Program Files\\PostgreSQL\\11\\pgAdmin 4\\web\\pgadmin\\browser\\__init__.py .就我而言,出现错误,我需要更改C:\\Program Files\\PostgreSQL\\11\\pgAdmin 4\\web\\pgadmin\\browser\\__init__.py More precisely:更准确地说:

from flask_security.views import _security, _commit, default_render_json, _ctx to from flask_security.views import _security, _commit, default_render_json, _ctx

from flask_security.views import _security, _commit, _render_json, _ctx

  1. Last, I needed to edited line socket module from Python libraries, gethostbyaddr(name) found non-ASCII symbols in the host name of my computer, I don't have any of them :S.最后,我需要从 Python 库中编辑 line socket 模块,gethostbyaddr(name) 在我的计算机的主机名中找到了非 ASCII 符号,我没有它们中的任何一个:S。 Well, I changed line #687好吧,我改变了#687行

hostname, aliases, ipaddrs = gethostbyaddr(name) to hostname, aliases, ipaddrs = gethostbyaddr(name)

hostname, aliases, ipaddrs = gethostbyaddr("")

  1. After all of these steps I run pgAdmin4.py again and it worked.在所有这些步骤之后,我再次运行 pgAdmin4.py 并且它起作用了。

Hope it helps.希望它有帮助。

For me there was no way to make it work (pgAdmin4 Version 4.21 that comes with Postgres 11.8 on Windows 10 x64).对我来说,没有办法让它工作(Windows 10 x64 上 Postgres 11.8 附带的 pgAdmin4 4.21 版)。 I really tried every possible solution.我真的尝试了所有可能的解决方案。

So I gave up and found pgAdmin3 Redux: https://tokavuh.com/pgAdmin3Redux/ that supports Postgres 11, too.所以我放弃了,找到了 pgAdmin3 Redux: https ://tokavuh.com/pgAdmin3Redux/,它也支持 Postgres 11。

You will probably have problems starting it, because of missing dll's from some Visual C++ Redistributable version I could not find out, but fortunately you will find these missing dll's on https://www.dll-files.com , just search them there as errors pops up.您可能会在启动它时遇到问题,因为我找不到某些 Visual C++ Redistributable 版本中缺少 dll,但幸运的是,您会在https://www.dll-files.com上找到这些缺少的 dll,只需在那里搜索它们即可错误弹出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM