Re: pgAdmin 4 as Web application

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "'Neel Patel *EXTERN*'" <neel(dot)patel(at)enterprisedb(dot)com>
Cc: "pgadmin-hackers(at)postgresql(dot)org" <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: pgAdmin 4 as Web application
Date: 2016-08-09 13:51:14
Message-ID: A737B7A37273E048B164557ADEF4A58B5388C035@ntex2010i.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Neel Patel wrote:
> We already have condition for QUrlQuery class as below. It will be used only if Qt version is >= 5.0.
>
> #if QT_VERSION >= 0x050000
> // Extract filename and query from encoded URL
> QUrlQuery query_data(reply->url());
> QString file_name = query_data.queryItemValue("filename");
> QString query = query_data.queryItemValue("query");
> #else
> QUrl url(reply->url());
> QString file_name = url.queryItemValue("filename");
> QString query = url.queryItemValue("query");
> #endif

Oh, I see now, thank you for the help.
I was missing commit dcf5bfc495bea1d5b28c389335cbd89e73468aaa (I downloaded
the pgadmin4-1.0-beta3 source).

After editing the file, I can build it, but when starting "pgadmin4" I get

Full Python path: ""
User Python path: ""
Webapp path: "/MYSQL/mysqldata/fs1/rpmbuild/pgadmin4-1.0-beta3/web/pgAdmin4.py"
Traceback (most recent call last):
File "/MYSQL/mysqldata/fs1/rpmbuild/pgadmin4-1.0-beta3/web/pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/MYSQL/mysqldata/fs1/rpmbuild/pgadmin4-1.0-beta3/web/pgadmin/__init__.py", line 281
arch_keys = {0}
^
SyntaxError: invalid syntax

The same happens when I try to start it as web application.

My system has
Python 2.6.6
Qt 4.6.2
Apache httpd 2.2.15

What could be the problem?

Yours,
Laurenz Albe

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2016-08-09 14:07:20 RM #1461 Query tool button/menu inconsistencies
Previous Message Dave Page 2016-08-09 13:28:50 Re: PATCH: To fix the issue where message panel was showing incomplete info (pgAdmin4)