Re: [ANNOUNCE] pgAdmin 4 v1.0 Released!

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: [ANNOUNCE] pgAdmin 4 v1.0 Released!
Дата
Msg-id 037a5d81-2b6b-5267-d0e8-78a5fc8b7b8a@aklaver.com
обсуждение исходный текст
Ответ на Re: [ANNOUNCE] pgAdmin 4 v1.0 Released!  (Tim Clarke <tim.clarke@manifest.co.uk>)
Ответы Re: [ANNOUNCE] pgAdmin 4 v1.0 Released!  (Tim Clarke <tim.clarke@manifest.co.uk>)
Список pgsql-general
On 09/30/2016 11:32 AM, Tim Clarke wrote:
> On 30/09/16 18:35, Devrim Gündüz wrote:
>> These are the -devel packages that I installed to build pgadmin4 RPMs:
>> BuildRequires:    mesa-libGL-devel
>> BuildRequires:    gcc-c++
>> BuildRequires:    qt5-qtbase-devel >= 5.1
>> BuildRequires:    qt5-qtwebkit-devel
>> BuildRequires:    qt-devel >= 4.6
>> BuildRequires:    qtwebkit-devel
>> BuildRequires:    python3-devel
>> BuildRequires:    python-devel
>>
>> In your case, I think qt-devel and qtwebkit-devel packages are needed.
>>
>> Regards,
>>
>
> Many thanks for that list Devrim, I always get slightly irritated as a
> developer on many platforms that the build process isn't slightly more
> transport sometimes. Since I'm running Ubuntu here, for the benefit of
> others, I had to:
>
> sudo apt-get install qt4-dev-tools libqtwebkit-dev
>
> Now I've compiled it with only:
>
>> /usr/lib/x86_64-linux-gnu/qt4/bin/rcc -name pgAdmin4 pgAdmin4.qrc -o
>> qrc_pgAdmin4.cpp
>> g++ -c -m64 -pipe -I/usr/include/python2.7
>> -I/usr/include/x86_64-linux-gnu/python2.7 -O2 -Wall -W -D_REENTRANT
>> -DPYTHON2 -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 qrc_pgAdmin4.o qrc_pgAdmin4.cpp
>> In file included from qrc_pgAdmin4.cpp:9:0:
>> qrc_pgAdmin4.cpp:4142:44: warning:
>> ‘qInitResources_pgAdmin4__init_variable__’ defined but not used
>> [-Wunused-variable]
>>  Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_pgAdmin4))
>>                                             ^
>> /usr/include/qt4/QtCore/qglobal.h:941:21: note: in definition of macro
>> ‘Q_CONSTRUCTOR_FUNCTION0’
>>     static const int AFUNC ## __init_variable__ = AFUNC();
>>                      ^
>> qrc_pgAdmin4.cpp:4142:1: note: in expansion of macro
>> ‘Q_CONSTRUCTOR_FUNCTION’
>>  Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_pgAdmin4))
>>  ^
>> qrc_pgAdmin4.cpp:4142:24: note: in expansion of macro
>> ‘QT_MANGLE_NAMESPACE’
>>  Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_pgAdmin4))
>>                         ^
>
>
> for notes (which I don't think are a problem but I could be wrong), I get:
>
>> timc@tim-573P:~/dev/pgadmin4-1.0/runtime$ ./pgAdmin4 &
>> [1] 9195
>> timc@tim-573P:~/dev/pgadmin4-1.0/runtime$ Python path:  "/usr/bin/python"
>> Python Home:  ""
>> Webapp path:  "/home/timc/dev/pgadmin4-1.0/web/pgAdmin4.py"
>> Traceback (most recent call last):
>>   File "/home/timc/dev/pgadmin4-1.0/web/pgAdmin4.py", line 24, in <module>
>>     from pgadmin import create_app
>>   File "/home/timc/dev/pgadmin4-1.0/web/pgadmin/__init__.py", line 17,
>> in <module>
>>     from flask import Flask, abort, request, current_app
>> ImportError: No module named flask
>> "Failed to launch the application server, server thread exiting."
>>
>> [1]+  Exit 1                  ./pgAdmin4
>
>
> when I try to run it despite an attempt to recover by:
>
>> sudo apt-get ^Cstall python-flask

What happens if you move the pgAdmin4 runtime outside the build
environment and run it?

Can you import Flask in a Python interpreter?

Do you have multiple versions of Python and if so are you sure the
apt-get is installing Flask into the same version that pgAdmin4 is using?

>
> Sigh
>


--
Adrian Klaver
adrian.klaver@aklaver.com


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: System crashed: fatal error restarting postgres
Следующее
От: Tom Lane
Дата:
Сообщение: Re: System crashed: fatal error restarting postgres