1

当新版本出现时,我总是对 PosgreSQL 有问题。我再次尝试安装扩展 plpython3u 并带有此提示Error during: CREATE EXTENSION plpython3u; 在 PostgreSQL 9.6.0 上,我创建了扩展。我将目录添加到 PATH 并将变量 PYTHONHOME 添加到环境。现在,当我尝试使用 plpython3u 创建任何简单的函数时,它会因信息而崩溃

Connection to the server has been lost.

以下是来自日志 pgAdmin 文件的信息:

2018-11-25 14:06:47,649: ERROR  werkzeug:   Error on request:

Traceback (most recent call last):
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site- packages\werkzeug\serving.py", line 270, in run_wsgi
execute(self.server.app)
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site-packages\werkzeug\serving.py", line 258, in execute
application_iter = app(environ, start_response)
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site-packages\flask\app.py", line 1997, in __call__
return self.wsgi_app(environ, start_response)
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site-packages\flask\app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site-packages\flask\app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site-packages\flask\_compat.py", line 33, in reraise
raise value
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site-packages\flask\app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site-packages\flask\app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site-packages\flask\_compat.py", line 33, in reraise
raise value
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site-packages\flask\app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\venv\Lib\site-packages\flask_login.py", line 792, in decorated_view
return func(*args, **kwargs)
  File "C:\Program Files\PostgreSQL\11\pgAdmin 4\web\pgadmin\tools\sqleditor\__init__.py", line 1512, in query_tool_status
conn.check_notifies(True)
   File "C:\Program Files\PostgreSQL\11\pgAdmin 4\web\pgadmin\utils\driver\psycopg2\connection.py", line 1805, in check_notifies
self.conn.poll()
psycopg2.InterfaceError: connection already closed

我正在使用由 StackBuildier 下载的 EDB 中的 pgAdmin 和 Pyhton 的 FireFox 有谁知道如何正确安装它?谢谢

4

1 回答 1

1

经过 10 个小时的尝试后,我决定安装 Python 3.6.7,这对我来说并不典型,因为 EDB 支持 3.6.5v,并且根据以前的经验,我认为新版本肯定不会工作。

我错了。

我再次将 Python36.dll (3.6.7v) 复制到 C:\Windows\System32 中,现在一切正常。

于 2018-11-25T22:02:49.820 回答