Windows builds fail when no version of Python is present
Đang mở
Chưa có ai nhận issue này.
build
OS-windows
type-bug
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 36k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
Bug report
When building python 3.11.0 on windows, if no version of python already exists, the build fails due to apparently malformed nuget commands.
FindPythonForBuild:
Downloading nuget...
Feeds used:
https://api.nuget.org/v3/index.json
Installing package 'pythonx86' to 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals'.
GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/index.json
OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/index.json 123ms
GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.5.2/3.8.1-c1.json
GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.8.1/3.10.4.json
GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.10.5/3.12.0-a1.json
OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.8.1/3.10.4.json 33ms
OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.5.2/3.8.1-c1.json 88ms
OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.10.5/3.12.0-a1.json 94ms
Attempting to gather dependency information for package 'pythonx86.3.11.0' with respect to project 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals', targeting 'Any,Version=v0.0'
Gathering dependency information took 48 ms
Attempting to resolve dependencies for package 'pythonx86.3.11.0' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'pythonx86.3.11.0'
Resolved actions to install package 'pythonx86.3.11.0'
Retrieving package 'pythonx86 3.11.0' from 'nuget.org'.
GET https://api.nuget.org/v3-flatcontainer/pythonx86/3.11.0/pythonx86.3.11.0.nupkg
OK https://api.nuget.org/v3-flatcontainer/pythonx86/3.11.0/pythonx86.3.11.0.nupkg 62ms
Installed pythonx86 3.11.0 from https://api.nuget.org/v3/index.json with content hash V5oJYri31E20HR7Z1EfzCiYObF8U6ECVIZ2Rg4BifoH31dRA48nQTOOP6ClcGpfrjK4yZOQrgB4HxoEQqMYmYA==.
Adding package 'pythonx86.3.11.0' to folder 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals'
Added package 'pythonx86.3.11.0' to folder 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals'
Successfully installed 'pythonx86 3.11.0' to C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals
Executing nuget actions took 7.4 sec
"C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\PCbuild\\\\..\\externals\\pythonx86\\tools\\python.exe"
Using PythonForBuild=Downloading nuget...;Feeds used:;https://api.nuget.org/v3/index.json;Installing package 'pythonx86' to 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals'.;GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/index.json;OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/index.json 123ms;GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.5.2/3.8.1-c1.json;GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.8.1/3.10.4.json;GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.10.5/3.12.0-a1.json;OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.8.1/3.10.4.json 33ms;OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.5.2/3.8.1-c1.json 88ms;OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.10.5/3.12.0-a1.json 94ms;Attempting to gather dependency information for package 'pythonx86.3.11.0' with respect to project 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals', targeting 'Any,Version=v0.0';Gathering dependency information took 48 ms;Attempting to resolve dependencies for package 'pythonx86.3.11.0' with DependencyBehavior 'Lowest';Resolving dependency information took 0 ms;Resolving actions to install package 'pythonx86.3.11.0';Resolved actions to install package 'pythonx86.3.11.0';Retrieving package 'pythonx86 3.11.0' from 'nuget.org'.;GET https://api.nuget.org/v3-flatcontainer/pythonx86/3.11.0/pythonx86.3.11.0.nupkg;OK https://api.nuget.org/v3-flatcontainer/pythonx86/3.11.0/pythonx86.3.11.0.nupkg 62ms;Installed pythonx86 3.11.0 from https://api.nuget.org/v3/index.json with content hash V5oJYri31E20HR7Z1EfzCiYObF8U6ECVIZ2Rg4BifoH31dRA48nQTOOP6ClcGpfrjK4yZOQrgB4HxoEQqMYmYA==.;Adding package 'pythonx86.3.11.0' to folder 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals';Added package 'pythonx86.3.11.0' to folder 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals';Successfully installed 'pythonx86 3.11.0' to C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals;Executing nuget actions took 7.4 sec;"C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\PCbuild\\\\..\\externals\\pythonx86\\tools\\python.exe"
Then, later:
'Downloading' is not recognized as an internal or external command,
operable program or batch file.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Trước tiên, hãy xem xét bước PCbuild FindPythonForBuild và đầu ra NuGet được ghi lại. Tái hiện một bản build Windows khi chưa có bản cài đặt Python nào tồn tại trước đó, sau đó truy vết lý do đầu ra của lệnh đã tải xuống trở thành giá trị PythonForBuild. Hoàn tất khi bản build tiếp tục mà không coi 'Downloading' là một lệnh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- build-system
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100