!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

326 Members
https://github.com/nix-community/poetry2nix61 Servers

Load older messages


SenderMessageTime
13 Jan 2024
@lenny:flipdot.org@lenny:flipdot.org joined the room.19:08:57
@lenny:flipdot.org@lenny:flipdot.org

hey I'm currently trying to build https://github.com/continuedev/continue/tree/main/server with poetry2nix but I've been running into a lot of problems.
I've already overidden a lot of deps, my progress is here: https://gist.github.com/LennyPenny/7a853eff0e79f61827b851413bb23844

now I'm faced with the error:

 last 10 log lines:
       >           ^^^^^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/importlib/__init__.py", line 126, in import_module
       >     return _bootstrap._gcd_import(name[level:], package, level)
       >            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       >   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 'maturin'
       >
       > ERROR Backend 'maturin' is not available.
       For full logs, run 'nix log /nix/store/69sqdqpi5k5g7kl78h9g4ji3bcicydl3-python3.11-continuedev-0.1.101.drv'.

any one got an idea on how to proceed?

19:52:42
@felipeggmarcelino:matrix.orgfelipeggmarcelino joined the room.19:54:26
14 Jan 2024
@vengmark2:matrix.orgl0b0
In reply to @lenny:flipdot.org

hey I'm currently trying to build https://github.com/continuedev/continue/tree/main/server with poetry2nix but I've been running into a lot of problems.
I've already overidden a lot of deps, my progress is here: https://gist.github.com/LennyPenny/7a853eff0e79f61827b851413bb23844

now I'm faced with the error:

 last 10 log lines:
       >           ^^^^^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/importlib/__init__.py", line 126, in import_module
       >     return _bootstrap._gcd_import(name[level:], package, level)
       >            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       >   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 'maturin'
       >
       > ERROR Backend 'maturin' is not available.
       For full logs, run 'nix log /nix/store/69sqdqpi5k5g7kl78h9g4ji3bcicydl3-python3.11-continuedev-0.1.101.drv'.

any one got an idea on how to proceed?

You might need to preferWheels = true; in that case. See docs.
20:36:11
15 Jan 2024
@virtu:matrix.imvirtu left the room.13:44:21
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯
In reply to @lenny:flipdot.org

hey I'm currently trying to build https://github.com/continuedev/continue/tree/main/server with poetry2nix but I've been running into a lot of problems.
I've already overidden a lot of deps, my progress is here: https://gist.github.com/LennyPenny/7a853eff0e79f61827b851413bb23844

now I'm faced with the error:

 last 10 log lines:
       >           ^^^^^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/importlib/__init__.py", line 126, in import_module
       >     return _bootstrap._gcd_import(name[level:], package, level)
       >            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       >   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 'maturin'
       >
       > ERROR Backend 'maturin' is not available.
       For full logs, run 'nix log /nix/store/69sqdqpi5k5g7kl78h9g4ji3bcicydl3-python3.11-continuedev-0.1.101.drv'.

any one got an idea on how to proceed?

Sounds like poetry2nix not knowing that something needs maturin to build. You can add build inputs to specific packages like this. (Somewhere, there's even decent documentation on this, but I can't find it.)
14:19:37
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯Ah, here… https://github.com/nix-community/poetry2nix/blob/e0b44e9e2d3aa855d1dd77b06f067cd0e0c3860d/docs/edgecases.md14:21:12
@lenny:flipdot.org@lenny:flipdot.orgyea but there it doesnt say which of the dependecies actualily requires maturin18:18:58
@lenny:flipdot.org@lenny:flipdot.orgso I dunno which to patch qq (as you can see I already patched a lot)18:19:15
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯
In reply to @lenny:flipdot.org
so I dunno which to patch qq (as you can see I already patched a lot)
Argh, sorry, I'm blind. Nothing with --print-build-logs either?
23:13:34
16 Jan 2024
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯ * Argh, overlooked that. Nothing with --print-build-logs either? 01:04:19
17 Jan 2024
@daquintero:matrix.orgdaquintero joined the room.11:12:15
@daquintero:matrix.orgdaquinteroHi I'm really struggling twith this too11:14:28
@daquintero:matrix.orgdaquinteroDid you find an answer?11:14:32
@daquintero:matrix.orgdaquintero * Hi Ryan Swart I'm really struggling twith this too 11:16:23
@daquintero:matrix.orgdaquintero Hi nazarewk ! Did you manage to package it with watchfiles? Strugging to get it to build the wheel 11:18:48
@nazarewk:matrix.orgnazarewkI didn't continue the topic 11:19:37
@daquintero:matrix.orgdaquinteroAhh fair thanks!11:19:59
18 Jan 2024
@jarrodfarrell:matrix.orgJarrod Farrell joined the room.02:17:20
@jarrodfarrell:matrix.orgJarrod Farrell So poetry2nix has a bunch of examples of starting fresh and just packaging your project. But I have a prexisting project that isn't mine and thus I'm fetching from GitHub. The docs mention it has the src declaration so I've put src = pkgs.fetchFromGitHub { /* stuff here */ } but it still wants to grab from the folder where the declaration lives instead of the src I've provided. 02:21:11
@jarrodfarrell:matrix.orgJarrod Farrell I could just clone the repo onto my system and tack on the .flake but I figure that isn't the right way to do things. 02:22:19
@k900:0upti.meK900 You also need to provide the paths to pyproject.toml and poetry.lock 05:25:09
@k900:0upti.meK900And it will be IFD05:25:14
@k900:0upti.meK900Are you doing this for your personal use or for nixpkgs?05:25:21
@jarrodfarrell:matrix.orgJarrod FarrellUniversity related. I ended up just writing it as a bonafided deriative due a dependecy throwing an error with poetry2nix.05:26:35
@jarrodfarrell:matrix.orgJarrod FarrellSo far I'm...still working on that. Time is a blur now.05:27:14
@jarrodfarrell:matrix.orgJarrod FarrellI'm getting close to it working though so...that's something.05:27:46
@daquintero:matrix.orgdaquintero changed their display name from Dario Antonio Quintero Dominguez to daq.12:12:52
@daquintero:matrix.orgdaquintero changed their display name from daq to daquintero.12:14:12
@daquintero:matrix.orgdaquinteroRedacted or Malformed Event16:57:11

Show newer messages


Back to Room ListRoom Version: 6