Hi

On Thu, Feb 18, 2021 at 7:34 PM James B. Byrne <byrn...@harte-lyne.ca>
wrote:

> When starting pgadmin4 in a python venv I get a warning that I am starting
> version 4.27 and that 4.30 is available.
>
> However, I have updated that venv to 4.30:
>
> [root@vhost01 ~ (master)]# source
> /opt/python_venv/3.7/pgadmin4/bin/activate
> (pgadmin4) [root@vhost01 ~ (master)]# pip install
>
> https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v4.28/pip/pgadmin4-4.28-py3-none-any.whl
> Collecting pgadmin4==4.28
>   Downloading
>
> https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v4.28/pip/pgadmin4-4.28-py3-none-any.whl
> (89.9 MB)
>
>  
> |&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;|
> 89.9 MB 1.7 MB/s
> Requirement already satisfied: ldap3>=2.5.1 in
> /opt/python_venv/3.7/pgadmin4/lib/python3.7/site-packages (from
> pgadmin4==4.28)
> (2.8.1)
> Requirement already satisfied: Werkzeug>=0.15.0 in
> /opt/python_venv/3.7/pgadmin4/lib/python3.7/site-packages (from
> pgadmin4==4.28)
> (1.0.1)
> . . .
> Requirement already satisfied: dnspython>=1.15.0 in
> /usr/local/lib/python3.7/site-packages (from
> email-validator>=1.0.5->Flask-Security-Too>=3.0.0->pgadmin4==4.30) (1.16.0)
> Requirement already satisfied: pynacl>=1.0.1 in
> /usr/local/lib/python3.7/site-packages (from
> paramiko>=1.15.2->sshtunnel>=0.1.5->pgadmin4==4.30) (1.4.0)
> Installing collected packages: pgadmin4
>   Attempting uninstall: pgadmin4
>     Found existing installation: pgadmin4 4.27
>     Uninstalling pgadmin4-4.27:
>       Successfully uninstalled pgadmin4-4.27
> Successfully installed pgadmin4-4.30
>
> (pgadmin4) [root@vhost01 ~ (master)]# python
> /opt/python_venv/3.7/pgadmin4/lib/python3.7/site-packages/pgadmin4/setup.py
> . . .
> pgAdmin 4 - Application Initialisation
> ======================================
>
> (pgadmin4) [root@vhost01 ~ (master)]#
> /opt/python_venv/3.7/pgadmin4/bin/pgadmin4&
> Starting pgAdmin 4. Please navigate to http://127.0.0.1:5050 in your
> browser.
>
> So what am I missing here?
>

The text above shows you updating to 4.28 in the beginning, but then claims
it installed 4.30. Did you copy/paste the wrong output for the first
section perhaps?

The easiest way to check what code is actually installed is to look in the
config.py file (as well as config_local.py and config_distro.py if
present), eg.

dpage@hal:~/git/pgadmin4$ grep "APP_REVISION = "
/Users/dpage/.virtualenvs/pgatest/lib/python3.8/site-packages/pgadmin4/config*.py
/Users/dpage/.virtualenvs/pgatest/lib/python3.8/site-packages/pgadmin4/config.py:APP_REVISION
= 30

(adjust the path appropriately for your venv of course).

-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EDB: http://www.enterprisedb.com

Reply via email to