Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'str' object has no attribute 'get' #8

Open
Ginocheng opened this issue Apr 7, 2021 · 0 comments
Open

AttributeError: 'str' object has no attribute 'get' #8

Ginocheng opened this issue Apr 7, 2021 · 0 comments

Comments

@Ginocheng
Copy link

大佬,在运行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'
在百度上找的原因好像都不对,请问怎么解决啊。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant