openplans / shareabouts

Shareabouts is a mapping application for crowdsourced info gathering.
GNU General Public License v3.0
276 stars 150 forks source link

Pin PyYAML<6.0. #205

Closed BenSturmfels closed 1 year ago

BenSturmfels commented 2 years ago

Shareabouts fails with the below traceback when run with the recently released PyYAML 6.0. This change pins PyYAML to a compatible version.

Traceback (most recent call last):
  File "[...]/env/lib/python3.6/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "[...]/env/lib/python3.6/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "[...]/code/src/sa_web/views.py", line 98, in index
    config.update(settings.SHAREABOUTS.get('CONTEXT', {}))
  File "[...]/code/src/sa_web/config.py", line 75, in update
    self.data.update(other)
  File "[...]/code/src/sa_web/config.py", line 59, in data
    self._yml = yaml.load(config_yml)
TypeError: load() missing 1 required positional argument: 'Loader'
BenSturmfels commented 1 year ago

Closing - this is no longer required with upstream changes to sa_web/config.py. I'm using latest pyyaml 6.0 with no issues.