Re: building with Qt runtime question

From: George Gelashvili <ggelashvili(at)pivotal(dot)io>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: building with Qt runtime question
Date: 2017-02-10 16:42:01
Message-ID: CAHowoHa7z7LuuvGOrwR+Q=ctt2neNY-fNE5qRDpvGQypynA42g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Thanks Dave. That helped us get it building -- it turns out we had set up
virtualenv under pyenv instead of under system python. We also had to
chmod+w on the pg_dump that is supposed to be re-written by
install_name_tool.
Now we are just having issues running it. It shows the splash screen and
then immediately exits with "pgAdmin 4 quit unexpectedly."
We tried looking at the Report..>Show Details, but it was just a dump of
thread state. We tried setting qmake CONFIG+=debug, but we're not sure
where the logs go. We looked in the running directory and in /var/log.
Any hints from here?

On Fri, Feb 10, 2017 at 8:50 AM, Dave Page <dpage(at)pgadmin(dot)org> wrote:

> Hi
>
> On Thu, Feb 9, 2017 at 11:22 PM, George Gelashvili
> <ggelashvili(at)pivotal(dot)io> wrote:
> > Hello Hackers!
> >
> > We're having trouble building the app with Qt runtime.
> > We've tried running make appbundle after setting PGDIR, QTDIR,
> PYTHON_HOME,
> > and PYTHON_VERSION environment variables. We've tried setting
> PYTHON_HOME to
> > the roots of brew (effectively, system) python as well as the virtualenv
> we
> > use for development without success.
> >
> > We see:
> >>
> >> ImportError: No module named site
> >> Installing pip from https://bootstrap.pypa.io/get-pip.py...
> >> pyenv: version `2.7.12/envs/venv' is not installed (set by PYENV_VERSION
> >> environment variable)
> >> error: failed to install pip via get-pip.py
> >> make: *** [appbundle] Error 1
>
> That looks... weird.
>
> > Anyone who's built an OSX pgadmin package: what are your PGDIR, QTDIR,
> > PYTHON_HOME, and PYTHON_VERSION set to? Which python is active in the
> > terminal you run make appbundle from? Are you doing any other setup for
> that
> > make to succeed?
>
> None of those are set in my build environment - I rely on the defaults.
>
> Postgres is installed in /usr/local/pgsql (actually a symlink to
> /usr/local/pgsql-9.6)
> Qt is installed in the default location - ~/Qt/5.7/clang_64
> For the purposes of the build, I use the system Python, and ensure I
> initiate the build in a venv based on the same version (so it can
> pre-process some of the docs - probably not essential the versions
> match though). PYTHON_HOME defaults to
> /System/Library/Frameworks/Python.framework/Versions/2.7 and
> PYTHON_VERSION to 27.
>
> See pkg/mac/build.sh.
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2017-02-10 16:59:35 Re: building with Qt runtime question
Previous Message Surinder Kumar 2017-02-10 13:51:50 [pgAdmin4][Patch]: RM2115 - Wrong SQL displayed for exclusion constraints with gist method