Closed huard closed 7 years ago
[Thu Jun 29 17:41:39.002888 2017] [wsgi:error] [pid 29:tid 140471781508864] [remote 172.17.0.1:8994] mod_wsgi (pid=29): Target WSGI script '/var/www/html/wps/pywps.wsgi' cannot be loaded as Python module.
[Thu Jun 29 17:41:39.002933 2017] [wsgi:error] [pid 29:tid 140471781508864] [remote 172.17.0.1:8994] mod_wsgi (pid=29): Exception occurred processing WSGI script '/var/www/html/wps/pywps.wsgi'.
[Thu Jun 29 17:41:39.002963 2017] [wsgi:error] [pid 29:tid 140471781508864] [remote 172.17.0.1:8994] Traceback (most recent call last):
[Thu Jun 29 17:41:39.002989 2017] [wsgi:error] [pid 29:tid 140471781508864] [remote 172.17.0.1:8994] File "/var/www/html/wps/pywps.wsgi", line 4, in
I think there are two options, either we clone the PAVICS-DataCatalog and install the package as an additional step in the Dockerfile, or we undo the modifications in pywps.wsgi
Look at my comments in the code, I thing that it could solve the problem without having to clone the repo or revert the changes made by David
Got it. I've made the changes. I'm testing now.
Seems to install. Server crashes with
[Thu Jun 29 18:43:21.488942 2017] [wsgi:error] [pid 29:tid 140591639033600] [remote 172.17.0.1:59920] from .wps_getpoint import GetPoint
[Thu Jun 29 18:43:21.488973 2017] [wsgi:error] [pid 29:tid 140591639033600] [remote 172.17.0.1:59920] File "/usr/local/lib/python2.7/dist-packages/pavics_datacatalog/wps_processes/wps_getpoint.py", line 8, in <module>
[Thu Jun 29 18:43:21.489162 2017] [wsgi:error] [pid 29:tid 140591639033600] [remote 172.17.0.1:59920] from pavics import nccombo
[Thu Jun 29 18:43:21.489196 2017] [wsgi:error] [pid 29:tid 140591639033600] [remote 172.17.0.1:59920] File "/usr/local/lib/python2.7/dist-packages/pavics/nccombo.py", line 2, in <module>
[Thu Jun 29 18:43:21.489394 2017] [wsgi:error] [pid 29:tid 140591639033600] [remote 172.17.0.1:59920] from past.builtins import basestring
[Thu Jun 29 18:43:21.489448 2017] [wsgi:error] [pid 29:tid 140591639033600] [remote 172.17.0.1:59920] ImportError: No module named past.builtins
@bstdenis Do you think you can do a PR for your fix_async branch and get it into pywps ? Or at least into Ouranosinc/pywps ?
@huard I was hoping it would just be a temporary hack since I reported the issue to pywps. Haven't verified in a while if they fixed it. I removed stuff and I have no idea if there are side effects with other features.
That should do it, I will retest everything next week and then merge.
Pretty sure all the processes are used, but some are not catalog related, moving them can be considered later... merging.
Create a python package.