-
Notifications
You must be signed in to change notification settings - Fork 152
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Current Behavior
Any package that depends on async_generator cannot be installed. They return some form of the following error:
> installing
> Executing pipInstallPhase
> /build/trio-0.22.0/dist /build/trio-0.22.0
> Processing ./trio-0.22.0-py3-none-any.whl
> Requirement already satisfied: idna in /nix/store/vqqdd8y40jmamw70f9mh9y71iin9pcqr-python3.10-idna-3.4/lib/python3.10/site-packages (from trio==0.22.0) (3.4)
> Requirement already satisfied: attrs>=19.2.0 in /nix/store/56h9cj9vzadvw8xibxgys08s915g8rx2-python3.10-attrs-22.2.0/lib/python3.10/site-packages (from trio==0.22.0) (22.2.0)
> ERROR: Could not find a version that satisfies the requirement async-generator>=1.9 (from trio) (from versions: none)
> ERROR: No matching distribution found for async-generator>=1.9
>
When trying to install async-generator itself, I get:
error: A definition for option `kernel.python.tick.extraPackages.<function body>."[definition 1-entry 6]"' is not of type `package'. Definition values:
- In `<unknown-file>': null
(use '--show-trace' to show detailed location information)
This is weird, because async_generator is definitely in nixpkgs as can be shown by nix shell nixpkgs#python3Packages.async_generator
Expected Behavior
packages should be installed in the kernel.
Steps To Reproduce
Use this kernel with the example flake:
{ pkgs, ... }: {
kernel.python.tick = {
enable = true;
extraPackages = ps: [ ps.pandas
ps.numpy
ps.matplotlib
ps.plotly
ps.scikit-learn
ps.nbdime
];
};
}Or, try this kernel
{ pkgs, ... }: {
kernel.python.tick = {
enable = true;
extraPackages = ps: [ ps.async_generator ];
};
}OS
- system: `"x86_64-linux"`
- host os: `Linux 5.15.95, NixOS, 23.05 (Stoat), 23.05.20230225.b1f87ca`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.13.2`
- channels(david): `""`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`Version
0.1.0
Additional Context
I get the same error whether I use poetry or nixpkgs.
Relevant log output
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working