!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

298 Members
https://github.com/nix-community/poetry2nix | Poetry2nix is unmaintained https://github.com/nix-community/poetry2nix/issues/186553 Servers

Load older messages


SenderMessageTime
27 Feb 2024
@gaivs:matrix.orggaivsHave anyone had problems installing pyqt? I'm not able to add pyqt5 to poetry at all, and while poetry add pyqt6 works, when I build it with nix, I get a bunch of missing Qt libraries 07:42:01
@lunarequest:greyseal.eu@lunarequest:greyseal.eu joined the room.11:55:13
@lunarequest:greyseal.eu@lunarequest:greyseal.euI'm trying to use poetry2nix to package an application11:56:31
@gaivs:matrix.orggaivs
In reply to @lunarequest:greyseal.eu
I'm trying to use poetry2nix to package an application
Cool, are you having any issues?
12:10:35
@xescure:matrix.orgxescure
In reply to @gaivs:matrix.org
Have anyone had problems installing pyqt? I'm not able to add pyqt5 to poetry at all, and while poetry add pyqt6 works, when I build it with nix, I get a bunch of missing Qt libraries
Have you tried adding random nativeBuildInputs?
12:12:58
@lunarequest:greyseal.eu@lunarequest:greyseal.eu
In reply to@gaivs:matrix.org
Cool, are you having any issues?
was having an issue, it seems to have resolved itself but had to run out before i could ask
12:18:39
@lunarequest:greyseal.eu@lunarequest:greyseal.eu* was having an issue, it seems to have resolved itself but had to run out before i could update/ask the question12:18:50
@gaivs:matrix.orggaivs
In reply to @xescure:matrix.org
Have you tried adding random nativeBuildInputs?

It seems to work for the hard coded versions of pyqt6 in the tests directory for pyqt6. I wonder why this is the case...

12:48:10
@xescure:matrix.orgxescure
In reply to @xescure:matrix.org

Has anyone managed to build PyMuPDF? It fails on version 1.20.2 with:

...
  PyMuPDF/setup.py:     _: /nix/store/qjk5lc0c7spkxbqvyzmil58plrvlkvaj-python3-3.10.13/bin/python3.10
  PyMuPDF/setup.py:     PIP_BUILD_TRACKER: /build/pip-build-tracker-88_3zr2k
  running clean
  'build/lib.linux-x86_64-cpython-310' does not exist -- can't clean it
  'build/bdist.linux-x86_64' does not exist -- can't clean it
  'build/scripts-3.10' does not exist -- can't clean it
Failed to build PyMuPDF
ERROR: Failed to build one or more wheels
15:16:15
@xescure:matrix.orgxescure
In reply to @xescure:matrix.org

Has anyone managed to build PyMuPDF? It fails on version 1.20.2 with:

...
  PyMuPDF/setup.py:     _: /nix/store/qjk5lc0c7spkxbqvyzmil58plrvlkvaj-python3-3.10.13/bin/python3.10
  PyMuPDF/setup.py:     PIP_BUILD_TRACKER: /build/pip-build-tracker-88_3zr2k
  running clean
  'build/lib.linux-x86_64-cpython-310' does not exist -- can't clean it
  'build/bdist.linux-x86_64' does not exist -- can't clean it
  'build/scripts-3.10' does not exist -- can't clean it
Failed to build PyMuPDF
ERROR: Failed to build one or more wheels
*
          pymupdf = super.pymupdf.overridePythonAttrs
          (
            old: {
              buildInputs = (old.buildInputs or [ ]) ++ [
                pkgs.freetype
                pkgs.harfbuzz
                pkgs.openjpeg
                pkgs.jbig2dec
                pkgs.libjpeg_turbo
                pkgs.gumbo
              ];
              nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [
                pkgs.pkg-config
                pkgs.swig
              ];
            }
          );
