Poetry2nix | 327 Members | |
| https://github.com/nix-community/poetry2nix | 62 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Feb 2024 | ||
| * 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 | |
| py3rosmsgs doesn't seem to depend on genpy, though it has a module called genpy... I wonder if this is due to a naming crash? The annoying thing is that what I'm actually depending on here is the rosnumpy package, which is the one that in the end brings in genpy and py3rosmsgs, so there are, annoyingly, multiple levels of separation | 12:08:53 | |
| Oh, i see. That's unfortunate. Python packages aren't namespaced by their distribution name, so python can't really distinguish between the module called genpy exposed by py3rosmgs, and the one exposed by genpy itself | 14:28:58 | |
| Ah ok, yeah that is unfortunate... Oh well, there's not much I can do about this, if I run into problems because of this, I'll just have to remove that rosnumpy package | 15:35:15 | |
| Thanks for all the help btw! | 15:35:17 | |
| 8 Feb 2024 | ||
| 04:28:22 | ||
| adisbladis: Do you have time to look into https://github.com/nix-community/poetry2nix/issues/1459? I don't seem to be able to combine any recent versions of poetry2nix and nixpkgs. | 20:18:39 | |
| 15 Feb 2024 | ||
| 15:16:37 | ||
| Does this ring a bell to anyone? | 15:17:51 | |
| I've been trying to convert my flask API to a nix deployment, but I get this error when trying to install my dependencies | 15:18:33 | |
| I had some problems with missing setuptools, but I solved that with the help of the FAQ | 15:19:07 | |
| * | 15:19:22 | |
| I know it's not the same error message but does adding it as a build input in the overrides fix it? https://github.com/nix-community/poetry2nix/issues/606 | 15:22:32 | |
| Also what's the context of this error? Which package is failing to build? | 15:22:48 | |
| I tried doing some process of elimination and every one I tried had the error | 15:24:05 | |
In reply to @djacu:matrix.orgI'll try it | 15:24:32 | |
| It's worth a try but the error doesn't lead me to believe that it is going to work. It looks like a package is using flit but didn't declare it. Also what's the context of this error? Which package is failing to build? Can you share more of the error message. | 15:27:59 | |
| I'll try to isolate the problem and give more context, but for now I'm getting it for all packages. Which leads me to believe I'm messing something up | 15:31:02 | |
| Download nix-migration.tar.gz | 15:37:36 | |