Re: pgAdmin support: setup.py --dump-servers - Mailing list pgadmin-support
From | Aditya Toshniwal |
---|---|
Subject | Re: pgAdmin support: setup.py --dump-servers |
Date | |
Msg-id | CAM9w-_ndnnGns3auCboxXyDs7zULbYZ9yO3bGZdTN16DHWyyRw@mail.gmail.com Whole thread Raw |
In response to | Re: pgAdmin support: setup.py --dump-servers (Gavin Fleming <gavin@kartoza.com>) |
Responses |
Re: pgAdmin support: setup.py --dump-servers
|
List | pgadmin-support |
Hi,
On Fri, Oct 23, 2020 at 6:09 PM Gavin Fleming <gavin@kartoza.com> wrote:
Thanks Yogesh, AdityaBoth your methods run, but produce this error:----------Dumping servers with:User: pgadmin4@pgadmin.orgSQLite pgAdmin config: /var/lib/pgadmin/pgadmin4.db----------SQLite database file "/var/lib/pgadmin/pgadmin4.db" does not exists.
We've added an option "--sqlite-path" where you can specify the pgadmin db file. Refer - https://www.pgadmin.org/docs/pgadmin4/4.27/import_export_servers.html#exporting-servers
You're using desktop mode, so you're file should be in <USER HOME>/.pgadmin/pgadmin4.db.
On 23 Sep 2020, at 09:37, Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:Hi Gavin,Alternatively, you could try below. Not the best of solutions but has worked for few users.1) cd /Applications/pgAdmin\ 4.app/Contents/Resources/venv2) ./bin/python ../web/setup.py --dump-servers <path for pgadmin_dump_servers.json>On Wed, Sep 23, 2020 at 12:59 PM Yogesh Mahajan <yogesh.mahajan@enterprisedb.com> wrote:Hi Gavin,Please run below commands -export PYTHONHOME=/Applications/pgAdmin\ 4.app/Contents/Resources/venv/Applications/pgAdmin\ 4.app/Contents/Resources/venv/bin/python /Applications/pgAdmin\ 4.app/Contents/Resources/web/setup.py --dump-servers <path for pgadmin_dump_servers.json>Thanks,Yogesh MahajanEnterpriseDB Corporation
Phone: +91-9741705709On Tue, Sep 22, 2020 at 8:59 PM Gavin Fleming <gavin@kartoza.com> wrote:HiI’m having no luck with setup.py —dump-servers on my Mac, any assistance would be appreciated.MacOS 10.15.6pgAdmin4 v4.26In /Applications/pgAdmin 4.app/Contents/Resources/webI ran source ../venv/bin/activatethen tried these variations, all in the (venv):1python setup.py --dump-servers /Users/Shared/temp/pgadmin.jsonTraceback (most recent call last):File "setup.py", line 17, in <module>import builtinsImportError: No module named builtins2python3 setup.py --dump-servers /Users/Shared/temp/pgadmin.jsonTraceback (most recent call last):File "setup.py", line 18, in <module>from pgadmin.model import db, User, Version, ServerGroup, Server, \File "/Applications/pgAdmin 4.app/Contents/Resources/web/pgadmin/__init__.py", line 19, in <module>from flask import Flask, abort, request, current_app, session, url_forModuleNotFoundError: No module named ‘flask'3./setup.py --dump-servers /Users/Shared/temp/pgadmin.json./setup.py: line 11: Perform the initial setup of the application, by creating the authand settings database.: command not found./setup.py: line 13: import: command not found./setup.py: line 14: import: command not found./setup.py: line 15: import: command not found./setup.py: line 16: import: command not found./setup.py: line 17: import: command not foundfrom: can't read /var/mail/pgadmin.model./setup.py: line 22: syntax error near unexpected token `('./setup.py: line 22: `if 'SERVER_MODE' in globals():’4pip install builtinsDEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.Collecting builtinsERROR: Could not find a version that satisfies the requirement builtins (from versions: none)ERROR: No matching distribution found for builtins--Thanks,Aditya ToshniwalpgAdmin hacker | Sr. Software Engineer | edbpostgres.com"Don't Complain about Heat, Plant a TREE"
Thanks,
Aditya Toshniwal
pgAdmin hacker | Sr. Software Engineer | edbpostgres.com
"Don't Complain about Heat, Plant a TREE"
pgadmin-support by date: