[Lizmap] Lizmap Qgis Server > Plugins wfsOutputExtension & atlasprint

Immo Blecher immo at blecher.co.za
Fri Mar 19 02:14:24 PDT 2021


Hi Catherine,

Did you have a look at Tim's Youtube https://youtu.be/I8z06SO7ePk? I 
think it has some details about the environment variable and the 
AtlasPrint. Maybe that helps.

Regards

Immo

On 2021/03/19 10:46, Courcelle, Catherine wrote:
>
> Hi,
>
> I am currently working on Windows server but if it works, I may have a 
> time budget to redo tests with Debian for example.
>
> I installed Apache, PostgreSQL, Lizmap, QgisServer by following the 
> tutorials online.
>
> The part that blocks me is the printing of popups in the Lizmap 
> interface. I obviously *cannot use the Qgis server plugins*.
>
> 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.
>
> It seems to me that the python extensions for Qgis server are not 
> read, whether it is wfsOutputExtension or atlasprint.
>
> 2 errors are highlighted in the qgis server log:
>
>
> * USERPROFILE environment variable is missing
> * Python bindings for Qt and QGIS server are not found
>
> Can someone help me to find a solution?
>
> 13:37:02 INFO Server[8800]: Qgis Server Settings:
>
> 13:37:02 INFO Server[8800]:   - QGIS_OPTIONS_PATH / '' (Override the 
> default path for user configuration): '' (read from DEFAULT_VALUE)
>
> 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)
>
> 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)
>
> 13:37:02 INFO Server[8800]:   - QGIS_SERVER_LOG_LEVEL / '' (Log 
> level): '0' (read from ENVIRONMENT_VARIABLE)
>
> 13:37:02 INFO Server[8800]:   - QGIS_SERVER_LOG_FILE / '' (Log file): 
> 'C:\webserver\Apache24\logs\qgis_server.log' (read from 
> ENVIRONMENT_VARIABLE)
>
> 13:37:02 INFO Server[8800]:   - QGIS_SERVER_LOG_STDERR / '' 
> (Activate/Deactivate logging to stderr): 'false' (read from DEFAULT_VALUE)
>
> 13:37:02 INFO Server[8800]:   - QGIS_PROJECT_FILE / '' (QGIS project 
> file): '' (read from DEFAULT_VALUE)
>
> 13:37:02 INFO Server[8800]:   - MAX_CACHE_LAYERS / '' (Specify the 
> maximum number of cached layers): '100' (read from DEFAULT_VALUE)
>
> 13:37:02 INFO Server[8800]:   - QGIS_SERVER_IGNORE_BAD_LAYERS / '' 
> (Ignore bad layers): 'false' (read from DEFAULT_VALUE)
>
> 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)
>
> 13:37:02 INFO Server[8800]:   - QGIS_SERVER_CACHE_SIZE / '/cache/size' 
> (Specify the cache size): '52428800' (read from DEFAULT_VALUE)
>
> 13:37:02 INFO Server[8800]:   - QGIS_SERVER_SHOW_GROUP_SEPARATOR / 
> '/locale/showGroupSeparator' (Show group (thousands) separator): 
> 'false' (read from DEFAULT_VALUE)
>
> 13:37:02 INFO Server[8800]:   - QGIS_SERVER_OVERRIDE_SYSTEM_LOCALE / 
> '/locale/userLocale' (Override system locale): '' (read from 
> DEFAULT_VALUE)
>
> 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)
>
> 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)
>
> 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)
>
> 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)
>
> 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
>
> 13:37:02 INFO Server[8800]: cacheDirectory: 
> C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3/profiles/default/cache/
>
> 13:37:02 INFO Server[8800]: maximumCacheSize: 52428800
>
> 13:37:02 INFO Server[8800]: Prefix  PATH: C:/OSGeo4W64/apps/qgis-ltr
>
> 13:37:02 INFO Server[8800]: Plugin  PATH: 
> C:/OSGeo4W64/apps/qgis-ltr/plugins
>
> 13:37:02 INFO Server[8800]: PkgData PATH: C:/OSGeo4W64/apps/qgis-ltr/.
>
> 13:37:02 INFO Server[8800]: User DB PATH: 
> C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\profiles\default/qgis.db
>
> 13:37:02 INFO Server[8800]: Auth DB PATH: 
> C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\profiles\default/qgis-auth.db
>
> 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/
>
> 13:37:03 INFO Server[8800]: Adding service SampleService 1.0
>
> 13:37:03 INFO Server[8800]: Adding service WCS 1.0.0
>
> 13:37:03 INFO Server[8800]: Adding service WFS 1.1.0
>
> 13:37:03 WARNING [8800]: Adding API OGC WFS3 (Draft)
>
> 13:37:03 INFO Server[8800]: Adding service WMS 1.3.0
>
> 13:37:03 INFO Server[8800]: Adding service WMTS 1.0.0
>
> 13:37:03 INFO Server[8800]: Server initialized
>
> 13:37:03 INFO ..\..\..\src\server\qgsserverplugins.cpp[8800]: load 
> library qgispython (3.10.10)
>
> 13:37:03 INFO ..\..\..\src\server\qgsserverplugins.cpp[8800]: Python 
> support library loaded successfully.
>
> 13:37:03 WARNING Python error[8800]: An error occurred during 
> execution of following code:
>
> os.environ['HOME']=os.environ['USERPROFILE']
>
> Traceback (most recent call last):
>
>   File "", line 1, in
>
>   File "C:\OSGeo4W64\apps\Python37\lib\os.py", line 681, in __getitem__
>
>     raise KeyError(key) from None
>
> KeyError: 'USERPROFILE'
>
> Python version:
>
> 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit 
> (AMD64)]
>
> QGIS version:
>
> 3.10.10-A Coruña 'A Coruña', 8b051b9a43
>
> Python path:
>
> ['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']
>
> 13:37:03 WARNING Python error[8800]: Couldn't load SIP module.
>
> Python support will be disabled.
>
> Traceback (most recent call last):
>
>   File "", line 1, in
>
> ModuleNotFoundError: No module named 'qgis.PyQt'
>
> Python version:
>
> 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit 
> (AMD64)]
>
> QGIS version:
>
> 3.10.10-A Coruña 'A Coruña', 8b051b9a43
>
> Python path:
>
> ['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']
>
> 13:37:03 INFO Server[8800]: No server python plugins are available
>
> 13:37:03 INFO Server[8800]: ******************** New request 
> ***************
>
> 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
>
> 13:37:03 INFO Server[8800]: Environment:
>
> 13:37:03 INFO Server[8800]: 
> ------------------------------------------------
>
> 13:37:03 INFO Server[8800]: SERVER_NAME: localhost
>
> 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
>
> 13:37:03 INFO Server[8800]: SCRIPT_NAME: /qgis/qgis_mapserv.fcgi.exe
>
> 13:37:03 INFO Server[8800]: REMOTE_ADDR: ::1
>
> 13:37:03 INFO Server[8800]: SERVER_PORT: 80
>
> 13:37:03 INFO Server[8800]: QUERY_STRING: 
> service=LIZMAP&request=GetServerSettings&map=C%3A%5Cwebserver%5Cwebapp%5Cprod%5Cmaprep%5Cdata%5Cafkoppelingen%2Fafkoppelingen%2Eqgs
>
> 13:37:03 INFO Server[8800]: REQUEST_METHOD: GET
>
> 13:37:03 INFO Server[8800]: HTTP_ACCEPT: */*
>
> 13:37:03 INFO Server[8800]: HTTP_USER_AGENT: Lizmap
>
> 13:37:03 INFO Server[8800]: 
> MAP:C:\webserver\webapp\prod\maprep\data\afkoppelingen/afkoppelingen.qgs
>
> 13:37:03 INFO Server[8800]: REQUEST:GetServerSettings
>
> 13:37:03 INFO Server[8800]: SERVICE:LIZMAP
>
> 13:37:04 WARNING PostGIS[8800]: NOTICE: row number 0 is out of range 0..-1
>
> 13:37:04 WARNING [8800]: Service LIZMAP is not registered
>
> 13:37:04 WARNING Server[8800]: <ServiceExceptionReport 
> xmlns="http://www.opengis.net/ogc" version="1.3.0">
>
> <ServiceException code="Service configuration error">Service unknown 
> or unsupported</ServiceException>
>
> </ServiceExceptionReport>
>
>
>
>
> _______________________________________________
> Lizmap mailing list
> Lizmap at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/lizmap
-- 

*Immo F. Blecher**
Street: */50 Lynedoch Eco Village, Lynedoch, Stellenbosch, 7603, South 
Africa
//*Postal:*//PO Box 74, Lynedoch, 7603, South Africa
//*Cell:*///+27 83 272 6791 |*Office:*+27 81 359 3704 |*Fax: *+27 81 359 
3704
*Email:*_immo at blecher.co.za_ <mailto:immo at blecher.co.za> | 
_immob19 at gmail.com_ <mailto:immob19 at gmail.com>
*Internet:*_https://www.blecher.co.za/_ <https://www.blecher.co.za/>

Please consider your environmental responsibility. Before printing this 
e-mail message, ask yourself whether you really need a hard copy.

*IMPORTANT*: The contents of this email and any attachments are 
confidential. They are intended for the named recipient(s) only. If you 
have received this email by mistake, please notify the sender 
immediately and do not disclose the contents to anyone or make copies 
thereof.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20210319/d99ca9bf/attachment-0001.html>


More information about the Lizmap mailing list