Hi
I'm using QGIS Server version 2.18.17 and it works well on Mac OS X.I initially
tested the official version of QGIS for Mac OS X from the qgis website but the
server application immediately failed while the desktop part is working well.
So I tried to install QGIS 3.6.0 from MacPorts.org and the desktop part also
works well here. The server option was included in the software, a first
attempt to build the QGIS Server application. The binary was built but
unfortunately there are some errors difficult to understand.I have made some
comparisons with the Ubuntu version and I would like to understand from you
where the problems of compilation are assuming that the desktop version works
well and all software dependencies are compiled.
The binary of QGIS Server 3.6.x is built within the application and if I start
it from the terminal I have this information:
airml $
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/qgis_mapserv.fcgi
Initializing server modules from
"/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server"
"Checking
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server for
native services modules""Loading native module
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libdummy.so""Loading
native module
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwcs.so""Loading
native module
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwfs.so""Loading
native module
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwms.so""Loading
native module
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwmts.so""<font
color=\"red\">Couldn't load SIP module.<br>Python support will be
disabled.</font><br><pre><br>Traceback (most recent call last):<br> File
\"<string>\", line 1, in <module><br>ModuleNotFoundError: No module named
'qgis'<br><br></pre>Python version:<br>3.6.8 (default, Dec 30 2018, 13:01:27)
<br>[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]<br><br>QGIS
version:<br>3.6.0-Noosa 'Noosa', exported<br><br>Python
path:<br>['/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/../Resources/python',
'/Users/airml/Library/Application Support/QGIS/QGIS3/profiles/default/python',
'/Users/airml/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins',
'/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/../Resources/python/plugins',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages']""<font
color=\"red\">An error occurred during execution of following
code:<br><tt>qgis.utils.uninstallErrorHook()</tt></font><br><pre><br>Traceback
(most recent call last):<br> File \"<string>\", line 1, in
<module><br>NameError: name 'qgis' is not defined<br><br></pre>Python
version:<br>3.6.8 (default, Dec 30 2018, 13:01:27) <br>[GCC 4.2.1 Compatible
Apple LLVM 10.0.0 (clang-1000.11.45.5)]<br><br>QGIS version:<br>3.6.0-Noosa
'Noosa', exported<br><br>Python
path:<br>['/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/../Resources/python',
'/Users/airml/Library/Application Support/QGIS/QGIS3/profiles/default/python',
'/Users/airml/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins',
'/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/../Resources/python/plugins',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages']"QFSFileEngine::open:
No file name specifiedContent-Length: 54Content-Type: text/xml;
charset=utf-8Server: Qgis FCGI server - QGis version 3.6.0-NoosaStatus: 500
<ServerException>Project file error</ServerException>airml $airml $
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/qgis_mapserv.fcgiInitializing
server modules from
"/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server"
"Checking
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server for
native services modules""Loading native module
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libdummy.so""Loading
native module
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwcs.so""Loading
native module
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwfs.so""Loading
native module
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwms.so""Loading
native module
/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwmts.so""<font
color=\"red\">Couldn't load SIP module.<br>Python support will be
disabled.</font><br><pre><br>Traceback (most recent call last):<br> File
\"<string>\", line 1, in <module><br>ModuleNotFoundError: No module named
'qgis'<br><br></pre>Python version:<br>3.6.8 (default, Dec 30 2018, 13:01:27)
<br>[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]<br><br>QGIS
version:<br>3.6.0-Noosa 'Noosa', exported<br><br>Python
path:<br>['/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/../Resources/python',
'/Users/ben/Library/Application Support/QGIS/QGIS3/profiles/default/python',
'/Users/ben/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins',
'/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/../Resources/python/plugins',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages']""<font
color=\"red\">An error occurred during execution of following
code:<br><tt>qgis.utils.uninstallErrorHook()</tt></font><br><pre><br>Traceback
(most recent call last):<br> File \"<string>\", line 1, in
<module><br>NameError: name 'qgis' is not defined<br><br></pre>Python
version:<br>3.6.8 (default, Dec 30 2018, 13:01:27) <br>[GCC 4.2.1 Compatible
Apple LLVM 10.0.0 (clang-1000.11.45.5)]<br><br>QGIS version:<br>3.6.0-Noosa
'Noosa', exported<br><br>Python
path:<br>['/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/../Resources/python',
'/Users/ben/Library/Application Support/QGIS/QGIS3/profiles/default/python',
'/Users/ben/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins',
'/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/../Resources/python/plugins',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages']"QFSFileEngine::open:
No file name specifiedContent-Length: 54Content-Type: text/xml;
charset=utf-8Server: Qgis FCGI server - QGis version 3.6.0-NoosaStatus: 500
<ServerException>Project file error</ServerException>airml $
As you can see in the first part are loaded modules, such as the Ubuntu
version, but then come the errors and these are complex. Example: no SIP module
but the module is installed.The end result is that QGIS Server 3.6.x does not
work.
Can you help me understand how to intervene and how to compile the server
version at best?
Thank you in advanceLorenzo
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer