| 8 Jul 2022 |
matthewcroughan - nix.how | WHY is it updating cffi when I do anything with the poetry cli? | 08:01:38 |
plato | I'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 | Sorry, I'm getting No module named 'poetry' from poetry2nix. | 08:51:56 |
plato | Which I can fix by adding self.poetry to buildInputs in the overrideAttrs. | 08:52:20 |
K900 | OK, something is definitely afoot | 10:03:40 |
K900 | I'm getting the same issue with asyncpg | 10:03:48 |
K900 | On a project that has definitely worked before | 10:03:56 |
K900 | Looks like it might be https://github.com/python-poetry/poetry/issues/5967 | 10:04:58 |
K900 | (CC thoth matthewcroughan - nix.how ) | 10:05:48 |
K900 | So uh | 12:24:46 |
K900 | How many rebuilds is updating poetry in nixpkgs, I wonder | 12:24:59 |
K900 | Turns out the answer is "about 150", which is not much at all | 14:54:59 |
K900 | Uhh wait what | 15:50:39 |
K900 | The pkgs.poetry is from poetry2nix | 15:50:49 |
K900 | Not from python3Packages | 15:50:53 |
K900 | adisbladis: https://github.com/nix-community/poetry2nix/pull/682 | 16:38:36 |
K900 | Can you merge and tag a release? | 16:38:41 |
K900 | 1.1.13 is basically completely busted now | 16:38:49 |
| 11 Jul 2022 |
plato | 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 | 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 | poetry cache clear --all pypi | 12:01:36 |
plato | Ah, that fixed it. Thanks! | 12:06:28 |
plato | This LICENSE file collision message only appears for poetry2nix.mkPoetryEnv. It doesn't appear for the accompanying poetry2nix.mkPoetryApplication | 12:09:21 |
plato | Same projectDir, same overrides, though | 12:09:33 |
K900 | I'm pretty sure mkPoetryApplication just adds things to PYTHONPATH | 12:11:44 |
K900 | And doesn't build a single environment with all of them | 12:11:53 |
K900 | What that means is it's trying to symlink all of your dependencies together | 12:12:17 |
K900 | And two dependencies have the same path, so it doesn't know which to choose | 12:12:27 |
plato | Sorry for cross-posting, I thought I'd go for a general understanding ;) | 12:15:13 |
plato | So 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 |