Ouranosinc / PAVICS-DataCatalog

DataCatalog server for the PAVICS project
2 stars 2 forks source link

Package #14

Closed huard closed 7 years ago

huard commented 7 years ago

Create a python package.

bstdenis commented 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 [Thu Jun 29 17:41:39.003079 2017] [wsgi:error] [pid 29:tid 140471781508864] [remote 172.17.0.1:8994] from pavics_datacatalog import processes [Thu Jun 29 17:41:39.003106 2017] [wsgi:error] [pid 29:tid 140471781508864] [remote 172.17.0.1:8994] ImportError: No module named pavics_datacatalog

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

dbyrns commented 7 years ago

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

huard commented 7 years ago

Got it. I've made the changes. I'm testing now.

huard commented 7 years ago

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
huard commented 7 years ago

@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 ?

bstdenis commented 7 years ago

@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.

bstdenis commented 7 years ago

That should do it, I will retest everything next week and then merge.

bstdenis commented 7 years ago

Pretty sure all the processes are used, but some are not catalog related, moving them can be considered later... merging.