From: | Mark Murawski <markm-lists(at)intellasoft(dot)net> |
---|---|
To: | pgadmin-support(at)lists(dot)postgresql(dot)org |
Subject: | Re: pgadmin4 2.0 not properly starting |
Date: | 2017-11-07 16:16:57 |
Message-ID: | 1c0e53c6-4a04-330f-df1f-be891585aac0@intellasoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
Hi Neel,
Yes, this is what I have done already. I pasted my process in the
previous email.
What I did was make a virtualenv for python 3.5, I installed the
requirements for python 3.5, and then from the same virtualenv, I built
pgadmin4, and then also from the same virtualenv (same shell session and
everything), I started pgadmin4.
On 11/07/17 10:32, Neel Patel wrote:
> HI Mark,
>
> I can see different version of Python 3.4 & 3.5. Here build is correct
> but issue is while running pgAdmin4 - it is not able to detect the
> correct virtualenv packages with python version.
> Can you make virtualenv of one python version, install requirements and
> run pgAdmin4 from same virtualenv ?
>
> Thanks,
> Neel Patel
>
> On Tue, Nov 7, 2017 at 8:54 PM, Mark Murawski
> <markm-lists(at)intellasoft(dot)net <mailto:markm-lists(at)intellasoft(dot)net>> wrote:
>
> 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.utils import 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(at)intellasoft(dot)net
> <mailto:markm-lists(at)intellasoft(dot)net>
> <mailto:markm-lists(at)intellasoft(dot)net
> <mailto:markm-lists(at)intellasoft(dot)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.
>
>
>
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Hoffman, Laura A (CTR) | 2017-11-08 00:09:11 | Accessibility Issues with PostgreSQL pgAdmin 1.22.2 |
Previous Message | Neel Patel | 2017-11-07 15:32:45 | Re: pgadmin4 2.0 not properly starting |