【已解决】PHY6222_TuyaOS-3.9.0 编译不了

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


hysiry
Posts: 15

PS C:\Users\Administrator\Documents\tuya\Projects\PHY6222_TuyaOS-3.9.0\software\TuyaOS> cd c:\Users\Administrator\Documents\tuya\Projects\PHY6222_TuyaOS-3.9.0\software\TuyaOS\
PS C:\Users\Administrator\Documents\tuya\Projects\PHY6222_TuyaOS-3.9.0\software\TuyaOS> & C:\Users\Administrator\.tuya\venv\Scripts\python.exe .\build_app.py apps\tuyaos_demo_ble_peripheral tuyaos_demo_ble_peripheral 1.0.0
4
DEMO_PATH: apps/tuyaos_demo_ble_peripheral
DEMO_NAME: tuyaos_demo_ble_peripheral
DEMO_FIRMWARE_VERSION: 1.0.0
BOARD_NAME: phy6222_ble
BUILD_COMMAND: build
build-pre...
install GitPython
Traceback (most recent call last):
File "./vendor/phy6222_ble/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/phy6222_ble/prepare.py", line 17, in <module>
check_and_install('git','GitPython')
File "./vendor/phy6222_ble/prepare.py", line 13, in check_and_install
pip.main(['install', MODULE])
AttributeError: module 'pip' has no attribute 'main'
execution failed !!!

hysiry
Posts: 15

Re: PHY6222_TuyaOS-3.9.0 编译不了

请看附件
git python都已经安装了

User avatar
逻辑的院子
Posts: 220
Contact:

Re: PHY6222_TuyaOS-3.9.0 编译不了

您可以提供下在命令行中运行以下两个命令的截图,例如:

git-python3版本查询截图.jpg
hysiry
Posts: 15

Re: PHY6222_TuyaOS-3.9.0 编译不了

C:\Users\Administrator>python3 -V
Python 3.8.10

C:\Users\Administrator>git -v
git version 2.42.0.windows.2

beautifulzzzz
Posts: 47

Re: PHY6222_TuyaOS-3.9.0 编译不了

在 VS CODE的命令行框内输入:pip install gitpython 试试

创造传奇,不是卖艺! 8-)
hysiry
Posts: 15

Re: PHY6222_TuyaOS-3.9.0 编译不了

PS C:\Users\Administrator\Documents\tuya\Projects\PHY6222_TuyaOS-3.9.0\software\TuyaOS> pip install gitpython
Requirement already satisfied: gitpython in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (3.1.40)
Requirement already satisfied: gitdb<5,>=4.0.1 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from gitpython) (4.0.11)
Requirement already satisfied: smmap<6,>=3.0.1 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from gitdb<5,>=4.0.1->gitpython) (5.0.1)

DreamLovely
Posts: 4

Re: PHY6222_TuyaOS-3.9.0 编译不了

请问解决了吗,我的也是遇到了这样的问题
win10环境下
git version 2.40.1.windows.1

install gitpython也不行

User avatar
逻辑的院子
Posts: 220
Contact:

Re: PHY6222_TuyaOS-3.9.0 编译不了

在Python的虚拟环境中安装缺少的组件,例如:
C:\Users\Administrator\.tuya\venv\Scripts\pip install gitpython

virtaul
Posts: 17

Re: PHY6222_TuyaOS-3.9.0 编译不了

pip 10以上就已经不支持pip.main()方法了。希望涂鸦工程师能完善下。 :D

Post Reply