Poetry2nix | 316 Members | |
| https://github.com/nix-community/poetry2nix | 59 Servers |
| Sender | Message | Time |
|---|---|---|
| 13 Oct 2023 | ||
| 18:20:32 | ||
| Hi there. I am currently migrating an old project towards poetry(2nix) and am running into a dependency issue with SQLAlchemy-1.4.49: | 18:22:14 | |
The initial poetry lock had succeeded in the cli, which is how I generated poetry.lcok in the first place. I am on nixpkgs-stable (23.05) and poetry2nix 1.41.0 | 18:23:16 | |
| Any ideas on this? To be fair, I still do not fully understand all components of poetry2nix. | 18:23:50 | |
| poetry.lock specifies greenlet as 2.0.2 | 18:26:48 | |
Hmm, removing the markers from the dependendcy declaration fixes this, like described in https://github.com/nix-community/poetry2nix/issues/360 | 18:39:33 | |
| but that was for a different issue. | 18:39:52 | |
| 15 Oct 2023 | ||
| 11:56:01 | ||
| How does one begin to debug an error like this...I would provide more context, but essentially I have a large pyproject.toml with a lot of dependencies and a lot of overrides for build systems and extra dependencies. I could bisect the pyproject.toml to identify the changes, but it seems there should be a better way to determine the cause of this error...
| 18:56:49 | |
| I actually think this is due to a nixpkgs upgrade... | 18:59:11 | |
| But I'm still utterly baffled as to how this error happened and how to determine the root cause. | 19:00:08 | |
| 21:27:26 | ||
| 16 Oct 2023 | ||
| After even more debugging, apparently, this is caused by the "wheel" dependency. | 03:56:09 | |
| Turns out this is a bug in poetry2nix...https://github.com/nix-community/poetry2nix/blob/master/overrides/default.nix#L2864-L2867 but https://github.com/NixOS/nixpkgs/commit/3cd71e0ae67cc48f1135e55bf78cb0d67b53ff86 updated the wheel package to use flit-core. Seems we need to do a version check or something... Still have one other issue where evaluating my pyproject.toml eats up all my 16 GiB of RAM, but I'll see if I can create a minimal repro for this. | 05:35:05 | |
| Hm, you can repro the memory hog by running (in the poetry2nix github repo):
Seems like something is just broken.... Might need to do a bisect of nixpkgs :( | 05:58:17 | |
| * Hm, you can repro the memory hog by running (in the poetry2nix github repo) (you need to fix the args to wheel first):
Seems like something is just broken.... Might need to do a bisect of nixpkgs :( | 05:59:27 | |
| 11:00:03 | ||
| 17 Oct 2023 | ||
| 14:47:56 | ||
| Hey everyone. I was just made aware of the channel by someone on IRC so I'm reposting my original question here: I'm trying to create a flake for one of my python code projects. I used However, when I run I'm sure there's a good reason for it, I'd just like to understand it. Because it appears not using poetry has, in my case, some unwanted side effects: nix fails to build some dependencies (quite common ones, too, like pandas). Any help would be greatly appreciated. Here's the code I'm using, if that helps. | 14:53:15 | |
| Yes, it is supposed to be like that | 14:54:07 | |
| The whole point of poetry2nix is that you're converting your poetry lock file to a Nix expression | 14:54:20 | |
| So everything is built in Nix | 14:54:30 | |
| Okay, great. Makes sense. Converting the poetry lock file into a nix expression instead of relying on poetry, I mean. | 14:55:50 | |
| Any ideas how to debug the problems building For | 14:56:57 | |
| The relevant part seems to be:
And let me know if spamming error messages is discouraged. | 14:58:10 | |
| What version of pandas is that? | 14:58:48 | |
| I think we have pandas in one of our projects and I see an override for setuptools | 14:59:16 | |
| Are you using poetry2nix from nixpkgs or from git master? | 14:59:59 | |
| Also, are you using nixpkgs unstable or 23.05? | 15:00:14 | |
| Try using poetry2nix from git master and nixpkgs 23.05 | 15:00:20 | |