tuya 3.9.0 编译不了

Tuya Wind IDE、串口调试助手、烧写工具等
Post Reply
s748592567
Posts: 7

PS H:\涂鸦os ZT3L的压缩包\software\TuyaOS> .\build_app.bat .\apps\lxclty01\ lxclty01 1.0.0 build
APP_PATH=.\apps\lxclty01\
APP_NAME=lxclty01
APP_VERSION=1.0.0
BUILD_COMMAND=build
APP_BUILD_PATH=.\apps\lxclty01\\_build
SCRIPT_PATH=.\tools\scripts
Python 3.8.10
Python 3.8.10
local_path=H:\涂鸦os ZT3L的压缩包\software\TuyaOS\
系统找不到指定的路径。
G:\python38\python: can't open file 'app_prepare.py': [Errno 2] No such file or directory
Traceback (most recent call last):
File "build.py", line 30, in <module>
if sys.argv[5] == 'clean':
IndexError: list index out of range

huanghuan
Posts: 243

Re: tuya 3.9.0 编译不了

1.你好,编译路径中请不要包含中文和空格

s748592567
Posts: 7

Re: tuya 3.9.0 编译不了

huanghuan 2024年 Oct 30日 10:14

1.你好,编译路径中请不要包含中文和空格

改了路径也不行。。。
我看它要求的路径下就没有这个文件

PS H:\tuyaOs ZT3L\software\TuyaOS> .\build_app.bat .\apps\lxclty01\ lxclty01 1.0.0 build
APP_PATH=.\apps\lxclty01\
APP_NAME=lxclty01
APP_VERSION=1.0.0
BUILD_COMMAND=build
APP_BUILD_PATH=.\apps\lxclty01\\_build
SCRIPT_PATH=.\tools\scripts
Python 3.8.10
Python 3.8.10
local_path=H:\tuyaOs ZT3L\software\TuyaOS\
系统找不到指定的路径。
G:\python38\python: can't open file 'app_prepare.py': [Errno 2] No such file or directory
Traceback (most recent call last):
File "build.py", line 30, in <module>
if sys.argv[5] == 'clean':
IndexError: list index out of range
PS H:\tuyaOs ZT3L\software\TuyaOS>

huanghuan
Posts: 243

Re: tuya 3.9.0 编译不了

路径中 tuyaOs ZT3L文件夹改为 tuyaOsZT3L,不要有空格

s748592567
Posts: 7

Re: tuya 3.9.0 编译不了

huanghuan 2024年 Oct 30日 10:57

路径中 tuyaOs ZT3L文件夹改为 tuyaOsZT3L,不要有空格

一样的
PS H:\tuyaOsZT3L\software\TuyaOS> .\build_app.bat .\apps\lxclty01\ lxclty01 1.0.0 build
APP_PATH=.\apps\lxclty01\
APP_NAME=lxclty01
APP_VERSION=1.0.0
BUILD_COMMAND=build
APP_BUILD_PATH=.\apps\lxclty01\\_build
SCRIPT_PATH=.\tools\scripts
Python 3.8.10
Python 3.8.10
local_path=H:\tuyaOsZT3L\software\TuyaOS\
系统找不到指定的路径。
G:\python38\python: can't open file 'app_prepare.py': [Errno 2] No such file or directory
Traceback (most recent call last):
File "build.py", line 30, in <module>
if sys.argv[5] == 'clean':
IndexError: list index out of range
PS H:\tuyaOsZT3L\software\TuyaOS>

huanghuan
Posts: 243

Re: tuya 3.9.0 编译不了

1.你好,tuyaos开放框架的build方式是右键点击app路径下的文件,后在跳出来的界面中点击build project进行编译
2.正常的输出应该是:

Code: Select all

PS D:\workspace\Zigbee\TuyaOS\telink\TLSR8258_TuyaOS-3.9.0\software\TuyaOS> & C:\Users\ThinkPad\.tuya\venv\Scripts\python.exe .\build_app.py apps\tuyaos_demo_zg_pir_tl tuyaos_demo_zg_pir_tl 1.0.0
**************** end of post build ******************
open appconfig.json end!!!
firmware information parse start...
Device_role: sleep_end_dev
firmware information parse success      
sleep_end_dev firmware information parse start...
--- Descriptions: this is a demo project --- Device_role: sleep_end_dev --- Image_type: 0xd3a3 --- Manufacture id: 0x1141 --- Model id: TS0225 --- Manufacture name: _TZ3210_revfnetb
--- Capacity:_TZ3210_ --- Product type:TS0225 --- Module name:ZT3L --- Chip id:TLSR8258F1KET firmware information parse success
file generate start... legacy app_config.h file exists,delete. ./app_config.h config file write success file generate start...
Attachments
企业微信截图_17302669484271.png
Post Reply