| 11 Jul 2022 |
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 |
plato | Too bad it's not telling me where it wants to put the symlink. | 12:17:12 |
plato | Hmmm, both use lib/python3.10/site-packages/LICENSE. Probably should be lib/python3.10/site-packages/$PACKAGE_NAME/LICNSE? | 12:17:46 |
K900 | Very likely yes | 12:21:12 |
| 12 Jul 2022 |
plato | In reply to @k900:0upti.me Very likely yes It's fixed now, thanks! | 05:38:11 |
plato | 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 | Does it not build if you don't do that? | 05:56:07 |
plato | Exactly | 06:06:03 |
plato | I guess poetry2nix is looking for some field in the package to then auto-include poetry into the buildInputs? | 06:06:31 |
K900 | Can you post the output from a failed build? | 06:19:57 |
plato | Any preferred pastebin, or can I post it here? | 06:36:17 |
K900 | Just post it here | 06:48:41 |
plato | 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 | Is that your root level package? | 06:56:38 |
K900 | Can you also post your pyproject.toml? | 06:56:45 |
plato | So in my root-level package I have cfel-pylint-checkers = "1.0.2" in my [tool.poetry.dev-dependencies]. | 06:59:44 |
plato | Do you want to pyproject.toml for the root project or cfel-pylint-checkers? | 07:00:00 |
plato | The latter would be here: https://gitlab.desy.de/cfel-sc-public/cfel-pylint-checkers/-/blob/main/pyproject.toml | 07:00:20 |
K900 | Oh | 07:01:16 |
K900 | So it's a dependency | 07:01:24 |
K900 | In that case you probably want to add an override | 07:01:31 |