【已解决】windIDE 无法编译

蓝牙 BLE设备、蓝牙 MESH设备、蓝牙 Beacon设备、Sub-G设备等


Post Reply
17621213253
Posts: 3

WINDOWS 下面windIDE 无法编译,不下载编译链
PS D:\tuyaWind\TLSR825X_3.5.0> cd d:\tuyaWind\TLSR825X_3.5.0\software\TuyaOS\
PS D:\tuyaWind\TLSR825X_3.5.0\software\TuyaOS> & C:\Users\86186\.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
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Collecting GitPython
Using cached GitPython-3.1.29-py3-none-any.whl (182 kB)
Collecting gitdb<5,>=4.0.1
Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)
Collecting smmap<6,>=3.0.1
Using cached smmap-5.0.0-py3-none-any.whl (24 kB)
Installing collected packages: smmap, gitdb, GitPython
Successfully installed GitPython-3.1.29 gitdb-4.0.10 smmap-5.0.0
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 "C:\Users\86186\.tuya\venv\lib\site-packages\git\__init.py", line 89, in <module>
refresh()
File "C:\Users\86186\.tuya\venv\lib\site-packages\git\__init
.py", line 76, in refresh
if not Git.refresh(path=path):
File "C:\Users\86186\.tuya\venv\lib\site-packages\git\cmd.py", line 389, in refresh
raise ImportError(err)
ImportError: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh()

All git commands will error until this is rectified.

This initial warning can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
- quiet|q|silence|s|none|n|0: for no warning or exception
- warn|w|warning|1: for a printed warning
- error|e|raise|r|2: for a raised exception

Example:
export GIT_PYTHON_REFRESH=quiet

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "./vendor/tlsr825x_smesh/prepare.py", line 18, in <module>
from git import Repo
File "C:\Users\86186\.tuya\venv\lib\site-packages\git\__init__.py", line 91, in <module>
raise ImportError("Failed to initialize: {0}".format(exc)) from exc
ImportError: Failed to initialize: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh()

All git commands will error until this is rectified.

This initial warning can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
- quiet|q|silence|s|none|n|0: for no warning or exception
- warn|w|warning|1: for a printed warning
- error|e|raise|r|2: for a raised exception

Example:
export GIT_PYTHON_REFRESH=quiet

execution failed !!!
PS D:\tuyaWind\TLSR825X_3.5.0\software\TuyaOS>

17621213253
Posts: 3

Re: windIDE 无法编译

请高手帮忙看看问题在哪?

User avatar
joey_nobug
Posts: 144

Re: windIDE 无法编译

你好,请问是否有装好 git 并配置好环境变量

Talk is cheap, show me the code.
Post Reply