Page 1 of 2
【已解决】PHY6222_TuyaOS-3.9.0 编译不了
Posted: 2023年 Nov 13日 11:45
by hysiry
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 !!!
Re: PHY6222_TuyaOS-3.9.0 编译不了
Posted: 2023年 Nov 13日 11:59
by 逻辑的院子
Re: PHY6222_TuyaOS-3.9.0 编译不了
Posted: 2023年 Nov 14日 09:40
by hysiry
Re: PHY6222_TuyaOS-3.9.0 编译不了
Posted: 2023年 Nov 14日 10:02
by 逻辑的院子
您可以提供下在命令行中运行以下两个命令的截图,例如:
Re: PHY6222_TuyaOS-3.9.0 编译不了
Posted: 2023年 Nov 14日 14:54
by hysiry
C:\Users\Administrator>python3 -V
Python 3.8.10
C:\Users\Administrator>git -v
git version 2.42.0.windows.2
Re: PHY6222_TuyaOS-3.9.0 编译不了
Posted: 2023年 Nov 14日 14:59
by beautifulzzzz
在 VS CODE的命令行框内输入:pip install gitpython 试试
Re: PHY6222_TuyaOS-3.9.0 编译不了
Posted: 2023年 Nov 14日 15:13
by hysiry
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)
Re: PHY6222_TuyaOS-3.9.0 编译不了
Posted: 2023年 Dec 9日 23:26
by DreamLovely
请问解决了吗,我的也是遇到了这样的问题
win10环境下
git version 2.40.1.windows.1
install gitpython也不行
Re: PHY6222_TuyaOS-3.9.0 编译不了
Posted: 2023年 Dec 11日 09:50
by 逻辑的院子
在Python的虚拟环境中安装缺少的组件,例如:
C:\Users\Administrator\.tuya\venv\Scripts\pip install gitpython
Re: PHY6222_TuyaOS-3.9.0 编译不了
Posted: 2023年 Dec 18日 17:24
by virtaul
pip 10以上就已经不支持pip.main()方法了。希望涂鸦工程师能完善下。