Re: Issue using Python to import a server - Mailing list pgadmin-support

From Yogesh Mahajan
Subject Re: Issue using Python to import a server
Date
Msg-id CAMa=N=MDrip8wu1_23uiUbFoSShA7j5S59seMkPgSGq6v8LOAw@mail.gmail.com
Whole thread Raw
In response to Issue using Python to import a server  (Arne Brücher <arne.bruecher@zollsoft.de>)
List pgadmin-support
Hi Arne,

You are correct. You have to use setup.py located inside the app directory. You may use other python venv but suggested would be the venv created inside the app directory.
And yes this is CLI way to import/export the servers in addition to functionality provided in the UI.


Thanks,
Yogesh Mahajan
EnterpriseDB


On Mon, Jan 29, 2024 at 7:30 PM Arne Brücher <arne.bruecher@zollsoft.de> wrote:
Hello everybody,

I'm trying to import a server using the CLI/Python using the following docs:
https://www.pgadmin.org/docs/pgadmin4/development/import_export_servers.html#importing-servers

Unfortunately I don't get which path to Python and setup.py is meant.
Do I have to activate the virtual environment in /Applications/pgAdmin\
4.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11/venv?
Do I have to use the Python executable and setup.py which also can be
found in the Application directory?
Are the instructions linked above even meant as an addition to the
PgAdmin GUI?

Thanks in advance and with kind regards
Arne Brücher



pgadmin-support by date:

Previous
From: Arne Brücher
Date:
Subject: Issue using Python to import a server
Next
From: Joan
Date:
Subject: Re: Custom auto-vacuum toogle disabled on partitioned tables