【发布时间】:2019-01-29 02:30:01
【问题描述】:
我最近使用 gunicorn 将烧瓶环境中的绘图图表移至生产环境。
由于某种原因,我收到以下错误:
return _bootstrap._gcd_import(name[level:], package, level)
File "/var/www/html/dir/flask-gentelella/app/home/routes.py", line 27, i
n <module>
plotly.tools.set_credentials_file(username='users', api_key='abc4')
File "/home/ec2-user/anaconda3/lib/python3.7/site-packages/plotly/tools.py", l
ine 130, in set_credentials_file
raise exceptions.PlotlyError("You don't have proper file permissions "
plotly.exceptions.PlotlyError: You don't have proper file permissions to run this function.
我无法纠正它,因为这在虚拟环境中不会发生
请指导
【问题讨论】:
标签: python flask plotly gunicorn plotly-dash