<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR-BE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi, <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I am currently working on Windows server but if it works, I may have a time budget to redo tests with Debian for example.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I installed Apache, PostgreSQL, Lizmap, QgisServer by following the tutorials online.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The part that blocks me is the printing of popups in the Lizmap interface. I obviously
<b>cannot use the Qgis server plugins</b>.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">No problem to display popups in Lizmap, I have a nice Qgis drag and drop form. I created a layout with an atlas in Qgis with the fields to be displayed on an A4 page. I looked at the link https://github.com/3liz/qgis
atlasprint.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">It seems to me that the python extensions for Qgis server are not read, whether it is wfsOutputExtension or atlasprint.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2 errors are highlighted in the qgis server log:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><br>
* USERPROFILE environment variable is missing<br>
* Python bindings for Qt and QGIS server are not found<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Can someone help me to find a solution?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: Qgis Server Settings:
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_OPTIONS_PATH / '' (Override the default path for user configuration): '' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_PARALLEL_RENDERING / '/qgis/parallel_rendering' (Activate/Deactivate parallel rendering for WMS getMap request): 'false' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_MAX_THREADS / '/qgis/max_threads' (Number of threads to use when parallel rendering is activated): '-1' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_LOG_LEVEL / '' (Log level): '0' (read from ENVIRONMENT_VARIABLE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_LOG_FILE / '' (Log file): 'C:\webserver\Apache24\logs\qgis_server.log' (read from ENVIRONMENT_VARIABLE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_LOG_STDERR / '' (Activate/Deactivate logging to stderr): 'false' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_PROJECT_FILE / '' (QGIS project file): '' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - MAX_CACHE_LAYERS / '' (Specify the maximum number of cached layers): '100' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_IGNORE_BAD_LAYERS / '' (Ignore bad layers): 'false' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_CACHE_DIRECTORY / '/cache/directory' (Specify the cache directory): 'C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\profiles\default/cache' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_CACHE_SIZE / '/cache/size' (Specify the cache size): '52428800' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_SHOW_GROUP_SEPARATOR / '/locale/showGroupSeparator' (Show group (thousands) separator): 'false' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_OVERRIDE_SYSTEM_LOCALE / '/locale/userLocale' (Override system locale): '' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_WMS_MAX_HEIGHT / '/qgis/max_wms_height' (Maximum height for a WMS request. The lower one of this and the project configuration is used.): '-1' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_WMS_MAX_WIDTH / '/qgis/max_wms_width' (Maximum width for a WMS request. The most conservative between this and the project one is used): '-1' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_API_RESOURCES_DIRECTORY / '/qgis/server_api_resources_directory' (Base directory where HTML templates and static assets (e.g. images, js and css files) are searched for): 'C:/OSGeo4W64/apps/qgis-ltr/resources/server/api'
(read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: - QGIS_SERVER_API_WFS3_MAX_LIMIT / '/qgis/server_api_wfs3_max_limit' (Maximum value for "limit" in a features request, defaults to 10000): '10000' (read from DEFAULT_VALUE)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: Ini file used to initialize settings: C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3/profiles/default/QGIS/QGIS3.ini<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: cacheDirectory: C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3/profiles/default/cache/<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: maximumCacheSize: 52428800<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: Prefix PATH: C:/OSGeo4W64/apps/qgis-ltr<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: Plugin PATH: C:/OSGeo4W64/apps/qgis-ltr/plugins<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: PkgData PATH: C:/OSGeo4W64/apps/qgis-ltr/.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: User DB PATH: C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\profiles\default/qgis.db<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: Auth DB PATH: C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\profiles\default/qgis-auth.db<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:02 INFO Server[8800]: SVG PATHS: C:/OSGeo4W64/apps/qgis-ltr/./svg/;C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\profiles\default/svg/<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: Adding service SampleService 1.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: Adding service WCS 1.0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: Adding service WFS 1.1.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 WARNING [8800]: Adding API OGC WFS3 (Draft)
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: Adding service WMS 1.3.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: Adding service WMTS 1.0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: Server initialized<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO ..\..\..\src\server\qgsserverplugins.cpp[8800]: load library qgispython (3.10.10)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO ..\..\..\src\server\qgsserverplugins.cpp[8800]: Python support library loaded successfully.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 WARNING Python error[8800]: An error occurred during execution of following code:<o:p></o:p></span></p>
<p class="MsoNormal">os.environ['HOME']=os.environ['USERPROFILE']<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> File "", line 1, in <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> File "C:\OSGeo4W64\apps\Python37\lib\os.py", line 681, in __getitem__<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> raise KeyError(key) from None<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">KeyError: 'USERPROFILE'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Python version:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">QGIS version:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3.10.10-A Coruņa 'A Coruņa', 8b051b9a43<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Python path:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">['C:\\OSGeo4W64\\apps\\qgis-ltr\\python', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\python\\plugins', 'C:\\OSGeo4W64\\apps\\Python37\\DLLs', 'C:\\OSGeo4W64\\apps\\Python37\\lib', 'C:\\OSGeo4W64\\bin', 'C:\\OSGeo4W64\\apps\\Python37',
'C:\\OSGeo4W64\\bin\\python37.zip', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\bin', 'C:\\OSGeo4W64\\apps\\Python37\\lib\\site-packages']<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 WARNING Python error[8800]: Couldn't load SIP module.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Python support will be disabled.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> File "", line 1, in <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ModuleNotFoundError: No module named 'qgis.PyQt'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Python version:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">QGIS version:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3.10.10-A Coruņa 'A Coruņa', 8b051b9a43<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Python path:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">['C:/OSGeo4W64/apps/qgis-ltr/./python', 'C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\python\\plugins', 'C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins',
'C:/OSGeo4W64/apps/qgis-ltr/./python/plugins', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\python', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\python\\plugins', 'C:\\OSGeo4W64\\apps\\Python37\\DLLs', 'C:\\OSGeo4W64\\apps\\Python37\\lib', 'C:\\OSGeo4W64\\bin', 'C:\\OSGeo4W64\\apps\\Python37',
'C:\\OSGeo4W64\\bin\\python37.zip', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\bin', 'C:\\OSGeo4W64\\apps\\Python37\\lib\\site-packages']<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: No server python plugins are available<o:p></o:p></span></p>
<p class="MsoNormal">13:37:03 INFO Server[8800]: ******************** New request ***************<o:p></o:p></p>
<p class="MsoNormal">13:37:03 INFO Server[8800]: Request URL: http://localhost/qgis/qgis_mapserv.fcgi.exe?service=LIZMAP&request=GetServerSettings&map=C%3A%5Cwebserver%5Cwebapp%5Cprod%5Cmaprep%5Cdata%5Cafkoppelingen%2Fafkoppelingen.qgs<o:p></o:p></p>
<p class="MsoNormal">13:37:03 INFO Server[8800]: Environment:<o:p></o:p></p>
<p class="MsoNormal">13:37:03 INFO Server[8800]: ------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal">13:37:03 INFO Server[8800]: SERVER_NAME: localhost<o:p></o:p></p>
<p class="MsoNormal">13:37:03 INFO Server[8800]: REQUEST_URI: /qgis/qgis_mapserv.fcgi.exe?service=LIZMAP&request=GetServerSettings&map=C%3A%5Cwebserver%5Cwebapp%5Cprod%5Cmaprep%5Cdata%5Cafkoppelingen%2Fafkoppelingen%2Eqgs<o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: SCRIPT_NAME: /qgis/qgis_mapserv.fcgi.exe<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: REMOTE_ADDR: ::1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: SERVER_PORT: 80<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: QUERY_STRING: service=LIZMAP&request=GetServerSettings&map=C%3A%5Cwebserver%5Cwebapp%5Cprod%5Cmaprep%5Cdata%5Cafkoppelingen%2Fafkoppelingen%2Eqgs<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: REQUEST_METHOD: GET<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: HTTP_ACCEPT: */*<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: HTTP_USER_AGENT: Lizmap<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="NL-BE">13:37:03 INFO Server[8800]: MAP:C:\webserver\webapp\prod\maprep\data\afkoppelingen/afkoppelingen.qgs<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: REQUEST:GetServerSettings<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:03 INFO Server[8800]: SERVICE:LIZMAP<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:04 WARNING PostGIS[8800]: NOTICE: row number 0 is out of range 0..-1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:04 WARNING [8800]: Service LIZMAP is not registered<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">13:37:04 WARNING Server[8800]: <ServiceExceptionReport xmlns="http://www.opengis.net/ogc" version="1.3.0"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"></span><ServiceException code="Service configuration error">Service unknown or unsupported</ServiceException><o:p></o:p></p>
<p class="MsoNormal"></ServiceExceptionReport><o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#4C4C4C;mso-fareast-language:FR-BE"><br>
<br>
</span><o:p></o:p></p>
</div>
</div>
</body>
</html>