!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
7 Nov 2023
@fractivore:cyberia.club@fractivore:cyberia.clubhmm, okay, I guess that makes sense19:38:15
@fractivore:cyberia.club@fractivore:cyberia.clubI'm working through them one by one. One other question, what does the "git tree is dirty" warning mean?19:46:49
@froxictog:matrix.orgToxicFrogYou have changes that haven't been committed to git, and it's using the changed versions of the files20:02:54
@froxictog:matrix.orgToxicFrogBasically "don't forget to commit your changes once you get this working"20:03:07
@fractivore:cyberia.club@fractivore:cyberia.clubahh, ok, thanks20:07:06
@fractivore:cyberia.club@fractivore:cyberia.club

I worked through several of those overrides, but now I'm getting this error:

error: builder for '/nix/store/pkifnw3bdlg37rv5ss184m2xvdlp6jb8-python3.11-bbot-1.0.3.drv' failed with exit code 1;
       last 10 log lines:
       >     patch.activate()
       >   File "/nix/store/n9ix258chw1nm40bk8lr2kp4jw8lllhk-python3.11-poetry-dynamic-versioning-0.21.5/lib/python3.11/site-packages/poetry_dynamic_versi
oning/patch.py", line 52, in activate
       >     _apply_patches()
       >   File "/nix/store/n9ix258chw1nm40bk8lr2kp4jw8lllhk-python3.11-poetry-dynamic-versioning-0.21.5/lib/python3.11/site-packages/poetry_dynamic_versi
oning/patch.py", line 43, in _apply_patches
       >     _patch_poetry_create(factory_mod)
       >   File "/nix/store/n9ix258chw1nm40bk8lr2kp4jw8lllhk-python3.11-poetry-dynamic-versioning-0.21.5/lib/python3.11/site-packages/poetry_dynamic_versi
oning/patch.py", line 14, in _patch_poetry_create
       >     from poetry.core.semver.version import Version as PoetryVersion
       > ModuleNotFoundError: No module named 'poetry.core.semver'
       >
       > ERROR Backend 'poetry_dynamic_versioning.backend' is not available.

20:26:36
@k900:0upti.meK900That's probably just broken with latest poetry20:27:05
@fractivore:cyberia.club@fractivore:cyberia.clubIt looks similar, but fails with exit code 1 rather than 2, and it appears to be the main project builder20:27:13
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @k900:0upti.me
That's probably just broken with latest poetry
Should I pin to an earlier poetry version then? Can I do that with the flake?
20:27:47
@k900:0upti.meK900I'd probably try to get rid of the dependency20:27:59
@k900:0upti.meK900Yep20:28:40
@k900:0upti.meK900https://github.com/mtkennerly/poetry-dynamic-versioning/releases20:28:40
@k900:0upti.meK900poetry-dynamic-versioning 0.21.5 is broken with latest poetry20:28:49
@k900:0upti.meK900You should try and track down where it comes form20:29:01
@k900:0upti.meK900* You should try and track down where it comes from20:29:09
@k900:0upti.meK900And see if you can patch it out20:29:12
@k900:0upti.meK900Actually it's a direct dependency20:29:28
@k900:0upti.meK900 So you can try just poetry-dynamic-versioning = null; 20:29:36
@k900:0upti.meK900So it just doesn't get built at all20:29:41
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @k900:0upti.me
So you can try just poetry-dynamic-versioning = null;

Where would I put that line? I tried

            overrides = defaultPoetryOverrides.extend
            (self: super: {
              poetry-dynamic-versioning = null;

20:36:29
@k900:0upti.meK900Yes, there20:36:38
@fractivore:cyberia.club@fractivore:cyberia.club

But now I just get

       last 10 log lines:
       >   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
       >   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
       >   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
       > ModuleNotFoundError: No module named 'poetry_dynamic_versioning'
       >
       > ERROR Backend 'poetry_dynamic_versioning.backend' is not available.
20:36:54
@k900:0upti.meK900Oh20:37:47
@k900:0upti.meK900 In pyproject.toml replace

[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"

with

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
20:38:14
@fractivore:cyberia.club@fractivore:cyberia.clubIt's building! I collected garbage after I edited the pyproject.toml file, maybe I didn't really need to do that. I'm gonna munch some more pasta while it builds.20:44:52
@fractivore:cyberia.club@fractivore:cyberia.clubyay it built! My first real derivation! 😄20:51:07
@fractivore:cyberia.club@fractivore:cyberia.clubNow what do I do lol20:51:18
@k900:0upti.meK900I dunno20:51:46
@k900:0upti.meK900Run it?20:51:49
@k900:0upti.meK900Whatever you were trying to do in the first place20:51:56

Show newer messages


Back to Room ListRoom Version: 6