欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 科技 > 能源 > Odrivegui 、odrivetool运行时的几个问题(windows)

Odrivegui 、odrivetool运行时的几个问题(windows)

2024/10/26 1:29:13 来源:https://blog.csdn.net/sf9090/article/details/139765226  浏览:    关键词:Odrivegui 、odrivetool运行时的几个问题(windows)

ODrivetool 遇到的几个问题

错误信息

Traceback (most recent call last):
File “c:\Users\hpf\Desktop\import matplotlib.py”, line 1, in
import matplotlib.pyplot as plt
File “C:\Users\hpf\AppData\Local\Programs\Python\Python39\lib\site-packages\matplotlib_init_.py”, line 291, in
check_versions()
File "C:\Users\hpf\AppData\Local\Programs\Python\Python39\lib\site-packages\matplotlib_init
.py", line 285, in check_versions
module = importlib.import_module(modname)
File "C:\Users\hpf\AppData\Local\Programs\Python\Python39\lib\importlib_init
.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\hpf\AppData\Local\Programs\Python\Python39\lib\site-packages\kiwisolver_init
.py", line 8, in
from ._cext import (
ImportError: DLL load failed while importing _cext: 找不到指定的模块。

重新安装matplotlib也没什么用,缺少DLL,下载VC_redist.x64

点击下载VC_redist.x64

错误信息
RuntimeError: The Werkzeug web server is not designed to run in production. Pass allow_unsafe_werkze

解决
打开文件C:\Users\xxx\AppData\Local\Temp\1m2eIZGTRxmt3FzYSWZkn2xgNP8\resources\server
找到文件:odrive_server.py
搜索:socketio.run(app, host=‘0.0.0.0’, port=5000)
改成:socketio.run(app, host=‘0.0.0.0’, port=5000,allow_unsafe_werkzeug=True)
端口号可能不一样:建议搜索:socketio.run
运行,即可
在这里插入图片描述

参考文献

1.调用matplotlib报错:缺DLL

2.RuntimeError: The Werkzeug web server is not designed to run in production. Pass allow_unsafe_werkze

【关注微信公众号一起来交流】

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com