Thread: pgadmin4 - cannot run on Fedora 24
Hi
I successfully compiled pgAdmin, but any run fails with error[pavel@nemesis runtime]$ ./pgAdmin4
Traceback (most recent call last):
File "/home/pavel/src/pgadmin4/web/pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/home/pavel/src/pgadmin4/web/pgadmin/__init__.py", line 13, in <module>
from flask import Flask, abort, request, current_app
ImportError: No module named 'flask'
[pavel@nemesis runtime]$ python
Python 3.5.1 (default, Mar 4 2016, 15:21:15)
[GCC 6.0.0 20160302 (Red Hat 6.0.0-0.14)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from flask import Flask
>>>
Hi Pavel,
On Thu, May 26, 2016 at 1:08 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
HiI successfully compiled pgAdmin, but any run fails with error
Please install the required dependencies for pgAdmin4 by running the following command:
pip3 install -r requirements_py3.txt
pip3 install -r requirements_py3.txt
FYI -
* We (pgadmin team) use virtual environment to install the dependency in separate environment.
Please refer: https://virtualenv.pypa.io/en/stable/
* If pip3 is install, you can install it using either the OS package mananger (i.e. yum, apt-get, etc)
or, using python setup tool: easy_install
easy_install pip
--
Thanks & Regards,
Ashesh Vashi
PavelRegardsAny help?but flask module is installed there
[pavel@nemesis runtime]$ ./pgAdmin4
Traceback (most recent call last):
File "/home/pavel/src/pgadmin4/web/pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/home/pavel/src/pgadmin4/web/pgadmin/__init__.py", line 13, in <module>
from flask import Flask, abort, request, current_app
ImportError: No module named 'flask'
[pavel@nemesis runtime]$ python
Python 3.5.1 (default, Mar 4 2016, 15:21:15)
[GCC 6.0.0 20160302 (Red Hat 6.0.0-0.14)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from flask import Flask
>>>
2016-05-26 9:45 GMT+02:00 Ashesh Vashi <ashesh.vashi@enterprisedb.com>:
Hi Pavel,On Thu, May 26, 2016 at 1:08 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
HiI successfully compiled pgAdmin, but any run fails with errorPlease install the required dependencies for pgAdmin4 by running the following command:
pip3 install -r requirements_py3.txtFYI -* We (pgadmin team) use virtual environment to install the dependency in separate environment.Please refer: https://virtualenv.pypa.io/en/stable/* If pip3 is install, you can install it using either the OS package mananger (i.e. yum, apt-get, etc)or, using python setup tool: easy_installeasy_install pip
pip3 was successfull
I can import flask in own session
but same result :(
[pavel@nemesis runtime]$ ./pgAdmin4
Traceback (most recent call last):
File "/home/pavel/src/pgadmin4/web/pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/home/pavel/src/pgadmin4/web/pgadmin/__init__.py", line 13, in <module>
from flask import Flask, abort, request, current_app
ImportError: No module named 'flask'
[pavel@nemesis runtime]$ ./pgAdmin4
Traceback (most recent call last):
File "/home/pavel/src/pgadmin4/web/pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/home/pavel/src/pgadmin4/web/pgadmin/__init__.py", line 13, in <module>
from flask import Flask, abort, request, current_app
ImportError: No module named 'flask'
Pavel
--Thanks & Regards,Ashesh VashiPavelRegardsAny help?but flask module is installed there
[pavel@nemesis runtime]$ ./pgAdmin4
Traceback (most recent call last):
File "/home/pavel/src/pgadmin4/web/pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/home/pavel/src/pgadmin4/web/pgadmin/__init__.py", line 13, in <module>
from flask import Flask, abort, request, current_app
ImportError: No module named 'flask'
[pavel@nemesis runtime]$ python
Python 3.5.1 (default, Mar 4 2016, 15:21:15)
[GCC 6.0.0 20160302 (Red Hat 6.0.0-0.14)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from flask import Flask
>>>
Hi Pavel,
Can you please export PYTHONPATH variable before running pgAdmin4 binary.
PYTHONPATH variable path is your path where you have installed flask and other pgadmin4 dependencies.
e.g. export PYTHONPATH=/home/user/workspace/pgAdmin4/lib/python3.4/site-packages/
Do let us know for any queries.
Thanks,
Neel Patel
On Thu, May 26, 2016 at 2:52 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
2016-05-26 9:45 GMT+02:00 Ashesh Vashi <ashesh.vashi@enterprisedb.com>:Hi Pavel,On Thu, May 26, 2016 at 1:08 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
HiI successfully compiled pgAdmin, but any run fails with errorPlease install the required dependencies for pgAdmin4 by running the following command:
pip3 install -r requirements_py3.txtFYI -* We (pgadmin team) use virtual environment to install the dependency in separate environment.Please refer: https://virtualenv.pypa.io/en/stable/* If pip3 is install, you can install it using either the OS package mananger (i.e. yum, apt-get, etc)or, using python setup tool: easy_installeasy_install pippip3 was successfullI can import flask in own sessionbut same result :(
[pavel@nemesis runtime]$ ./pgAdmin4
Traceback (most recent call last):
File "/home/pavel/src/pgadmin4/web/pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/home/pavel/src/pgadmin4/web/pgadmin/__init__.py", line 13, in <module>
from flask import Flask, abort, request, current_app
ImportError: No module named 'flask'Pavel--Thanks & Regards,Ashesh VashiPavelRegardsAny help?but flask module is installed there
[pavel@nemesis runtime]$ ./pgAdmin4
Traceback (most recent call last):
File "/home/pavel/src/pgadmin4/web/pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/home/pavel/src/pgadmin4/web/pgadmin/__init__.py", line 13, in <module>
from flask import Flask, abort, request, current_app
ImportError: No module named 'flask'
[pavel@nemesis runtime]$ python
Python 3.5.1 (default, Mar 4 2016, 15:21:15)
[GCC 6.0.0 20160302 (Red Hat 6.0.0-0.14)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from flask import Flask
>>>
2016-05-26 12:37 GMT+02:00 Neel Patel <neel.patel@enterprisedb.com>:
Hi Pavel,Can you please export PYTHONPATH variable before running pgAdmin4 binary.PYTHONPATH variable path is your path where you have installed flask and other pgadmin4 dependencies.e.g. export PYTHONPATH=/home/user/workspace/pgAdmin4/lib/python3.4/site-packages/Do let us know for any queries.
It is working now - it requires explicit PYTHONPATH
Thank you for help
Regards
Pavel
Thanks,Neel PatelOn Thu, May 26, 2016 at 2:52 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:2016-05-26 9:45 GMT+02:00 Ashesh Vashi <ashesh.vashi@enterprisedb.com>:Hi Pavel,On Thu, May 26, 2016 at 1:08 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
HiI successfully compiled pgAdmin, but any run fails with errorPlease install the required dependencies for pgAdmin4 by running the following command:
pip3 install -r requirements_py3.txtFYI -* We (pgadmin team) use virtual environment to install the dependency in separate environment.Please refer: https://virtualenv.pypa.io/en/stable/* If pip3 is install, you can install it using either the OS package mananger (i.e. yum, apt-get, etc)or, using python setup tool: easy_installeasy_install pippip3 was successfullI can import flask in own sessionbut same result :(
[pavel@nemesis runtime]$ ./pgAdmin4
Traceback (most recent call last):
File "/home/pavel/src/pgadmin4/web/pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/home/pavel/src/pgadmin4/web/pgadmin/__init__.py", line 13, in <module>
from flask import Flask, abort, request, current_app
ImportError: No module named 'flask'Pavel--Thanks & Regards,Ashesh VashiPavelRegardsAny help?but flask module is installed there
[pavel@nemesis runtime]$ ./pgAdmin4
Traceback (most recent call last):
File "/home/pavel/src/pgadmin4/web/pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/home/pavel/src/pgadmin4/web/pgadmin/__init__.py", line 13, in <module>
from flask import Flask, abort, request, current_app
ImportError: No module named 'flask'
[pavel@nemesis runtime]$ python
Python 3.5.1 (default, Mar 4 2016, 15:21:15)
[GCC 6.0.0 20160302 (Red Hat 6.0.0-0.14)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from flask import Flask
>>>