You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bootstrap the process via nix-shell -p poetry (cf 320)
mkdir my-project
cd my-project
nix flake init --template github:tweag/jupyenv
Confirm nix run succeeds without issue.
mkdir my-custom-python && cd my-custom-python
<copy/paste the example 'pyproject.toml'>
Attempt to lock the poetry file:
> poetry lock
Creating virtualenv jupyter-nix-kernel-ipython-oxr5bDaL-py3.10 in /home/emeinhardt/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies... (0.1s)
Failed to create the collection: Failed to execute program org.freedesktop.secrets: No such file or directory.
> cd ..
> nix run
error: builder for '/nix/store/73x3srfrgqd270dd52crvsc7jg8gkwv5-python3.10-pathspec-0.11.1.drv' failed with exit code 2;
last 10 log lines:
> File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
> File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
> File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
> File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
> ModuleNotFoundError: No module named 'flit_core'
>
>
For full logs, run 'nix log /nix/store/73x3srfrgqd270dd52crvsc7jg8gkwv5-python3.10-pathspec-0.11.1.drv'.
error: 1 dependencies of derivation '/nix/store/1ji1h02vnxkknilx8w677b8ifd93igmd-python3-3.10.9-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/c6a8ms8g0cz7slci8j7lyyq885lz4b5x-wrapper-python3-3.10.9-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0k9brpjwniy2zan9c6hyjzq5yd7z8g3z-python-python-with-numpy-jupyter-kernel.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4cyv0pkv582pygipyswym5nicd2506xv-wrapper-chmod-python3-3.10.9-env.drv' failed to build
...but this is fixable by removing hatchling = "^1.3.1" from pyproject.toml.
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
I have followed the documented example here and
poetry
fails when attempting to generate a lock file.Expected Behavior
The tutorial example should work out of the box.
Steps To Reproduce
Bootstrap the process via
nix-shell -p poetry
(cf 320)Confirm
nix run
succeeds without issue.mkdir my-custom-python && cd my-custom-python
<copy/paste the example 'pyproject.toml'>
Attempt to lock the poetry file:
OS
Version
3ad2c95
Additional Context
The fix/hack in poetry/1917 works:
<continuing from 6 above>
6.
kernels.nix
:cd .. && nix run
then also fails:...but this is fixable by removing
hatchling = "^1.3.1"
frompyproject.toml
.Relevant log output
No response
The text was updated successfully, but these errors were encountered: