Open lenianiva opened 9 months ago
The solution about flit_core can be found here: https://github.com/tweag/jupyenv/blob/97f76f92fa14814e955a4f6847eaa4198525a19e/docs/documentation/how-to.md?plain=1#L169
The solution about flit_core can be found here:
if you don't know how to solve that issue via overrides.nix with poetry2nix. Please try my PR branch to get the native nixpkgs support for the kernels.
Thanks @GTrunSec,
I ran into the same issue and tried using your branch, e.g.
inputs.jupyenv.url = "github:GTrunSec/jupyterWith/chore";
Unfortunately this results in another error on nix run
:
trace: warning: Unknown rpds-py version: '0.10.6'. Please update getCargoHash.
error: getting status of '/nix/store/g7lkqdx4wdz77p5lbsbx038956jhg813-source/logo-64x64.png': No such file or directory
The warning I attribute to https://discourse.nixos.org/t/poetry2nix-mismatch-cryptography-sha256-but-unable-to-modify/33897
The error happens as nix is looking for the logo in the kernel's projectDir
. As a workaround I copied the logo over, which then makes nix run
still error, but most likely due to an issue in poetry2nix as outlined in the above Discourse:
trace: warning: Unknown rpds-py version: '0.10.6'. Please update getCargoHash.
error: hash mismatch in fixed-output derivation '/nix/store/hcl9xsg13zccln3q1cknclvbvl4ckdry-rpds-py-0.10.6-vendor.tar.gz.drv':
specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
got: sha256-8bXCTrZErdE7JhuoudU/4dDndCMwvjy2a+2IY0DWDzg=
I saw there is a new mkPoetryKernel
function. Should this be used in the future instead for a Poetry-based Python kernel?
@trevex for the logo error is a bug for sure(will be fixed tomorrow) second, if you don't know how to override the package with poetry2nix like https://github.com/GTrunSec/dataflow2nix/blob/main/nix/prefect/packages/overrides.nix#L23 just use the native python env: https://github.com/tweag/jupyenv/pull/524/commits/a56c43dbb0ccd18dd0f984eef890af745d62ea11#diff-459c8fd464b8b23e4b2f8ebb00690d572772b9a755aa7a5cce5d4574079edfa1R4
Current Behavior
I created a python kernel using the instructions here, and it gave this error:
Expected Behavior
Jupyter would start running
Steps To Reproduce
flake.nix
fromnix flake init --template github:tweag/jupyenv
. Modifykernels.nix
:pyproject.toml
fromhttps://github.com/tweag/jupyenv/blob/main/docs/documentation/how-to.md
[tool.poetry.dependencies] python = "^3.9" numpy = "^1.23.0" ipykernel = "^6.15.0"
[tool.poetry.dev-dependencies]
build systems for dependencies
hatchling = "^1.3.1"
[build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"
Version
https://github.com/tweag/jupyenv/commit/97f76f92fa14814e955a4f6847eaa4198525a19e
The previous version does not have the issue with
logo64.png
, but it still has issue withflit_core
https://github.com/tweag/jupyenv/commit/3ad2c9512c9efd586cf63adde454e734a8ce049c
Additional Context
touch logo64.png
creates a different problem:Relevant log output
No response