Poetry2nix | 326 Members | |
| https://github.com/nix-community/poetry2nix | 62 Servers |
| Sender | Message | Time |
|---|---|---|
| 26 Jan 2024 | ||
In reply to @angryant:envs.netmkPoetryPackages appears to take overrides as well. | 10:50:37 | |
| I would assume as much. It is a very promising direction. | 10:51:17 | |
| Just beware, there's a minor issue with the order that overrides.withDefaults applies, and you might have to read the source and do it the other way around if you want to add an override where poetry2nix already has one. | 10:51:20 | |
| what llm contraption are you trying to nixify, If I might ask. | 10:51:39 | |
| We're developing a composite python-dotnet chat & project management tool. | 10:53:00 | |
| Mostly doing a lot of bridging. | 10:53:28 | |
| Now I have 'python-inside-of-delphi' flashbacks :). Good luck with that. | 10:54:59 | |
| Thanks :) The composite part has worked well for a long while - we're not really worried there. The new part is moving to Poetry, so we can have as much of python development as possible not require syncing updates to the nix shell script. | 10:57:44 | |
| 16:19:53 | ||
| 22:43:32 | ||
| Hi, I'm a novice nix user. Iām trying to write a flake for a poetry project at work. The existing project has
When I try to build the flake, I get the following error:
A stripped-down example of the issue is here: https://github.com/amrox/poetry2nix-gnureadline Any ideas how to resolve this? | 22:49:46 | |
In reply to @mroxatron:matrix.org ncurses is a native dependency of one of your python libraries. Just need to add that in as well. | 22:54:23 | |
| 27 Jan 2024 | ||
thanks, but I still don't understand how to do it. I found this article https://github.com/nix-community/poetry2nix/blob/master/docs/edgecases.md which helped me get past the build issue with debian-parser. I still don't understand where to add the native dependencies. This article talks about it https://www.tweag.io/blog/2020-08-12-poetry2nix/ but I don't follow exactly how | 03:24:09 | |
| I think I figured it out with inspiration from https://github.com/nix-community/poetry2nix/blob/master/overrides/default.nix | 03:58:36 | |
| 31 Jan 2024 | ||
| 03:36:47 | ||
| 06:22:22 | ||
| 1 Feb 2024 | ||
| I'm getting this error when trying to enter a poetry2nix environment with latest poetry2nix master and gitlint 0.19.1:
| 23:15:43 | |
| * I'm getting this error when trying to enter a poetry2nix environment with latest poetry2nix master and gitlint 0.19.1:
Not sure how to deal with that. | 23:19:05 | |
| * I'm getting this error when trying to enter a poetry2nix environment with latest poetry2nix master and gitlint 0.19.1:
Not sure how to deal with that.
| 23:30:14 | |
| * I'm getting this error when trying to enter a poetry2nix environment with latest poetry2nix master and gitlint 0.19.1:
Not sure how to deal with that.
| 23:32:40 | |
| 5 Feb 2024 | ||
| Hello, I'm currently getting a collision error and I'm not sure how to fix it. The error is: `error: collision between `/nix/store/qnrbkh9xk85xkm5s0h03rihzzp2bv117-python3.10-py3rosmsgs-1.18.2/lib/python3.10/site-packages/genpy/__pycache__/__init__.cpython-310.opt-1.pyc' and `/nix/store/n5ncx7zza0852fawz56r2cn32ydv4yw8-python3.10-genpy-2022.1/lib/python3.10/site-packages/genpy/__pycache__/__init__.cpython-310.opt-1.pyc'` | 11:07:32 | |
| Or if anyone have any pointers to how I can debug this issue, it would be much appreciated š | 11:08:27 | |
| We would need more context. What's your kernel configuration look like? | 17:03:16 | |
| I found a similar problem on the issues page, and ended up removing the offending files through the override, e.g. postInstall='' rm -f $out/lib/python3.10/site-packafes/genpy/__pycache__/__init__.cpython-310.opt.pyc ''; I can post a simplified version of my flake and pyproject tomorrow | 20:05:14 | |
| 6 Feb 2024 | ||
| Going by the paths alone, it looks like py3rosmsgs vendors genpy, so you'd end up with two versions of that module in PYTHON_PATH. | 09:01:53 | |
| * Going by the paths alone, it looks like py3rosmsgs vendors genpy, so you'd end up with two versions of that module in PYTHONPATH. | 09:01:57 | |
In reply to @phaer:matrix.orgYeah that makes sense. Do you know how I'd try to fix this? Can I remove the vendor somehow for py3rosmsgs? | 09:26:45 | |
| You could do that the same way you removed the non-vendored version via postInstall above. Would recommend to check why it's vendored first ;) | 09:31:09 | |
| Just removing it from genpy makes it work, no idea why they are vendored though, and don't really know what to look for, could you give me a pointer? š | 10:01:28 | |
| Not the easiest question, as I don't know either of those packages. Could be that it's just to ease distribution, could also be that they are vendoring a patched version. First thing to check could be whether the vendored genpy is actually different from the upstream one. Or just asking py3rosmsgs maintainers about it | 10:23:11 | |