You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AttributeError in deprecated_renderers_settings fonction #1175
During the initialization of the flask API, an error is raised in deprecated_renderers_settings() function.
The error is the following:
File "/run.py", line 2, in <module>
app = Eve()
File "/usr/lib/python2.7/site-packages/eve/flaskapp.py", line 141, in __init__self.load_config()
File "/usr/lib/python2.7/site-packages/eve/flaskapp.py", line 266, in load_configself.check_deprecated_features()
File "/usr/lib/python2.7/site-packages/eve/flaskapp.py", line 292, in check_deprecated_features
deprecated_renderers_settings()
File "/usr/lib/python2.7/site-packages/eve/flaskapp.py", line 280, in deprecated_renderers_settingsself.config['RENDERERS'] = default_settings.RENDERERS.copy()
AttributeError: 'list' object has no attribute 'copy'
This is probably du to the copy() function that was introduced in python 3.3.
Solution would be to replace default_settings.RENDERERS.copy() by list(default_settings.RENDERERS) or default_settings.RENDERERS[:]
Activity
Merge branch 'AttributeError_in_deprecated_renderers_function_#1177'