15:16:36
@xescure:matrix.orgxescureThis abomination solved my problems15:18:20
28 Feb 2024
@gaivs:matrix.orggaivsDo anyone know of any larger projects that use poetry2nix that I can use for inspiration? 10:26:59
@vengmark2:matrix.org@vengmark2:matrix.org
In reply to @gaivs:matrix.org
Do anyone know of any larger projects that use poetry2nix that I can use for inspiration?
Maybe not large per se, but this is the most complex poetry2nix setup I've built.
10:57:33
@aevoo:matrix.orgAevooHello everyone, I'm building containers using poetry2nix (and everything works, thanks for your work!) For debugging the application, I must systematically do a path mapping between the libs in the container and the path on the dev tool (/home/(...)/dev/lib1:/nix/store/ (...)lib1/lib/python...). I'm looking for a tip to generate an env with all my linked libs (a bit like with nix-shell) with a deterministic path (/run/current-system/dev/lib/python...?). Is there a trick to defining a list of python libs (and a destination path) to place in a common directory with poetry2nix?16:00:39
@aevoo:matrix.orgAevooMy first thought was that it's not really poetry2nix's job to do that. But since it generates the app startup scripts, I have to modify them after being created16:04:31
@aevoo:matrix.orgAevooI'm testing but it seems that mkPoetryEnv meets my needs16:21:09
@aevoo:matrix.orgAevoothis was simpler than expected => py_env = (entrypoint.python.withPackages (ps: [<my poetry app>]));18:18:55
29 Feb 2024
@matusf:matrix.orgmatusf joined the room.11:52:11
5 Mar 2024
@meditans:matrix.orgmeditans joined the room.03:45:01
@meditans:matrix.orgmeditans changed their display name from Carlo Nucera to meditans.03:45:20
@meditans:matrix.orgmeditans Hey, I'm trying to build the vllm package (an LLM inference server) with poetry2nix. I corrected the build-system related errors I could, but now I can't build safetensors 0.4.2 and I can't use an earlier version. The failure is due to maturin: I tried what I could in the issue tracker, and tried setting preferWheel to true, but I still can't getting this built. Before I open an issue, is there something I should try? I created a repo for reproducibility here: https://github.com/meditans/packaging-vllm 03:55:44
@meditans:matrix.orgmeditans

if you run the default shell in that flake, you will see the maturin error I'm talking about:

error: builder for '/nix/store/6bmn75r0iwlwwidng0am3s6qdgmh0jqk-python3.11-safetensors-0.4.2.drv' failed with exit code 2;
       last 10 log lines:
       >           ^^^^^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/sxr2igfkwhxbagri49b8krmcqz168sim-python3-3.11.8/lib/python3.11/importlib/__init__.py", line 126, in import_module
       >     return _bootstrap._gcd_import(name[level:], package, level)
       >            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       >   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
       > ModuleNotFoundError: No module named 'maturin'
       > 
       > 
       For full logs, run 'nix log /nix/store/6bmn75r0iwlwwidng0am3s6qdgmh0jqk-python3.11-safetensors-0.4.2.drv'.
error: 1 dependencies of derivation '/nix/store/z3yjz5pcr2j0fghlk78vngxl3bc16sda-python3-3.11.8-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/j2hn0kja87dqkw8043l7m56wjh0ny9yz-nix-shell-env.drv' failed to build
03:58:03
@meditans:matrix.orgmeditans * Hey, I'm trying to build the vllm package (an LLM inference server) with poetry2nix. I corrected the build-system related errors I could, but now I can't build safetensors 0.4.2 and I can't use an earlier version. The failure is due to maturin: I tried what I could in the issue tracker, and tried setting preferWheel to true, but I still can't get this built. Before I open an issue, is there something I should try? I created a repo for reproducibility here: https://github.com/meditans/packaging-vllm 03:59:20
@meditans:matrix.orgmeditans * Hey, I'm trying to build the vllm package (an LLM inference server) with poetry2nix. I corrected the build-system related errors I could, but now I can't build safetensors 0.4.2 and I can't use an earlier version. The failure is due to maturin: I tried the solutions I found in the issue tracker, and tried setting preferWheel to true, but I still can't get this built. Before I open an issue, is there something I should try? I created a repo for reproducibility here: https://github.com/meditans/packaging-vllm 03:59:43
@gaivs:matrix.orggaivsHave you tried adding matirin to your overrides? 09:47:17
@gaivs:matrix.orggaivs*maturin09:47:27
@meditans:matrix.orgmeditansYes, both as the maturin package in pkgs, and the python module maturin. That didn't change things (maybe I did something incorrectly though). I also tried adding the maturin hook, and still no progress.11:33:35
@gaivs:matrix.orggaivsStrange, I didn't really understand the overrides.nix file you have, but whenever I've had a similar error I've just followed the edgecases documentation in the poetry2nix repo, and it has worked11:50:51
@meditans:matrix.orgmeditansThanks for looking at the problem! Did your patches work even for the rust/python toolchain, like maturin? Can you share an example? I agree that for normal buildtools like setuptools it works alright.11:53:18
@gaivs:matrix.orggaivs Can't recall if I've come across any specific maturin problems yet. You should open a github issue, they state in the edgecases document that they need examples for maturin use, as it is pretty new 12:16:11

Show newer messages


Back to Room ListRoom Version: 6