!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
8 Jul 2022
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how WHY is it updating cffi when I do anything with the poetry cli? 08:01:38
@plato:matrix.orgplatoI'm getting an error "poetry not found" for my own pypi project when I include it as a dependency of my poetry2nix derivation. I can fix this by using an override, but since I own the package in question I was wondering what I'm doing wrong in the first place.08:50:44
@plato:matrix.orgplato Sorry, I'm getting No module named 'poetry' from poetry2nix. 08:51:56
@plato:matrix.orgplato Which I can fix by adding self.poetry to buildInputs in the overrideAttrs. 08:52:20
@k900:0upti.meK900OK, something is definitely afoot10:03:40
@k900:0upti.meK900I'm getting the same issue with asyncpg10:03:48
@k900:0upti.meK900On a project that has definitely worked before10:03:56
@k900:0upti.meK900Looks like it might be https://github.com/python-poetry/poetry/issues/596710:04:58
@k900:0upti.meK900 (CC thoth matthewcroughan - nix.how ) 10:05:48
@k900:0upti.meK900So uh 12:24:46
@k900:0upti.meK900How many rebuilds is updating poetry in nixpkgs, I wonder 12:24:59
@k900:0upti.meK900Turns out the answer is "about 150", which is not much at all14:54:59
@k900:0upti.meK900Uhh wait what15:50:39
@k900:0upti.meK900 The pkgs.poetry is from poetry2nix 15:50:49
@k900:0upti.meK900 Not from python3Packages 15:50:53
@k900:0upti.meK900 adisbladis: https://github.com/nix-community/poetry2nix/pull/682 16:38:36
@k900:0upti.meK900Can you merge and tag a release?16:38:41
@k900:0upti.meK9001.1.13 is basically completely busted now16:38:49
11 Jul 2022
@plato:matrix.orgplato I'm getting error: collision between /nix/store/9651s7dpz8r2z594npph30vzbp1pg5nl-python3.9-asyncmy-0.2.3/lib/python3.9/site-packages/LICENSE' and /nix/store/qinfada3y9nyrcwq1xcrdv39smwp0gmc-python3.9-cfel-pylint-checkers-1.0.1/lib/python3.9/site-packages/LICENSE' - anyone have an idea of the cause? 08:35:09
@plato:matrix.orgplato I've definitely upgraded to poetry-1.1.14 and still get empty lists in the poetry.lock. For example, for astroid. 11:56:26
@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

Show newer messages


Back to Room ListRoom Version: 6