Page 1 of 1
TuyaOS-3.12.16编译失败,AI了好久,没有解决
Posted: 2025年 Sep 17日 01:05
by 13926564242
====== build app(tuyaos_demo_ai_toy) begin =======
开始编译app
apps/tuyaos_demo_ai_toy
APP_BIN_NAME=tuyaos_demo_ai_toy
APP_VERSION=1.0.0
TARGET_PLATFORM=bk7258
APP_PATH=../../../apps/tuyaos_demo_ai_toy
USER_CMD=
/home/bobi/Documents/tuya/Projects/T5_TuyaOS-3.12.16/software/TuyaOS
not is ci build
------ enable uac ------
CHECK COMPONENTS
APP_DIR:apps
check bootloader.bin
bootloader check ok
SCRIPT_DIR /home/bobi/Documents/tuya/Projects/T5_TuyaOS-3.12.16/software/TuyaOS/vendor/T5/t5_os/projects/tuya_app/tuya_build_env
Virtual environment already exists.
Activate script not found.
/usr/bin/python3
make: *** [/home/bobi/Documents/tuya/Projects/T5_TuyaOS-3.12.16/software/TuyaOS/scripts/mk/app.mk:195: app_by_name] Error 1
Re: TuyaOS-3.12.16编译失败,AI了好久,没有解决
Posted: 2025年 Sep 17日 09:17
by 一个网友
您好,python虚拟环境异常了,可以把 /home/bobi/Documents/tuya/Projects/T5_TuyaOS-3.12.16/software/TuyaOS/vendor/T5/t5_os/projects/tuya_app/tuya_build_env 这个目录删除,重新编译试试
Re: TuyaOS-3.12.16编译失败,AI了好久,没有解决
Posted: 2025年 Sep 17日 11:44
by 13926564242
还是编译不过:
Building wheel for cffi (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cffi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [58 lines of output]
/tmp/pip-build-env-9qf70qwc/overlay/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
Code: Select all
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/verifier.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/vengine_gen.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/vengine_cpy.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/setuptools_ext.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/recompiler.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/pkgconfig.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/model.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/lock.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/ffiplatform.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/error.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/cparser.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/commontypes.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/cffi_opcode.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/backend_ctypes.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/api.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/_shimmed_dist_utils.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/_imp_emulation.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/__init__.py -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/_cffi_include.h -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/parse_c_type.h -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/_embedding.h -> build/lib.linux-x86_64-cpython-313/cffi
copying src/cffi/_cffi_errors.h -> build/lib.linux-x86_64-cpython-313/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-x86_64-cpython-313/src/c
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/home/bobi/Documents/tuya/Projects/T5_TuyaOS-3.12.16/software/TuyaOS/vendor/T5/t5_os/projects/tuya_app/tuya_build_env/include -I/usr/include/python3.13 -c src/c/_cffi_backend.c -o build/temp.linux-x86_64-cpython-313/src/c/_cffi_backend.o
src/c/_cffi_backend.c: In function ‘b_do_dlopen’:
src/c/_cffi_backend.c:4532:22: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
4532 | Py_FileSystemDefaultEncoding, &filename_or_null, &flags))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:99,
from src/c/_cffi_backend.c:2:
/usr/include/python3.13/fileobject.h:22:46: note: declared here
22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/c/_cffi_backend.c: In function ‘_my_PyErr_WriteUnraisable’:
src/c/_cffi_backend.c:6121:9: error: implicit declaration of function ‘_PyErr_WriteUnraisableMsg’; did you mean ‘PyErr_WriteUnraisable’? [-Wimplicit-function-declaration]
6121 | _PyErr_WriteUnraisableMsg(PyText_AS_UTF8(s), NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| PyErr_WriteUnraisable
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
Failed to build cffi
ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi)
Failed to install required Python packages.
make: *** [/home/bobi/Documents/tuya/Projects/T5_TuyaOS-3.12.16/software/TuyaOS/scripts/mk/app.mk:195: app_by_name] Error 1
Re: TuyaOS-3.12.16编译失败,AI了好久,没有解决
Posted: 2025年 Sep 17日 11:47
by 愚者千虑必有一得
Re: TuyaOS-3.12.16编译失败,AI了好久,没有解决
Posted: 2025年 Sep 17日 11:48
by chenyisong
是不是ubuntu系统版本的缘故,要求使用 ubuntu20.04 或以上版本的
Re: TuyaOS-3.12.16编译失败,AI了好久,没有解决
Posted: 2025年 Sep 17日 12:35
by 13926564242
Re: TuyaOS-3.12.16编译失败,AI了好久,没有解决
Posted: 2025年 Sep 17日 13:42
by 一个网友
您好,python版本是否可以修改为3.12,我的版本是3.12.3,Python3.13版本,_PyErr_WriteUnraisableMsg已经被移除了