Deleting a branch is permanent. It CANNOT be undone. Continue?
No due date set.
This issue currently doesn't have any dependencies.
Deleting a branch is permanent. It CANNOT be undone. Continue?
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》
新建MLU调试任务,进入容器执行c2net库的prepare()方法会报错:
TypeError: init() got an unexpected keyword argument 'capture_output'
经 @liuzx 定位,MLU调试环境的python版本3.6.12过低,需要升级到python3.7以上。
在python3.6中,获取时区报错了,这个capture_output参数必须是3.7才可以,用以下方式获取可以规避:
def get_current_time():
current_time = datetime.datetime.now()
result = subprocess.run(['date', '+%Z'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
timezone = result.stdout.strip()
current_time_str = current_time.strftime("%Y-%m-%d %H:%M:%S") + f" {timezone}"
return current_time_str
最新效果:MLU调试环境内python版本3.6.12,执行c2net库的prepare()方法不再报错了,会准备好数据。