!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

312 Members
https://github.com/nix-community/poetry2nix58 Servers

Load older messages


SenderMessageTime
12 Apr 2022
@jfrank8:matrix.orgJustin FrankHey all I'm running into issues setting up a devshell environment with poetry as the only dependency using devShell in a flake. I get errors about no module named flit_core when pyparsing is built. I've tried using the overide attribute of mkPoetryEnv to specify flit-core and flit to no luck and since juyter is pretty popular I'd try to figure out what's going on. Any suggesions?05:05:51
@jfrank8:matrix.orgJustin FrankUnfortunately I have the same issue with jupyterlab as well05:20:43
@jfrank8:matrix.orgJustin Franknevermind I was just specifying my overides wrong05:46:12
@avx3:matrix.orgavx3I got all the overrides working but unfortunately when I moved back to working an my project with more than just jupyterlab I ended up getting a error from duplicate packages, particularly two different versions of pyparsing. Any suggestions on how to start debugging the duplicate packages problem?06:26:04
14 Apr 2022
@adis:blad.isadisbladis
In reply to @artturin:matrix.org
adisbladis: probably just hasn't had time to review it
Remote tropical islands and internet bound activities don't mix ;)
I'm reviewing it rn
03:52:22
@adis:blad.isadisbladisIt's not such an obvious fix as you'd think04:18:08
15 Apr 2022
@froxictog:matrix.orgToxicFrog joined the room.21:11:27
@froxictog:matrix.orgToxicFrog Is there a way to tell poetry2nix to run poetry in debug mode (-vvv)? 21:11:45
@froxictog:matrix.orgToxicFrog I'm trying to build codex with p2n, and it dies working on one of the dependencies with TypeError: expected str, bytes or os.PathLike object, not list 21:12:16
@froxictog:matrix.orgToxicFrogAnd I can't even tell if that error is coming from Poetry itself or some other tool it's running.21:12:27
@froxictog:matrix.orgToxicFrogFull log: http://ix.io/3Vfm21:13:09
16 Apr 2022
@adis:blad.isadisbladis
In reply to @froxictog:matrix.org
Is there a way to tell poetry2nix to run poetry in debug mode (-vvv)?
This is pip launching poetry as a PEP build system, not sure how that would be done in this case
04:28:05
@adis:blad.isadisbladis It looks like we might want to add --debug to our python -m pip wheel incantation 04:31:33
@adis:blad.isadisbladisI don't know if that has any detrimental performance effects though04:33:18
@k900:0upti.meK900 adisbladis: any ideas why iso8601 builds fine without poetry in nixpkgs proper, but fails to find it in poetry2nix? 06:09:47
@adis:blad.isadisbladis
In reply to @k900:0upti.me
adisbladis: any ideas why iso8601 builds fine without poetry in nixpkgs proper, but fails to find it in poetry2nix?
A guess is that it's because nixpkgs is not defaulting to format = "pyproject"
06:11:17
@k900:0upti.meK900https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/python-modules/iso8601/default.nix#L13=06:11:28
@adis:blad.isadisbladisAnd ends up using setup.py06:11:31
@k900:0upti.meK900 It does set format = "setuptools" but there is no setup.py 06:11:38
@k900:0upti.meK900Oh wait06:11:45
@adis:blad.isadisbladisThere probably is in the pypi tarball06:11:57
@k900:0upti.meK900Yeah06:11:59
@k900:0upti.meK900I just saw it's pulling from pypi and not github06:12:05
@k900:0upti.meK900I guess I'll just PR nixpkgs to switch it over06:14:54
@adis:blad.isadisbladisI've pushed an override for it06:15:30
@k900:0upti.meK900Still probably better to handle this in nixpkgs06:15:43
@k900:0upti.meK900Poetry's autogenerated setup.py stuff is jank06:16:05
@adis:blad.isadisbladisPython is just layers upon layers of jank06:16:20
@k900:0upti.meK900True, but at least we can try to reduce the jank06:16:29
@adis:blad.isadisbladisI still like it though, don't get me wrong06:16:38

There are no newer messages yet.


Back to Room ListRoom Version: 6