pgadmin4: no module flask
pgadmin4: no module flask
От:
Luca Ferrari <fluca1978@infinito.it>
Дата:
Hi all, still trying to get pgAdmin4 running on my system. When I launch it I got: ./runtime/pgAdmin4 Webapp path: "/home/luca/tmp/pgadmin4/web/pgAdmin4.py" Traceback (most recent call last): File "/home/luca/tmp/pgadmin4/web/pgAdmin4.py", line 24, in from pgadmin import create_app File "/home/luca/tmp/pgadmin4/web/pgadmin/__init__.py", line 13, in from flask import Flask, abort, request, current_app ImportError: No module named flask "Failed to launch the application server, server thread exiting." and a configuration window keep asking me the python path and the application path (and I don't know what to specify for it). I've installed flask via pip and via apt, am I missing something? Thanks, Luca
Re: pgadmin4: no module flask
От:
Neel Patel <neel.patel@enterprisedb.com>
Дата:
Hi,
Error itself saying that application is not able to find the required packages so you need to export the PYTHONPATH variable to required packages where installed.
e.g. export PYTHONPATH=/home/user/workspace/pgAdmin4_3_4/lib/python3.4/site-packages/
Thanks,
Neel Patel
On Tue, Apr 19, 2016 at 4:52 PM, Luca Ferrari <fluca1978@infinito.it> wrote:
Hi all,
still trying to get pgAdmin4 running on my system. When I launch it I got:
./runtime/pgAdmin4
Webapp path: "/home/luca/tmp/pgadmin4/web/pgAdmin4.py"
Traceback (most recent call last):
File "/home/luca/tmp/pgadmin4/web/pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/home/luca/tmp/pgadmin4/web/pgadmin/__init__.py", line 13, in <module>
from flask import Flask, abort, request, current_app
ImportError: No module named flask
"Failed to launch the application server, server thread exiting."
and a configuration window keep asking me the python path and the
application path (and I don't know what to specify for it).
I've installed flask via pip and via apt, am I missing something?
Thanks,
Luca
--
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support
Re: pgadmin4: no module flask
От:
Dave Page <dpage@pgadmin.org>
Дата:
On Tuesday, April 19, 2016, Neel Patel <neel.patel@enterprisedb.com> wrote:
Hi,Error itself saying that application is not able to find the required packages so you need to export the PYTHONPATH variable to required packages where installed.e.g. export PYTHONPATH=/home/user/workspace/pgAdmin4_3_4/lib/python3.4/site-packages/
That's assuming they're installed - if not, you need to do that first, e.g.
pip install -r requirements_py3.txt
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Re: pgadmin4: no module flask
От:
Luca Ferrari <fluca1978@infinito.it>
Дата:
On Tue, Apr 19, 2016 at 2:24 PM, Dave Page wrote: > That's assuming they're installed - if not, you need to do that first, e.g. > > pip install -r requirements_py3.txt I've installed flask via pip, as already written: $ pip list | grep -i flask Flask (0.10.1) Flask-Babel (0.9) Flask-Gravatar (0.4.2) Flask-Login (0.2.11) Flask-Mail (0.9.1) Flask-Principal (0.4.0) Flask-Security (1.7.4) Flask-SQLAlchemy (2.0) Flask-WTF (0.11) I've run the following: $ pip install -r ../requirements_py2.txt that gave me a few extra packages, however: $ ./pgAdmin4 Webapp path: "/home/luca/tmp/pgadmin4/web/pgAdmin4.py" Traceback (most recent call last): File "/home/luca/tmp/pgadmin4/web/pgAdmin4.py", line 24, in from pgadmin import create_app File "/home/luca/tmp/pgadmin4/web/pgadmin/__init__.py", line 13, in from flask import Flask, abort, request, current_app File "/home/luca/.local/lib/python2.7/site-packages/flask/__init__.py", line 17, in from werkzeug.exceptions import abort ImportError: No module named werkzeug.exceptions "Failed to launch the application server, server thread exiting." and please note that: $ echo $PYTHONPATH /usr/lib/python2.7 What else am I missing? Luca
Re: pgadmin4: no module flask
От:
Neel Patel <neel.patel@enterprisedb.com>
Дата:
Hi Luca,
Have you created any virtual environment for python 2.7 ?
If you have installed "requirements_py2.txt" then have you got any error in between ? If no where all those packages installed ?
Can you please give the list of directories under "site-packages" where you have installed the packages ?
Thanks,
Neel Patel
On Wed, Apr 20, 2016 at 12:01 PM, Luca Ferrari <fluca1978@infinito.it> wrote:
On Tue, Apr 19, 2016 at 2:24 PM, Dave Page <dpage@pgadmin.org> wrote:
> That's assuming they're installed - if not, you need to do that first, e.g.
>
> pip install -r requirements_py3.txt
I've installed flask via pip, as already written:
$ pip list | grep -i flask
Flask (0.10.1)
Flask-Babel (0.9)
Flask-Gravatar (0.4.2)
Flask-Login (0.2.11)
Flask-Mail (0.9.1)
Flask-Principal (0.4.0)
Flask-Security (1.7.4)
Flask-SQLAlchemy (2.0)
Flask-WTF (0.11)
I've run the following:
$ pip install -r ../requirements_py2.txt
that gave me a few extra packages, however:
$ ./pgAdmin4
Webapp path: "/home/luca/tmp/pgadmin4/web/pgAdmin4.py"
Traceback (most recent call last):
File "/home/luca/tmp/pgadmin4/web/pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/home/luca/tmp/pgadmin4/web/pgadmin/__init__.py", line 13, in <module>
from flask import Flask, abort, request, current_app
File "/home/luca/.local/lib/python2.7/site-packages/flask/__init__.py",
line 17, in <module>
from werkzeug.exceptions import abort
ImportError: No module named werkzeug.exceptions
"Failed to launch the application server, server thread exiting."
and please note that:
$ echo $PYTHONPATH
/usr/lib/python2.7
What else am I missing?
Luca