Re: pgadmin4 & runtime

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Dmitry Voronin <carriingfate92(at)yandex(dot)ru>
Cc: pgadmin-support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: pgadmin4 & runtime
Date: 2016-12-01 04:46:35
Message-ID: CA+OCxoweo4JYoR-FKrH4tMcP=7zXtdc3=Pkpkop8z0PGV0zPLA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi

On Wed, Nov 30, 2016 at 7:07 PM, Dmitry Voronin
<carriingfate92(at)yandex(dot)ru> wrote:
> Hello, pgadmin4 team!
>
> I use pgadmin4 1.1 from official site on Ubuntu 14.04.
>
> I have Python 3.4.3, qt5 5.2.1 and I build a runtime component for running pgadmin4 in client mode.
>
> I set venv via venv-3.4 in pgadmin4-1.1/venv.
>
> So, I run runtime part with command:
>
> $ cd pgadmin4-1.1/
> $ ./runtime/pgAdmin4
>
> I have the following output:
>
> Python path: ""
> Python Home: "/home/dimv36/pgadmin4-1.1/venv"
> Fatal Python error: Py_Initialize: Unable to get the locale encoding
> ImportError: No module named 'encodings'
>
> And I have Linux core dump file. If you need in it, I will send to you with next message.
>
> So, what's wrong? Sorry, If those question was here.

The runtime isn't configured with the Python path. You should be
prompted for it, before the runtime exits (note: the runtime code that
will be in 1.2 handles this much better - you may want to use a git
checkout). You probably need to enter the site-packages directory from
the virtualenv, e.g.

/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Ashesh Vashi 2016-12-01 07:53:16 Re: Backup database runs forever
Previous Message Devrim Gündüz 2016-11-30 19:12:21 Re: PgAdmin4 not usable when installed from RPMs on Fedora linux