Re: PHY6222_TuyaOS-3.9.0 编译不了
多谢提醒,目前已经更新。
请删除 .\software\TuyaOS\.ide_tool 文件夹,然后使用vscode重新编译工程即可获取到最新的脚本。
多谢提醒,目前已经更新。
请删除 .\software\TuyaOS\.ide_tool 文件夹,然后使用vscode重新编译工程即可获取到最新的脚本。
TLSR825X_TuyaOS-3.8.0也遇到同样的问题,请问如何解决:
PS C:\Users\River\Documents\tuya\Projects\TLSR825X_TuyaOS-3.8.0\software\TuyaOS> cd c:\Users\River\Documents\tuya\Projects\TLSR825X_TuyaOS-3.8.0\software\TuyaOS\
PS C:\Users\River\Documents\tuya\Projects\TLSR825X_TuyaOS-3.8.0\software\TuyaOS> & C:\Users\River\.tuya\venv\Scripts\python.exe .\build_app.py apps\tuyaos_demo_mesh_node tuyaos_demo_mesh_node 1.0.0
4
DEMO_PATH: apps/tuyaos_demo_mesh_node
DEMO_NAME: tuyaos_demo_mesh_node
DEMO_FIRMWARE_VERSION: 1.0.0
BOARD_NAME: tlsr825x_smesh
BUILD_COMMAND: build
build-pre...
install GitPython
Traceback (most recent call last):
File "./vendor/tlsr825x_smesh/prepare.py", line 15, in <module>
from git import Repo
ModuleNotFoundError: No module named 'git'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./vendor/tlsr825x_smesh/prepare.py", line 17, in <module>
check_and_install('git','GitPython')
File "./vendor/tlsr825x_smesh/prepare.py", line 13, in check_and_install
pip.main(['install', MODULE])
AttributeError: module 'pip' has no attribute 'main'
execution failed !!!
PS C:\Users\River\Documents\tuya\Projects\TLSR825X_TuyaOS-3.8.0\software\TuyaOS> python -V
Python 3.8.10
PS C:\Users\River\Documents\tuya\Projects\TLSR825X_TuyaOS-3.8.0\software\TuyaOS> git -v
git version 2.43.0.windows.1
PS C:\Users\River\Documents\tuya\Projects\TLSR825X_TuyaOS-3.8.0\software\TuyaOS> pip -V
pip 23.3.2 from C:\Users\River\AppData\Local\Programs\Python\Python38\lib\site-packages\pip (python 3.8)
PS C:\Users\River\Documents\tuya\Projects\TLSR825X_TuyaOS-3.8.0\software\TuyaOS>
运行下:
C:\Users\River\.tuya\venv\Scripts\python.exe -m ensurepip --upgrade