Opened 8 weeks ago

Closed 7 weeks ago

Last modified 7 weeks ago

#2370 closed defect (fixed)

pycsw GetCapabilities causes shapely bug with numpy

Reported by: kalxas Owned by: osgeolive@…
Priority: critical Milestone:
Component: OSGeoLive Keywords:
Cc: osgeolive@…

Description

user@osgeolive:/var/log/apache2$ tail -f error.log 
[Tue Jun 21 13:35:17.522655 2022] [mpm_prefork:notice] [pid 1074] AH00163: Apache/2.4.52 (Ubuntu) mod_fcgid/2.3.9 mod-mapcache/1.12.0 mod_wsgi/4.9.0 Python/3.10 configured -- resuming normal operations
[Tue Jun 21 13:35:17.522692 2022] [core:notice] [pid 1074] AH00094: Command line: '/usr/sbin/apache2'
[Tue Jun 21 13:40:37.628493 2022] [wsgi:error] [pid 1095] /usr/lib/python3/dist-packages/shapely/geometry/base.py:30: UserWarning: NumPy was imported from a Python sub-interpreter but NumPy does not properly support sub-interpreters. This will likely work for most users but might cause hard to track down issues or subtle bugs. A common user of the rare sub-interpreter feature is wsgi which also allows single-interpreter mode.
[Tue Jun 21 13:40:37.628513 2022] [wsgi:error] [pid 1095] Improvements in the case of bugs are welcome, but is not on the NumPy roadmap, and full support may require significant effort to achieve.
[Tue Jun 21 13:40:37.628516 2022] [wsgi:error] [pid 1095]   import numpy as np
[Tue Jun 21 13:40:37.643970 2022] [wsgi:error] [pid 1095] [client 127.0.0.1:52104] /csw.py, referer: http://localhost/pycsw/tests/index.html

Change history (5)

comment:2 by kalxas, 8 weeks ago

Confirmed that the above solution fixes the issue.

Debian package update pending

comment:4 by kalxas, 7 weeks ago

Resolution: fixed
Status: newclosed

Confirmed fixed in build94

comment:5 by darkblueb, 7 weeks ago

build94 response in /var/log/apache2/error.log

[Thu Jun 23 21:37:51.370218 2022] [mpm_prefork:notice] [pid 1737] AH00163: Apache/2.4.52 (Ubuntu) mod_fcgid/2.3.9 mod-mapcache/1.12.0 mod_wsgi/4.9.0 Python/3.10 configured -- resuming normal operations
[Thu Jun 23 21:37:51.370265 2022] [core:notice] [pid 1737] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jun 23 21:42:40.860670 2022] [wsgi:error] [pid 1747] [client 127.0.0.1:53566] /csw.py, referer: http://localhost/pycsw/tests/
[Thu Jun 23 21:42:41.206171 2022] [wsgi:error] [pid 1747] [client 127.0.0.1:53566] The client requested a gzip compressed response. However, the server does not specify the 'gzip_compresslevel' option. Returning an uncompressed response..., referer: http://localhost/pycsw/tests/

Note: See TracTickets for help on using tickets.