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
大佬,在运行Data-analysis的时候会报错
Traceback (most recent call last):
File "E:/python/python项目/Spider-master/weibo/data_analysis/Data_analysis.py", line 150, in
main(uid)#指定需要分析的用户的uid(必须先存在conf.yaml里面,并且运行了一次sina_spider程序),默认为conf.yaml中的第一条uid
File "E:/python/python项目/Spider-master/weibo/data_analysis/Data_analysis.py", line 135, in main
plot_create_time(time_lists)
File "E:/python/python项目/Spider-master/weibo/data_analysis/Data_analysis.py", line 128, in plot_create_time
chart = Bar('用户微博动态发布时间')
File "E:\python\lib\site-packages\pyecharts\charts\chart.py", line 163, in init
super().init(init_opts=init_opts)
File "E:\python\lib\site-packages\pyecharts\charts\chart.py", line 14, in init
super().init(init_opts=init_opts)
File "E:\python\lib\site-packages\pyecharts\charts\base.py", line 29, in init
self.width = _opts.get("width", "900px")
AttributeError: 'str' object has no attribute 'get'
在百度上找的原因好像都不对,请问怎么解决啊。
The text was updated successfully, but these errors were encountered:
大佬,在运行Data-analysis的时候会报错
Traceback (most recent call last):
File "E:/python/python项目/Spider-master/weibo/data_analysis/Data_analysis.py", line 150, in
main(uid)#指定需要分析的用户的uid(必须先存在conf.yaml里面,并且运行了一次sina_spider程序),默认为conf.yaml中的第一条uid
File "E:/python/python项目/Spider-master/weibo/data_analysis/Data_analysis.py", line 135, in main
plot_create_time(time_lists)
File "E:/python/python项目/Spider-master/weibo/data_analysis/Data_analysis.py", line 128, in plot_create_time
chart = Bar('用户微博动态发布时间')
File "E:\python\lib\site-packages\pyecharts\charts\chart.py", line 163, in init
super().init(init_opts=init_opts)
File "E:\python\lib\site-packages\pyecharts\charts\chart.py", line 14, in init
super().init(init_opts=init_opts)
File "E:\python\lib\site-packages\pyecharts\charts\base.py", line 29, in init
self.width = _opts.get("width", "900px")
AttributeError: 'str' object has no attribute 'get'
在百度上找的原因好像都不对,请问怎么解决啊。
The text was updated successfully, but these errors were encountered: