!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

You have reached the beginning of time (for this room).


SenderMessageTime
16 Nov 2023
@k900:0upti.meK900Can you post your expression?09:06:39
@dustee:matrix.orgdusteethis is a simple project i though would work, i tried before with a django project and it was horrible, getting hundreds of errors i tried to fix with the edgecase readme but in the end it came to errors i couldnt fix, is this really how poetry2nix is meant to be?09:07:27
@k900:0upti.meK900Yes09:07:36
@k900:0upti.meK900That is how the Python ecosystem is, generally09:07:44
@k900:0upti.meK900Unfortunately09:07:48
@k900:0upti.meK900But "hundreds" feels like too many09:07:56
@k900:0upti.meK900Can you post your flake.nix?09:08:05
@dustee:matrix.orgdusteeRedacted or Malformed Event09:10:51
@dustee:matrix.orgdusteeah sry how do i post code09:11:06
@k900:0upti.meK900Yeah, you removed the default overrides set09:11:30
@k900:0upti.meK900You want something like https://github.com/nix-community/poetry2nix/#example-509:11:47
@dustee:matrix.orgdusteeimage.png
Download image.png
09:24:19
@dustee:matrix.orgdusteeerror: attribute 'defaultPoetryOverrides' missing 09:24:27
@dustee:matrix.orgdusteehow come i cant do 'poetry2nix.defaultPoetryOverrides' like shown in the edgecase readme?09:25:18
@k900:0upti.meK900 Use inherit (poetry2nix.lib.mkPoetry2Nix { inherit pkgs; }) mkPoetryApplication defaultPoetryOverrides 09:25:24
@k900:0upti.meK900 And then defaultPoetryOverrides.extend 09:25:31
@dustee:matrix.orgdusteeok thats working, its building something, ill see09:27:33
@dustee:matrix.orgdusteebut yeah it seemed suspicious to me that the overrides/build-systems.json file in the github repo is already filled with the stuff i was trying to fix manually09:28:50
@dustee:matrix.orgdustee:D09:28:51
@dustee:matrix.orgdusteehmm how come poetry is not available in the shell, it looks like it should be there packages = [ pkgs.poetry ];09:37:41
@k900:0upti.meK900It should be, yeah09:37:55
@dustee:matrix.orgdusteealso it seems to be building numpy repeatably every time i enter the shell09:39:02
@k900:0upti.meK900You're probably not letting it complete the build09:39:41
@dustee:matrix.orgdusteewell this is weird i was able to enter the shell twice but poetry wasnt available, but there is now an error at building contourpy, i didnt change anything in the flake.nix or pyproject.toml09:42:52
@dustee:matrix.orgdusteei tried to add dotenv but poetry wasnt there09:43:09
@dustee:matrix.orgdusteecan i clear the cache or something?09:43:38
@k900:0upti.meK900You shouldn't have to 09:47:48
@dustee:matrix.orgdusteewell i did the unthinkable, i restarted the machine. and it seemed to help some, the build progressed i got another setuptools error which i solved and was able to build into the shell and now have access to poetry09:58:42
@dustee:matrix.orgdusteebut 'poetry run python manage.py runserver 0.0.0.0:5600' errors with 'ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory '09:59:14
@dustee:matrix.orgdusteei think i solved this one with adding "cppy" to build requirements for some package, but where do i put it now when the shell already built successfully? are there runtime requirements somewhere or something10:02:29

Show newer messages


Back to Room ListRoom Version: 6