Re: pgadmin4 2.0 not properly starting - Mailing list pgadmin-support
From | Mark Murawski |
---|---|
Subject | Re: pgadmin4 2.0 not properly starting |
Date | |
Msg-id | c1aeffdb-60a5-82a3-1a0d-bd4fd6094ac1@intellasoft.net Whole thread Raw |
In response to | Re: pgadmin4 2.0 not properly starting (Neel Patel <neel.patel@enterprisedb.com>) |
Responses |
Re: pgadmin4 2.0 not properly starting
|
List | pgadmin-support |
Hi Neel, Here you go: source /usr/share/virtualenvwrapper/virtualenvwrapper.sh mkvirtualenv --python=/usr/bin/python3.5 pgadmin4 export PYTHON_CONFIG=/home/markm/.virtualenvs/pgadmin4/bin/python-config workon pgadmin4 pip3 install --upgrade -r requirements.txt $ qmake Project MESSAGE: Building for QT5+... Project MESSAGE: Using QWebEngine... Project MESSAGE: Building for Linux/Mac... Project MESSAGE: Using /home/markm/.virtualenvs/pgadmin4/bin/python-config Project MESSAGE: Python3 detected. $ make build successful... ./pgAdmin4 Python path: "/home/markm/.virtualenvs/pgadmin4/lib/python3.4/site-packages" Python Home: "" Webapp path: "/home/markm/download/pgadmin4/web/pgAdmin4.py" Traceback (most recent call last): File "/home/markm/download/pgadmin4/web/pgAdmin4.py", line 34, in <module> import config File "/home/markm/download/pgadmin4/web/config.py", line 30, in <module> from pgadmin.utilsimport env, IS_PY2, IS_WIN, fs_short_path File "/home/markm/download/pgadmin4/web/pgadmin/__init__.py", line 17, in <module> from flask import Flask, abort, request, current_app, session, url_for ImportError: No module named 'flask' It's still trying to load 3.4 On 11/07/17 00:24, Neel Patel wrote: > Hi Mark, > > You have to use same python version while building and running pgAdmin4 > application. > > If you want to compile pgAdmin4 runtime application with Python 3.4 then > export "PYTHON_CONFIG" variable so that application will use python 3.4 > while compiling. > Hope you have used python 3.4 while creating virtual environment. > > e.g. export > PYTHON_CONFIG=/home/markm/.virtualenvs/pgadmin4/bin/python-config > > After exporting above variable - while executing "qmake" message should > be displayed like "Python3 detected.". > > Let us know if you face any issue. > > Thanks > > On Tue, Nov 7, 2017 at 7:03 AM, Mark Murawski > <markm-lists@intellasoft.net <mailto:markm-lists@intellasoft.net>> wrote: > > Hi, > > Checkout > master 8b543a58 > > Python 2.7 > > Pgadmin4 draws an initial window and then goes no further. Attached > screenshot. > > There's no log file output. And only this from the main process: > $ runtime/pgAdmin4 > Python path: > "/home/markm/.virtualenvs/pgadmin4/lib/python3.4/site-packages" > Python Home: "" > Webapp path: "/home/markm/download/pgadmin4/web/pgAdmin4.py" > > > It says the path is 3.4, but I've build with 2.7 (not sure how to > fix it to load 3.4, I'm not a python expert) > > Here's the output from qmake > $ qmake > Project MESSAGE: Building for QT5+... > Project MESSAGE: Using QWebEngine... > Project MESSAGE: Building for Linux/Mac... > Project MESSAGE: Using > /home/markm/.virtualenvs/pgadmin4/bin/python-config > Project MESSAGE: Python2 detected. > > I had a lot of problems installing dependencies using pip, and it > was recommended I use pipenv. Using pipenv I was able to get all > the dependencies installed for 2.7 into > /.virtualenvs/pgadmin4/lib/python2.7/site-packages. > > When pgadmin4 loads, it's looking for site-pacakges in > .virtualenvs/pgadmin4/lib/python3.4/site-packages, so I symlinked > 3.4 to 2.7 and pgadmin4 was able to start loading. > > Any help greatly appreciated! > > Thanks. > >
pgadmin-support by date: