Re: Can't launch setup.py in Docker image - module named 'flask'

Поиск
Список
Период
Сортировка
От Aditya Toshniwal
Тема Re: Can't launch setup.py in Docker image - module named 'flask'
Дата
Msg-id CAM9w-_mzXFci5aEKRGmyxFw0YSR5NedJaQ7EgL5dd-124U=+5A@mail.gmail.com
обсуждение исходный текст
Ответ на Can't launch setup.py in Docker image - module named 'flask'  (Alexey Murz Korepov <murznn@gmail.com>)
Список pgadmin-support
Hi Alexey,

Can you try with - /venv/bin/python3 /pgadmin4/setup.py ?

On Fri, Dec 10, 2021 at 1:53 PM Alexey Murz Korepov <murznn@gmail.com> wrote:
I'm trying to debug why the server settings are not applied from the /pgadmin4/servers.json file in Docker container (with clean /var/lib/pgadmin directory), via manually launch this process:
python3 /pgadmin4/setup.py --load-servers /pgadmin4/servers.json 
but got the error:
---
Traceback (most recent call last):
  File "/pgadmin4/setup.py", line 33, in <module>
    from pgadmin.model import db, User, Version, ServerGroup, Server, \
  File "/pgadmin4/pgadmin/__init__.py", line 23, in <module>
    from flask import Flask, abort, request, current_app, session, url_for
ModuleNotFoundError: No module named 'flask'
---

So, if it can't be launched manually, it must fail on automatic servers import process too?

Is this a missing package in Docker image, or some misconfiguration?

And is there any other ways to debug the applying servers.json process?

--
Best regards,
Alexey Murz Korepov.
E-mail: murznn@gmail.com
Messengers: Matrix - https://matrix.to/#/@murz:ru-matrix.org Telegram - @MurzNN


--
Thanks,
Aditya Toshniwal
pgAdmin Hacker | Software Architect | edbpostgres.com
"Don't Complain about Heat, Plant a TREE"

В списке pgadmin-support по дате отправления:

Предыдущее
От: Akshay Joshi
Дата:
Сообщение: Re: Iam facing Fatal Error Pg-Admin server could not contacted
Следующее
От: priscilla sofia
Дата:
Сообщение: Re: Iam facing Fatal Error Pg-Admin server could not contacted