Re: [pgadmin-support] python version, desktop mode (pgAdmin4)

Поиск
Список
Период
Сортировка
От Willy-Bas Loos
Тема Re: [pgadmin-support] python version, desktop mode (pgAdmin4)
Дата
Msg-id CAHnozTgdEmFshH=2RmvD1VCAqZnysDMTYoPDLC+NOk1t-e2RjA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [pgadmin-support] python version, desktop mode (pgAdmin4)  (Dave Page <dpage@pgadmin.org>)
Ответы Re: [pgadmin-support] python version, desktop mode (pgAdmin4)
Список 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.
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@pgadmin.org> wrote:
Hi

On Wed, Jan 11, 2017 at 8:33 PM, Willy-Bas Loos <willybas@gmail.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

В списке pgadmin-support по дате отправления:

Предыдущее
От: Ashesh Vashi
Дата:
Сообщение: Re: [pgadmin-support] Call for feedback on pgAdmin4 features
Следующее
От: Willy-Bas Loos
Дата:
Сообщение: [pgadmin-support] editable views