Re: pgadmin4: no module flask

From: Luca Ferrari <fluca1978(at)infinito(dot)it>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Neel Patel <neel(dot)patel(at)enterprisedb(dot)com>, pgAdmin Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: pgadmin4: no module flask
Date: 2016-04-20 06:31:25
Message-ID: CAKoxK+55nZD3PU_+u4EMAg7GSq4wU2VVrVfmHVqS3hvZy1jVwA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Tue, Apr 19, 2016 at 2:24 PM, Dave Page <dpage(at)pgadmin(dot)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

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Neel Patel 2016-04-20 11:24:19 Re: pgadmin4: no module flask
Previous Message raytan 2016-04-20 02:22:11 Can't install Slony-i from Application Stack Builder