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
 
| 【关注微信公众号一起来交流】 | 


















