Closed mtrsk closed 4 years ago
Hey the problem is unrelated the nixpkgs issue you linked. In your case mach-nix failed while resolving the requirements, it did not yet start building stuff.
Your requirements.txt simply seems to be invalid or not resolvable. You can probably fix that by removing some restrictions. For example replace grpcio==1.33.1
with grpcio
. Or better remove grpcio from the requirements at all, because it seems to be already specified by some other top level dependency (hence the conflict). In general, stating top level requirements only instead of flat requirements should be preferred. See https://github.com/DavHau/mach-nix/issues/140
Despite it not being the problem here, patching can be done for example by using simplified overrides
Example: _.tensorflow.patches = [ ./your.patch ]
or _.tensorflow.patches.add = [ ./your.patch ]
Thanks, I'll try your solution. This requirements.txt
was generated via poetry export --without-hashes -f requirements.txt -o requirements-dev.txt
, from a poetry-based project.
Hey the problem is unrelated the nixpkgs issue you linked. In your case mach-nix failed while resolving the requirements, it did not yet start building stuff.
Your requirements.txt simply seems to be invalid or not resolvable. You can probably fix that by removing some restrictions. For example replace
grpcio==1.33.1
withgrpcio
. Or better remove grpcio from the requirements at all, because it seems to be already specified by some other top level dependency (hence the conflict). In general, stating top level requirements only instead of flat requirements should be preferred. See #140Despite it not being the problem here, patching can be done for example by using simplified overrides Example:
_.tensorflow.patches = [ ./your.patch ]
or_.tensorflow.patches.add = [ ./your.patch ]
It worked, thanks!
I'm gonna close this issue, I'm currently trying match.nix
in some work projects to see if I can introduce nix there.
I'm gonna close this issue, I'm currently trying
match.nix
in some work projects to see if I can introduce nix there.
Sounds exciting. Let me know if there are any more problems or missing features.
And this seems to be related to this issue.
This is my current
shell.nix
:and
requirements.txt
:Which causes the following error:
Any hints if it's possible to use match.nix to patch tensorflow or this has to done via an overlay on nixpkgs?