mcc118运行web_server.py报错

shuaiweili 2021-04-28626 次点击
pi@raspberrypi:~/daqhats/examples/python/mcc118/web_server$ ./web_server.py Traceback (most recent call last):
File "./web_server.py", line 145, in <module>
value=[0]
File "/home/pi/.local/lib/python2.7/site-packages/dash/development/base_compon ent.py", line 88, in wrapper
return func(*args, **kwargs)
File "/home/pi/.local/lib/python2.7/site-packages/dash_core_components/Checkli st.py", line 46, in __init__
super(Checklist, self).__init__(**args)
File "/home/pi/.local/lib/python2.7/site-packages/dash/development/base_compon ent.py", line 133, in __init__
', '.join(sorted(self._prop_names))
TypeError: Unexpected keyword argument `value`
Allowed arguments: className, id, inputClassName, inputStyle, labelClassName, la belStyle, options, style, values
收藏 ♥ 感谢
Spoony 小组长 2021-04-29 
这个需要用 python3 来运行。你用的是 python 2.7 的运行环境。
塞门 2021-05-07 
我用python3 一样不行啊,具体要怎么处理?

pi@raspberrypi:~/daqhats/examples/python/mcc118/web_server $ python3 ./web_server.py
Traceback (most recent call last):
File "./web_server.py", line 145, in <module>
value=[0]
File "/home/pi/.local/lib/python3.7/site-packages/dash/development/base_component.py", line 88, in wrapper
return func(*args, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/dash_core_components/Checklist.py", line 46, in __init__
super(Checklist, self).__init__(**args)
File "/home/pi/.local/lib/python3.7/site-packages/dash/development/base_component.py", line 133, in __init__
', '.join(sorted(self._prop_names))
TypeError: Unexpected keyword argument `value`
Allowed arguments: className, id, inputClassName, inputStyle, labelClassName, labelStyle, options, style, values

登录注册 后可回复。

这里由以下店铺的技术人员在此免费提供能力范围内的技术支持。

NXEZ 创客商店(淘宝)

排障问题发帖注意事项:
1、请尽可能将故障说明清晰,列明例如使用环境和做了哪些操作和配置等。
2、排障中已经做了哪些尝试,如果能在问题中进行描述将极大提高解决问题的效率。
3、对于需要自身完成知识积累才能解决的问题,请自行通过搜索引擎寻找资料学习。