!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

324 Members
https://github.com/nix-community/poetry2nix62 Servers

Load older messages


SenderMessageTime
11 Jul 2022
@k900:0upti.meK900 poetry cache clear --all pypi 12:01:36
@plato:matrix.orgplatoAh, that fixed it. Thanks!12:06:28
@plato:matrix.orgplato This LICENSE file collision message only appears for poetry2nix.mkPoetryEnv. It doesn't appear for the accompanying poetry2nix.mkPoetryApplication 12:09:21
@plato:matrix.orgplato Same projectDir, same overrides, though 12:09:33
@k900:0upti.meK900 I'm pretty sure mkPoetryApplication just adds things to PYTHONPATH 12:11:44
@k900:0upti.meK900And doesn't build a single environment with all of them12:11:53
@k900:0upti.meK900What that means is it's trying to symlink all of your dependencies together12:12:17
@k900:0upti.meK900And two dependencies have the same path, so it doesn't know which to choose12:12:27
@plato:matrix.orgplatoSorry for cross-posting, I thought I'd go for a general understanding ;)12:15:13
@plato:matrix.orgplatoSo it's trying to create one big site-packages or something with all dependencies symlinked in it, and it somehow got the same dependency twice.12:16:38
@plato:matrix.orgplatoToo bad it's not telling me where it wants to put the symlink.12:17:12
@plato:matrix.orgplato Hmmm, both use lib/python3.10/site-packages/LICENSE. Probably should be lib/python3.10/site-packages/$PACKAGE_NAME/LICNSE? 12:17:46
@k900:0upti.meK900Very likely yes12:21:12
12 Jul 2022
@plato:matrix.orgplato
In reply to @k900:0upti.me
Very likely yes
It's fixed now, thanks!
05:38:11
@plato:matrix.orgplato Another question though: I have to add poetry to my buildInputs in the overrides for my own package. I assume I did something wrong while building the package that makes this necessary 05:38:55
@k900:0upti.meK900Does it not build if you don't do that? 05:56:07
@plato:matrix.orgplatoExactly06:06:03
@plato:matrix.orgplatoI guess poetry2nix is looking for some field in the package to then auto-include poetry into the buildInputs?06:06:31
@k900:0upti.meK900Can you post the output from a failed build? 06:19:57
@plato:matrix.orgplatoAny preferred pastebin, or can I post it here?06:36:17
@k900:0upti.meK900Just post it here06:48:41
@plato:matrix.orgplato
error: builder for '/nix/store/wwpwj67j5l6j3wznsj6daamj8lhzyrfg-python3.10-cfel-pylint-checkers-1.0.2.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 'poetry'
       > 
       > 
       For full logs, run 'nix log /nix/store/wwpwj67j5l6j3wznsj6daamj8lhzyrfg-python3.10-cfel-pylint-checkers-1.0.2.drv'.
error: 1 dependencies of derivation '/nix/store/7hzn25yajy5nnffjq5yjykpxzq84hwcd-python3-3.10.5-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gnpq05l5v66d3cx2vd76axr8flk1bcw9-interactive-python3-3.10.5-environment-env.drv' failed to build
06:50:55
@k900:0upti.meK900Is that your root level package?06:56:38
@k900:0upti.meK900Can you also post your pyproject.toml?06:56:45
@plato:matrix.orgplato So in my root-level package I have cfel-pylint-checkers = "1.0.2" in my [tool.poetry.dev-dependencies]. 06:59:44
@plato:matrix.orgplato Do you want to pyproject.toml for the root project or cfel-pylint-checkers? 07:00:00
@plato:matrix.orgplatoThe latter would be here: https://gitlab.desy.de/cfel-sc-public/cfel-pylint-checkers/-/blob/main/pyproject.toml07:00:20
@k900:0upti.meK900Oh07:01:16
@k900:0upti.meK900So it's a dependency07:01:24
@k900:0upti.meK900In that case you probably want to add an override07:01:31

There are no newer messages yet.


Back to Room ListRoom Version: 6