如何修复 tuya-convert ModuleNotFoundError: No module named 'Cryptodome'
问题:
尝试使用 tuya-convert 刷设备时,你看到类似这样的错误消息
example-2.txt
Starting smart config pairing procedure
Waiting for the device to install the intermediate firmware
Traceback (most recent call last):
File "/home/pi/tuya-convert/scripts/./smartconfig/main.py", line 15, in <module>
from smartconfig import smartconfig
File "/home/pi/tuya-convert/scripts/smartconfig/smartconfig.py", line 43, in <module>
from multicast import multicast_head, encode_multicast_body
File "/home/pi/tuya-convert/scripts/smartconfig/multicast.py", line 12, in <module>
from Cryptodome.Cipher import AES
ModuleNotFoundError: No module named 'Cryptodome'
.........................................刷写过程失败。
解决方案
当前版本的 ./install_reqs.sh 没有安装 pycryptodome 模块。使用以下命令手动安装
example-1.sh
Check out similar posts by category:
Electronics, Embedded
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow