ShamrockLee (Yueh-Shun Li) | Hi, all. I'm having an issue trying to get PySide6 build. The curl: (28) Operation too slow appears consistently regardless of network stability, and preferWheels = true doesn't solve the problem.
The following is a minimum reproducer:
pyproject.toml
[tool.poetry]
name = "test-poetry2nix-pyside6"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = ">=3.11, <3.13"
PySide6 = "^6.7.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
flake.nix
{
inputs.poetry2nix.url = "github:nix-community/poetry2nix";
inputs.nixpkgs.follows = "poetry2nix/nixpkgs";
outputs = { self, ...}@inputs:
let
inherit (inputs.nixpkgs) lib;
in
{
devShells = lib.mapAttrs (system: pkgs:
let
poetry2nix = inputs.poetry2nix.lib.mkPoetry2Nix { inherit pkgs; };
in
{
default = poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
}
) inputs.nixpkgs.legacyPackages;
};
}
poetry.lock
# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
[[package]]
name = "pyside6"
version = "6.7.2"
description = "Python bindings for the Qt cross-platform application and UI framework"
optional = false
python-versions = "<3.13,>=3.9"
files = [
{file = "PySide6-6.7.2-cp39-abi3-macosx_11_0_universal2.whl", hash = "sha256:602debef9ec159b0db48f83b38a0e43e2dad3961f7d99f708d98620f04e9112b"},
{file = "PySide6-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:15e7696a09072ee977f6e6179ab1e48184953df8417bcaa83cfadf0b79747242"},
{file = "PySide6-6.7.2-cp39-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:6e0acb471535de303f56e3077aa86f53496b4de659b99ecce80520bcee508a63"},
{file = "PySide6-6.7.2-cp39-abi3-win_amd64.whl", hash = "sha256:f73ae0de77d67f51ca3ce8207b12d3a5fa0107d3d5b6e4aeb3b53ee842b0927a"},
]
[package.dependencies]
PySide6-Addons = "6.7.2"
PySide6-Essentials = "6.7.2"
shiboken6 = "6.7.2"
[[package]]
name = "pyside6-addons"
version = "6.7.2"
description = "Python bindings for the Qt cross-platform application and UI framework (Addons)"
optional = false
python-versions = "<3.13,>=3.9"
files = [
{file = "PySide6_Addons-6.7.2-cp39-abi3-macosx_11_0_universal2.whl", hash = "sha256:90b995efce61058d995c603ea480a9a3054fe8206739dcbc273fc3b53d40650f"},
{file = "PySide6_Addons-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:94b9bf6a2a4a7ac671e1776633e50d51326c86f4184f1c6e556f4dd5498fd52a"},
{file = "PySide6_Addons-6.7.2-cp39-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:22979b1aa09d9cf1d7a86c8a9aa0cb4791d6bd1cc94f96c5b6780c5ef8a9e34e"},
{file = "PySide6_Addons-6.7.2-cp39-abi3-win_amd64.whl", hash = "sha256:ebf549eb25998665d8e4ec24014fbbd37bebc5ecdcb050b34db1e1c03e1bf81d"},
]
[package.dependencies]
PySide6-Essentials = "6.7.2"
shiboken6 = "6.7.2"
[[package]]
name = "pyside6-essentials"
version = "6.7.2"
description = "Python bindings for the Qt cross-platform application and UI framework (Essentials)"
optional = false
python-versions = "<3.13,>=3.9"
files = [
{file = "PySide6_Essentials-6.7.2-cp39-abi3-macosx_11_0_universal2.whl", hash = "sha256:4d13666e796ec140ecfb432c4f3d7baef6dfafc11929985a83b22c0025532fb7"},
{file = "PySide6_Essentials-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a1a4c09f1e916b9cfe53151fe4a503a6acb1f6621ba28204d1bfe636f80d6780"},
{file = "PySide6_Essentials-6.7.2-cp39-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:9135513e1c4c6e2fbb1e4f9afcb3d42e54708b0d9ed870cb3213ea4874cafa1e"},
{file = "PySide6_Essentials-6.7.2-cp39-abi3-win_amd64.whl", hash = "sha256:0111d5fa8cf826de3ca9d82fed54726cce116d57f454f88a6467578652032d69"},
]
[package.dependencies]
shiboken6 = "6.7.2"
[[package]]
name = "shiboken6"
version = "6.7.2"
description = "Python/C++ bindings helper module"
optional = false
python-versions = "<3.13,>=3.9"
files = [
{file = "shiboken6-6.7.2-cp39-abi3-macosx_11_0_universal2.whl", hash = "sha256:50c33ac6317b673a1eb97a9abaafccb162c4ba0c9ca658a8e449c49a8aadc379"},
{file = "shiboken6-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:70e80737b27cd5d83504b373013b55e70462bd4a27217d919ff9a83958731990"},
{file = "shiboken6-6.7.2-cp39-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:98bedf9a15f1d8ba1af3e4d1e7527f7946ce36da541e08074fd9dc9ab5ff1adf"},
{file = "shiboken6-6.7.2-cp39-abi3-win_amd64.whl", hash = "sha256:9024e6afb2af1568ebfc8a5d07e4ff6c8829f40923eeb28901f535463e2b6b65"},
]
[metadata]
lock-version = "2.0"
python-versions = ">=3.11, <3.13"
content-hash = "1e6f7d31cf4eacf82b2e4759e84f5641e32591ba80ef130713ddbfedce2d92c7"
flake.lock
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nix-github-actions": {
"inputs": {
"nixpkgs": [
"poetry2nix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1703863825,
"narHash": "sha256-rXwqjtwiGKJheXB43ybM8NwWB8rO2dSRrEqes0S7F5Y=",
"owner": "nix-community",
"repo": "nix-github-actions",
"rev": "5163432afc817cf8bd1f031418d1869e4c9d5547",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-github-actions",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1719763542,
"narHash": "sha256-mXkOj9sJ0f69Nkc2dGGOWtof9d1YNY8Le/Hia3RN+8Q=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e6cdd8a11b26b4d60593733106042141756b54a3",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable-small",
"repo": "nixpkgs",
"type": "github"
}
},
"poetry2nix": {
"inputs": {
"flake-utils": "flake-utils",
"nix-github-actions": "nix-github-actions",
"nixpkgs": "nixpkgs",
"systems": "systems_2",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1723512448,
"narHash": "sha256-VSTtxGKre1p6zd6ACuBmfDcR+BT9+ml8Y3KrSbfGFYU=",
"owner": "nix-community",
"repo": "poetry2nix",
"rev": "ed52f844c4dd04dde45550c3189529854384124e",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "poetry2nix",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": [
"poetry2nix",
"nixpkgs"
],
"poetry2nix": "poetry2nix"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"id": "systems",
"type": "indirect"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [
"poetry2nix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1719749022,
"narHash": "sha256-ddPKHcqaKCIFSFc/cvxS14goUhCOAwsM1PbMr0ZtHMg=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "8df5ff62195d4e67e2264df0b7f5e8c9995fd0bd",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
Placing the four files in the same directory, run with nix develop path:. , and we'll see the following error:
❯ nix develop path:.
[2/3/9 built, 100 copied (83.7/84.1 MiB), 11.1 MiB DL] building PySide6_Essentials-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl: ################error: builder for '/nix/store/arr8jy9wij62fizax32y8pk91qvxmfd5-PySide6_Essentials-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl.drv' failed with exit code 28;
last 10 log lines:
> curl: (22) The requested URL returned error: 404 # ##
>
> Predicted URL 'https://files.pythonhosted.org/packages/wheel/p/pyside6-essentials/PySide6_Essentials-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl' failed, querying pypi.org
> ######################################################################## 100.0%
> ############## 20.5%curl: (28) Operation too slow. Less than 1 bytes/sec transferred the last 5 seconds
> Warning: Problem : timeout. Will retry in 1 seconds. 2 retries left.
> curl: (28) Operation too slow. Less than 1 bytes/sec transferred the last 5 seconds
> Warning: Problem : timeout. Will retry in 2 seconds. 1 retries left.
> curl: (28) Operation too slow. Less than 1 bytes/sec transferred the last 5 seconds
>
For full logs, run 'nix log /nix/store/arr8jy9wij62fizax32y8pk91qvxmfd5-PySide6_Essentials-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl.drv'.
error: 1 dependencies of derivation '/nix/store/ad5hvyvnn7xhirc99zc6dn2qvrkz343m-python3.11-pyside6-essentials-6.7.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yck7n1xjy6j24qv88f0qsg6bqykbzj32-python3-3.11.9-env-env.drv' failed to build
Here is the result of nix log /nix/store/arr8jy9wij62fizax32y8pk91qvxmfd5-PySide6_Essentials-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl.drv^* :
Trying to fetch with predicted URL: https://files.pythonhosted.org/packages/wheel/p/pyside6-essentials/PySide6_Essentials-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl
#=#=#
##O#-#
##O=# #
#=#=-# #
-#O#- # #
-=#=# # #
-=O#-# # #
-=O=# # # #
-=O=-# # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # ##
-=O=- # # #
-=O=- # ###
-=O=- # ##
curl: (22) The requested URL returned error: 404
Predicted URL 'https://files.pythonhosted.org/packages/wheel/p/pyside6-essentials/PySide6_Essentials-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl' failed, querying pypi.org
#=#=#
# 1.6%
######################################################################## 100.0%
#=#=#
0.0%
0.1%
0.2%
0.4%
0.4%
0.4%
0.7%
1.0%
1.3%
# 1.6%
# 1.6%
# 1.9%
# 2.3%
# 2.7%
## 2.9%
## 2.9%
## 3.3%
## 3.7%
## 3.9%
## 3.9%
## 3.9%
## 4.0%
## 4.1%
## 4.1%
## 4.1%
## 4.1%
### 4.2%
### 4.4%
### 4.4%
### 4.5%
### 4.6%
### 5.0%
### 5.1%
### 5.1%
### 5.3%
### 5.5%
#### 5.7%
#### 5.9%
#### 6.1%
#### 6.3%
#### 6.4%
#### 6.4%
#### 6.6%
#### 6.8%
##### 7.0%
##### 7.3%
##### 7.6%
##### 7.6%
##### 7.6%
##### 7.9%
##### 8.2%
###### 8.5%
###### 8.6%
###### 8.6%
###### 8.9%
###### 9.3%
###### 9.7%
####### 9.9%
####### 10.0%
####### 10.4%
####### 10.8%
######## 11.3%
######## 11.3%
######## 11.7%
######## 12.0%
######### 12.6%
######### 12.7%
######### 13.0%
######### 13.5%
########## 14.1%
########## 14.3%
########## 14.3%
########## 14.5%
########## 14.8%
########## 14.9%
########### 15.3%
########### 16.0%
########### 16.4%
########### 16.4%
########### 16.5%
########### 16.6%
############ 17.3%
############ 17.8%
############# 18.4%
############# 18.4%
############# 18.8%
############# 19.3%
############## 19.5%
############## 19.5%
############## 19.8%
############## 20.0%
############## 20.4%
############## 20.5%curl: (28) Operation too slow. Less than 1 bytes/sec transferred the last 5 seconds
Warning: Problem : timeout. Will retry in 1 seconds. 2 retries left.
##O#-#
##=O#- #
#-#O=# #
#=#=-# #
-#O#- # #
-=#=# # #
-=O#- # # #
-=O=# # # #
-=O=-# # # #
curl: (28) Operation too slow. Less than 1 bytes/sec transferred the last 5 seconds
Warning: Problem : timeout. Will retry in 2 seconds. 1 retries left.
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
-=O=- # # # #
curl: (28) Operation too slow. Less than 1 bytes/sec transferred the last 5 seconds
| 10:54:43 |