dativebase / old-pyramid

Online Linguistic Database (OLD)
http://www.onlinelinguisticdatabase.org/
8 stars 2 forks source link

Problem: parser component compilation fails #22

Closed jrwdunham closed 4 years ago

jrwdunham commented 5 years ago

When attempting to compile FST-based resources, we see KeyError on attempted settings['__file__'] access. I think these can just be removed. It does not look like the config path is being used anywhere. Verify that first before removal:

old_1     |   File "/usr/src/old/old/views/morphemelanguagemodels.py", line 51, in generate
old_1     |     'config_path': self.request.registry.settings['__file__'],
old_1     | KeyError: '__file__'

Relevant to DAILP because it breaks parsers.

jrwdunham commented 4 years ago

Resolved by https://github.com/dativebase/old-pyramid/pull/31