Re: Issue using Python to import a server

From: Yogesh Mahajan <yogesh(dot)mahajan(at)enterprisedb(dot)com>
To: Arne Brücher <arne(dot)bruecher(at)zollsoft(dot)de>
Cc: pgadmin-support(at)lists(dot)postgresql(dot)org
Subject: Re: Issue using Python to import a server
Date: 2024-01-30 04:17:32
Message-ID: CAMa=N=MDrip8wu1_23uiUbFoSShA7j5S59seMkPgSGq6v8LOAw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)bruecher(at)zollsoft(dot)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
>
>
>
>

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Joan 2024-01-30 11:35:05 Re: Custom auto-vacuum toogle disabled on partitioned tables
Previous Message Arne Brücher 2024-01-29 14:00:37 Issue using Python to import a server