| 3 Jan 2024 |
| medliviz joined the room. | 21:00:38 |
| 4 Jan 2024 |
medliviz | Hi there, I am facing issues with resolving system dependencies for python packages....can I get advice on what's the best way to solve this | 09:50:01 |
| 5 Jan 2024 |
K900 | Can I get a sanity check/merge on https://github.com/nix-community/poetry2nix/pull/1486 ? | 07:41:13 |
K900 | setuptools-scm-git-archive is basically completely dead now | 07:41:22 |
K900 | There's a few other places it's added unconditionally but I don't know those well enough to tell if it's good | 07:41:45 |
| 8 Jan 2024 |
| TyberiusPrime (smilodon inopinatus) joined the room. | 11:54:06 |
TyberiusPrime (smilodon inopinatus) | Hey y'all. Can somebody explain me why
projectDir = self;
overrides =
overrides.withDefaults
(
self: super: {
rpds-py = super.rpds-py.overridePythonAttrs (old: {
cargoDeps = pkgs.rustPlatform.fetchCargoTarball {
inherit (old) src;
name = "${old.pname}-${old.version}";
sha256 = "sha256-aPmi/5UAkePf4nC2zRjXY+vZsAsiRZqTHyZZmzFHcqE=";
};
});
}
);
};
``` fails to evaluate cargoDeps at all,
but when I switch the order in the list of withDefaults in poetry2nix/defaults.nix, then that works (and a test case starts failing :) ).
I presume it's because the default override does replace the cargoDeps with it's own (failing) lookup.
But then I gotta ask: Shouldn't it be the other way around in withDefaults, so I can actually override those defaults?
| 11:57:59 |
TyberiusPrime (smilodon inopinatus) | * Hey y'all. Can somebody explain me why
projectDir = self;
overrides =
overrides.withDefaults
(
self: super: {
rpds-py = super.rpds-py.overridePythonAttrs (old: {
cargoDeps = pkgs.rustPlatform.fetchCargoTarball {
inherit (old) src;
name = "${old.pname}-${old.version}";
sha256 = "sha256-aPmi/5UAkePf4nC2zRjXY+vZsAsiRZqTHyZZmzFHcqE=";
};
});
}
);
};
```
fails to evaluate cargoDeps at all,
but when I switch the order in the list of withDefaults in poetry2nix/defaults.nix, then that works (and a test case starts failing :) ).
I presume it's because the default override does replace the cargoDeps with it's own (failing) lookup.
But then I gotta ask: Shouldn't it be the other way around in withDefaults, so I can actually override those defaults?
| 12:00:59 |
TyberiusPrime (smilodon inopinatus) | * Hey y'all. Can somebody explain me why
projectDir = self;
overrides =
overrides.withDefaults
(
self: super: {
rpds-py = super.rpds-py.overridePythonAttrs (old: {
cargoDeps = pkgs.rustPlatform.fetchCargoTarball {
inherit (old) src;
name = "${old.pname}-${old.version}";
sha256 = "sha256-aPmi/5UAkePf4nC2zRjXY+vZsAsiRZqTHyZZmzFHcqE=";
};
});
}
);
};
fails to evaluate cargoDeps at all,
but when I switch the order in the list of withDefaults in poetry2nix/defaults.nix, then that works (and a test case starts failing :) ).
I presume it's because the default override does replace the cargoDeps with it's own (failing) lookup.
But then I gotta ask: Shouldn't it be the other way around in withDefaults, so I can actually override those defaults?
| 12:01:08 |
| 9 Jan 2024 |
| matthewcroughan changed their display name from matthewcroughan - Linux 6.7 When to matthewcroughan. | 08:37:45 |
gaivs | Anyone here had problems using open3d for visualisation? I keep getting libGL error: failed to load driver: swrast | 10:34:52 |
gaivs | Adding ${pkgs.libGL}/lib to LD_LIBRARY, together with /run/opengl-driver/lib, /run/opengl-driver-32/lib, ${pkgs.cudatoolkit}/lib and ${pkgs.cudatoolkit.lib}/lib solves it for me | 13:00:52 |
| Daniel Salazar joined the room. | 14:43:55 |
Daniel Salazar | Hey guys!
I got the following error when trying to build mkdocs-material = "9.5.3" via mkPoetryEnv:
building '/nix/store/hzkkcrsy2w377l72icarcj8m7nngapml-python3.11-mkdocs-material-9.5.3.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing wheel setup hook
Using wheelUnpackPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Running phase: unpackPhase
Executing wheelUnpackPhase
Finished executing wheelUnpackPhase
Running phase: patchPhase
sed: can't read pyproject.toml: No such file or directory
/nix/store/sf52i9wcklk5i5f2w15p0kng8dq3qqwx-stdenv-darwin/setup: line 140: pop_var_context: head of shell_variables not a function context
error: builder for '/nix/store/hzkkcrsy2w377l72icarcj8m7nngapml-python3.11-mkdocs-material-9.5.3.drv' failed with exit code 2;
| 14:46:19 |
Daniel Salazar | * Hey guys!
I got the following error when trying to build mkdocs-material = "9.5.3" via mkPoetryEnv:
building '/nix/store/hzkkcrsy2w377l72icarcj8m7nngapml-python3.11-mkdocs-material-9.5.3.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing wheel setup hook
Using wheelUnpackPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Running phase: unpackPhase
Executing wheelUnpackPhase
Finished executing wheelUnpackPhase
Running phase: patchPhase
sed: can't read pyproject.toml: No such file or directory
/nix/store/sf52i9wcklk5i5f2w15p0kng8dq3qqwx-stdenv-darwin/setup: line 140: pop_var_context: head of shell_variables not a function context
error: builder for '/nix/store/hzkkcrsy2w377l72icarcj8m7nngapml-python3.11-mkdocs-material-9.5.3.drv' failed with exit code 2;
Has anyone struggled with this before?
| 14:46:41 |
Daniel Salazar | I created an issue for this as it looks like it has to do with a current default override: https://github.com/nix-community/poetry2nix/issues/1491#issuecomment-1883606631 | 19:00:45 |
| 10 Jan 2024 |
| csyn joined the room. | 04:55:47 |
| 12 Jan 2024 |
plato | I'm getting this error:
error: attribute 'pkg-config' missing
at /nix/store/dnafa7yi5rz6nnfb7xiwbkdlr673lyqs-source/overrides/default.nix:949:32:
948| (old.buildInputs or [ ])
949| ++ [ pkgs.hdf5 self.pkg-config ]
| ^
950| ++ lib.optional mpiSupport mpi
Did you mean pkgconfig?
| 09:33:11 |
plato | Any idea why? | 09:33:14 |
plato | I've updated to the latest nixpkgs/poetry2nix in my flake. | 09:38:16 |
plato | Also, has anyone got fastapi with pydantic 2 to work with poetry2nix? | 10:12:29 |
| 13 Jan 2024 |
| @lenny:flipdot.org joined the room. | 19:08:57 |
@lenny:flipdot.org | hey I'm currently trying to build https://github.com/continuedev/continue/tree/main/server with poetry2nix but I've been running into a lot of problems. I've already overidden a lot of deps, my progress is here: https://gist.github.com/LennyPenny/7a853eff0e79f61827b851413bb23844
now I'm faced with the error:
last 10 log lines:
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/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'
>
> ERROR Backend 'maturin' is not available.
For full logs, run 'nix log /nix/store/69sqdqpi5k5g7kl78h9g4ji3bcicydl3-python3.11-continuedev-0.1.101.drv'.
any one got an idea on how to proceed?
| 19:52:42 |
| felipeggmarcelino joined the room. | 19:54:26 |
| 14 Jan 2024 |
@vengmark2:matrix.org | In reply to @lenny:flipdot.org
hey I'm currently trying to build https://github.com/continuedev/continue/tree/main/server with poetry2nix but I've been running into a lot of problems. I've already overidden a lot of deps, my progress is here: https://gist.github.com/LennyPenny/7a853eff0e79f61827b851413bb23844
now I'm faced with the error:
last 10 log lines:
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/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'
>
> ERROR Backend 'maturin' is not available.
For full logs, run 'nix log /nix/store/69sqdqpi5k5g7kl78h9g4ji3bcicydl3-python3.11-continuedev-0.1.101.drv'.
any one got an idea on how to proceed?
You might need to preferWheels = true; in that case. See docs. | 20:36:11 |
| 15 Jan 2024 |
| virtu left the room. | 13:44:21 |
ˈt͡sɛːzaɐ̯ | In reply to @lenny:flipdot.org
hey I'm currently trying to build https://github.com/continuedev/continue/tree/main/server with poetry2nix but I've been running into a lot of problems. I've already overidden a lot of deps, my progress is here: https://gist.github.com/LennyPenny/7a853eff0e79f61827b851413bb23844
now I'm faced with the error:
last 10 log lines:
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/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'
>
> ERROR Backend 'maturin' is not available.
For full logs, run 'nix log /nix/store/69sqdqpi5k5g7kl78h9g4ji3bcicydl3-python3.11-continuedev-0.1.101.drv'.
any one got an idea on how to proceed?
Sounds like poetry2nix not knowing that something needs maturin to build. You can add build inputs to specific packages like this. (Somewhere, there's even decent documentation on this, but I can't find it.) | 14:19:37 |
ˈt͡sɛːzaɐ̯ | Ah, here… https://github.com/nix-community/poetry2nix/blob/e0b44e9e2d3aa855d1dd77b06f067cd0e0c3860d/docs/edgecases.md | 14:21:12 |
@lenny:flipdot.org | yea but there it doesnt say which of the dependecies actualily requires maturin | 18:18:58 |
@lenny:flipdot.org | so I dunno which to patch qq (as you can see I already patched a lot) | 18:19:15 |