New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pythonPackages.imgaug: init at 0.2.6 #43720
Conversation
Looks like a regression in Python 3 (maybe |
dask | ||
]; | ||
|
||
doCheck = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include the motivation for disabling tests as a comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is due to segmentation fault. And there being no tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but you can't know that when looking at the expression.
meta = with stdenv.lib; { | ||
homepage = https://github.com/aleju/imgaug; | ||
description = "Image augmentation for machine learning experiments"; | ||
license = licenses.mit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maintainership
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done!
Added everything. Except reason for no tests. |
Added the comment about the segmentation fault for the test. |
I've moved |
Regarding |
sha256 = "1wy8ydkqq0jrwxwdv04q89n3gwsr9pjaspsbw26ipg5a5lnhb9c2"; | ||
}; | ||
|
||
buildInputs = [ dask ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as I mentioned in another PR, this needs to be removed
@FRidh Just did it. |
@FRidh Is this ready to be merged? |
@CMCDragonkai There's a merge conflict. Please resolve that. @GrahamcOfBorg build python2.pkgs.imgaug python3.pkgs.imgaug |
six | ||
]; | ||
|
||
# disable tests due to python 3 segmentation fault |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there are no tests, that's what the comment should say.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dotlambda imgaug has tests, it just doesn't work due to python 3 segmentation fault. #43720 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current imgaug.tar.gz does not bundle any tests in the source archive so there are no tests to run anyway.
If I understand it correctly, there are tests but not in the tarball. The comment could read something like No tests in PyPI tarball
.
The segfault likely happens because the tests are missing.
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Failure on x86_64-linux (full log) Partial log (click to expand)
|
@dotlambda Merge conflicts resolved by rebasing PR on master. |
@dotlambda Comment changed. |
@GrahamcOfBorg eval |
Success on x86_64-linux (full log) Attempted: python2.pkgs.imgaug, python3.pkgs.imgaug Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: python2.pkgs.imgaug, python3.pkgs.imgaug Partial log (click to expand)
|
Motivation for this change
Added pythonPackages.imgaug. Should work on python 3.6 and python 2.
One thing I didn't understand is why
nix_run_setup test
would result in a segmentation fault. The currentimgaug.tar.gz
does not bundle any tests in the source archive so there are no tests to run anyway. But can there be a better error than just segmentation fault?Also while
imgaug
doesn't requiredask
, thescikit-image
when installed bysetup.py
appears to requiredask
now.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)