ckan / ckan-service-provider

A library for making web services that make functions available as synchronous or asynchronous jobs
http://ckan-service-provider.readthedocs.org
GNU Affero General Public License v3.0
21 stars 23 forks source link

Update ProxyFix import to work with current Flask (werkzeug) version #49

Closed trendspotter closed 4 years ago

trendspotter commented 4 years ago

Currently, even with the pinned version of Flask, werkzeug==1.0.0 is installed as dependency. This causes new installations to fail with

Traceback (most recent call last):
  File "/etc/ckan-datapusher/datapusher.wsgi", line 4, in <module>
    import ckanserviceprovider.web as web
  File "/usr/lib/python2.7/site-packages/ckanserviceprovider/web.py", line 21, in <module>
    from werkzeug.contrib.fixers import ProxyFix
ImportError: No module named contrib.fixers

as the ProxyFix class has been moved in 0.15.0 (see https://werkzeug.palletsprojects.com/en/0.15.x/contrib/fixers/)

This PR updates the ProxyFix import so it works correctly again.

trendspotter commented 4 years ago

Closing, as this has been fixed via 03adfd1cde8856751b9dec9dab0c259e69e58b9f