Re: pgadmin4 and Python3
От | Дмитрий Воронин |
---|---|
Тема | Re: pgadmin4 and Python3 |
Дата | |
Msg-id | 1618701465886825@web16o.yandex.ru обсуждение исходный текст |
Ответ на | Re: pgadmin4 and Python3 (Neel Patel <neel.patel@enterprisedb.com>) |
Ответы |
Re: pgadmin4 and Python3
|
Список | pgadmin-support |
<div> </div><div> </div><div>14.06.2016, 09:37, "Neel Patel" <neel.patel@enterprisedb.com>:</div><blockquote type="cite"><div>Hi,<div> </div><div>Asyou said, PYTHONPATH is set but from the error it looks like application is not ableto get the python path.</div><div>Can you please export the PYTHONPATH variable to "<span style="font-size:12.8px;">/home/developer/</span><span style="font-size:12.8px;">pgadmin4/venv/lib/python3.4/</span><spanstyle="font-size:12.8px;">site-packages</span>" and runthe application from where the path is exported.</div><div> </div><div>e.g.</div><div>export PYTHONPATH=<span style="font-size:12.8px;">/home/developer/</span><span style="font-size:12.8px;">pgadmin4/venv/lib/python3.4/</span><span style="font-size:12.8px;">site-packages</span></div><div><spanstyle="font-size:12.8px;"> </span></div><div><span style="font-size:12.8px;">Letus know the output.</span></div><div> </div><div>Thanks,</div><div>Neel Patel</div><div> </div></div></blockquote><div> </div><div>Thankyou for answer. It's works. But why pgadmin4 does not setPYTHONPATH after dialog?</div><div> </div><div>But when I run pgadmin4 as desktop I see Python Exception Trace. (I usePython 3.4):</div><div> </div><div>Traceback (most recent call last):<br /> File "/home/developer/pgadmin4/web/pgAdmin4.py",line 24, in <module><br /> from pgadmin import create_app<br /> File"/home/developer/pgadmin4/web/pgadmin/__init__.py", line 13, in <module><br /> from flask import Flask, abort,request, current_app<br /> File "/home/developer/pgadmin4/venv/lib/python3.4/site-packages/flask/__init__.py", line17, in <module><br /> from werkzeug.exceptions import abort<br /> File "/home/developer/pgadmin4/venv/lib/python3.4/site-packages/werkzeug/__init__.py",line 154, in <module><br /> __import__('werkzeug.exceptions')<br/> File "/home/developer/pgadmin4/venv/lib/python3.4/site-packages/werkzeug/exceptions.py",line 71, in <module><br /> fromwerkzeug.wrappers import Response<br /> File "/home/developer/pgadmin4/venv/lib/python3.4/site-packages/werkzeug/wrappers.py",line 26, in <module><br /> fromwerkzeug.http import HTTP_STATUS_CODES, \<br /> File "/home/developer/pgadmin4/venv/lib/python3.4/site-packages/werkzeug/http.py",line 26, in <module><br /> from urllib2import parse_http_list as _parse_list_header<br /> File "<frozen importlib._bootstrap>", line 2237, in _find_and_load<br/> File "<frozen importlib._bootstrap>", line 2222, in _find_and_load_unlocked<br /> File "<frozenimportlib._bootstrap>", line 2164, in _find_spec<br /> File "<frozen importlib._bootstrap>", line 1940,in find_spec<br /> File "<frozen importlib._bootstrap>", line 1914, in _get_spec<br /> File "<frozen importlib._bootstrap>",line 2049, in find_spec<br /> File "<frozen importlib._bootstrap>", line 53, in _path_join<br/> File "<frozen importlib._bootstrap>", line 53, in <listcomp><br />TypeError: 'str' does notsupport the buffer interface<br />"Failed to launch the application server, server thread exiting."</div><div><br />Allpackages were installed from requirements_py3.txt via pip3.4 install -r requirements_py3.txt. After depends installingI copy web/config.py to web/config_local.py and run /home/developer/pgadmin4/venv/bin/python3.4 web/setup.py forinitialization</div><div> </div><div>-- </div><div>Best regards, Dmitry Voronin</div><div> </div><div>Traceback (mostrecent call last):<br /> File "/home/developer/pgadmin4-1.0-beta1/web/pgAdmin4.py", line 24, in <module><br /> from pgadmin import create_app<br /> File "/home/developer/pgadmin4-1.0-beta1/web/pgadmin/__init__.py", line 13, in<module><br /> from flask import Flask, abort, request, current_app<br /> File "/home/developer/pgadmin4-1.0-beta1/venv/lib/python3.4/site-packages/flask/__init__.py",line 17, in <module><br /> from werkzeug.exceptions import abort<br /> File "/home/developer/pgadmin4-1.0-beta1/venv/lib/python3.4/site-packages/werkzeug/__init__.py",line 154, in <module><br/> __import__('werkzeug.exceptions')<br /> File "/home/developer/pgadmin4-1.0-beta1/venv/lib/python3.4/site-packages/werkzeug/exceptions.py",line 71, in <module><br/> from werkzeug.wrappers import Response<br /> File "/home/developer/pgadmin4-1.0-beta1/venv/lib/python3.4/site-packages/werkzeug/wrappers.py",line 26, in <module><br/> from werkzeug.http import HTTP_STATUS_CODES, \<br /> File "/home/developer/pgadmin4-1.0-beta1/venv/lib/python3.4/site-packages/werkzeug/http.py",line 26, in <module><br /> from urllib2 import parse_http_list as _parse_list_header<br /> File "<frozen importlib._bootstrap>", line 2237,in _find_and_load<br /> File "<frozen importlib._bootstrap>", line 2222, in _find_and_load_unlocked<br /> File"<frozen importlib._bootstrap>", line 2164, in _find_spec<br /> File "<frozen importlib._bootstrap>", line1940, in find_spec<br /> File "<frozen importlib._bootstrap>", line 1914, in _get_spec<br /> File "<frozenimportlib._bootstrap>", line 2049, in find_spec<br /> File "<frozen importlib._bootstrap>", line 53,in _path_join<br /> File "<frozen importlib._bootstrap>", line 53, in <listcomp><br />TypeError: 'str' doesnot support the buffer interface<br />"Failed to launch the application server, server thread exiting."<br /><br /></div>
В списке pgadmin-support по дате отправления: