From: | Willy-Bas Loos <willybas(at)gmail(dot)com> |
---|---|
To: | Dave Page <dpage(at)pgadmin(dot)org> |
Cc: | pgAdmin Support <pgadmin-support(at)postgresql(dot)org> |
Subject: | Re: python version, desktop mode (pgAdmin4) |
Date: | 2017-02-27 11:03:42 |
Message-ID: | CAHnozTgdEmFshH=2RmvD1VCAqZnysDMTYoPDLC+NOk1t-e2RjA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
OK, here's for a rebound.
Now running ubuntu 16.04.
I pulled the pgadmin4 source from git and managed to make qmake use python3
en qt5 (the latter using qmake -qt=qt5 after installing some dependencies)
But I get an error about webenginewidgets:
Project ERROR: Unknown module(s) in QT: webenginewidgets
But that seems inevitable, because it appears that webenginewidgets is not
available for Dbian/Ubuntu.
See this bug for more info on that:
https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1579265
Accordingly, it seems impossible to build the executable because QWebView
is missing.
The error:
$ make
g++ -c -m64 -pipe -I/home/wbloos/.virtualenvs/pgadmin4/include/python3.5m
-I/home/wbloos/.virtualenvs/pgadmin4/include/python3.5m -O2 -Wall -W
-D_REENTRANT -DPGADMIN4_USE_WEBKIT -DQT_NO_DEBUG -DQT_WEBKIT_LIB
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I. -o pgAdmin4.o
pgAdmin4.cpp
In file included from TabWindow.h:16:0,
from BrowserWindow.h:16,
from pgAdmin4.cpp:29:
WebViewWindow.h:24:20: fatal error: QWebView: No such file or directory
compilation terminated.
Makefile:272: recipe for target 'pgAdmin4.o' failed
make: *** [pgAdmin4.o] Error 1
Is there a way to run pgAdmin4 as a desktop app (outside of the browser),
preferably using dependencies from the regular repositories, on Ubuntu?
Cheers,
Willy Loos
On Thu, Jan 12, 2017 at 10:43 AM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
> Hi
>
> On Wed, Jan 11, 2017 at 8:33 PM, Willy-Bas Loos <willybas(at)gmail(dot)com>
> wrote:
> > Hi, i've just installed pgAdmin4 on ubuntu 14.04 using git (and QT4).
> > I have 2 newbie questions about it:
> >
> > I use python3 in my virtualenv, but qmake says "Python2 detected". (i
> > installed libqt4-dev with apt-get, so not within the virtualenv, i don't
> > think the latter is possible?)
> > I have not encountered any problems that i can relate to the deviant
> python
> > version. So is this actually a bogus message? Or should i create an
> > environment variable like on windows?
>
> The project file is looking for the python-config (or python3-config)
> executable on Linux/Mac. That is not typically in the virtualenv. It's
> searching for an executable specified in $PYTHON_CONFIG, otherwise
> python-config somewhere in the path, and finally, python3-config,
> somewhere in the path.
>
> > Also, the desktop mode still uses the browser. Only it stores my
> settings in
> > a different file, which is stored in my home dir and without a password.
> And
> > i have access to the root filesystem.
> > I hear that on windows, this runs as a desktop application. Is there a
> > possibility to do this for ubuntu?
>
> Desktop mode *can* use a browser on any platform. It really just
> determines how the app will behave (mostly by removing the need for
> user accounts and un-sandboxing file access if enabled). If you can
> build the Qt runtime on Ubuntu, you should also be able to run pgAdmin
> in it. We don't have any Ubuntu packages for this yet, though you can
> install the EDB PostgreSQL 9.6 installers which include pgAdmin 4.
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
--
Willy-Bas Loos
From | Date | Subject | |
---|---|---|---|
Next Message | Willy-Bas Loos | 2017-02-27 11:41:27 | editable views |
Previous Message | Ashesh Vashi | 2017-02-27 04:34:50 | Re: Call for feedback on pgAdmin4 features |