Re: pgadmin-4.30 upgrade from 4.27
От | Dave Page |
---|---|
Тема | Re: pgadmin-4.30 upgrade from 4.27 |
Дата | |
Msg-id | CA+OCxoyqgh=a1E6nm=KoTU3Yz_BB2FUqV+WGSLVg6nkX-w2iXA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: pgadmin-4.30 upgrade from 4.27 ("James B. Byrne" <byrnejb@harte-lyne.ca>) |
Ответы |
Re: pgadmin-4.30 upgrade from 4.27
("James B. Byrne" <byrnejb@harte-lyne.ca>)
|
Список | pgadmin-support |
Hi
On Fri, Feb 19, 2021 at 2:05 PM James B. Byrne <byrnejb@harte-lyne.ca> wrote:
On Fri, February 19, 2021 04:33, Dave Page wrote:
> Hi
>
> On Thu, Feb 18, 2021 at 7:34 PM James B. Byrne <byrnejb@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:
>>
. . .
>> 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?
I had previously updated to 4.28 using the same procedure. The application
continued to report that it was 4.27 and warn that a new version was available.
I skipped 4.29 because I never could get 4.28 to take. I decided to try again
with 4.30 and ask for help. What I posted here I likely copied from the wrong
set of notes.
>
> 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).
>
# grep "APP_REVISION = "
/opt/python_venv/3.7/pgadmin4/lib/python3.7/site-packages/pgadmin4/config.py
APP_REVISION = 30
I got a similar result (APP_REVISION = 28) after installing 4.28. Nonetheless,
when I connect to http://localhost:5050 the splash pages says it is loading
4.27 and the outdated version warning appears.
You are currently running version 4.27 of pgAdmin 4,
however the current version is 4.30.
A couple of possibilities spring to mind:
1) Python hasn't noticed the update, and is using the older bytecode. Try searching for and removing any __pycache__ directories under /opt/python_venv/3.7/pgadmin4/lib/python3.7/site-packages/pgadmin4.
2) Either pgAdmin hasn't been restarted, or you're not running the copy you think you are. Take a look at the process list (ps -ef or similar), and check what is actually running.
В списке pgadmin-support по дате отправления: