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
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[:]
Environment
Python version: 2.7.15
Eve version: 0.8
The text was updated successfully, but these errors were encountered:
Actual Behavior
During the initialization of the flask API, an error is raised in deprecated_renderers_settings() function.
The error is the following:
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[:]
Environment
The text was updated successfully, but these errors were encountered: