Skip to content
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 doesn't build due to missing dependencies #61936

Closed
CMCDragonkai opened this issue May 23, 2019 · 4 comments
Closed

pythonPackages.imgaug doesn't build due to missing dependencies #61936

CMCDragonkai opened this issue May 23, 2019 · 4 comments

Comments

@CMCDragonkai
Copy link
Member

Issue description

With the latest update on imgaug. The 0.2.8 version doesn't build.

It reports an error from 19.03:

Collecting opencv-python (from imgaug==0.2.8)
  Could not find a version that satisfies the requirement opencv-python (from imgaug==0.2.8) (from versions: )
No matching distribution found for opencv-python (from imgaug==0.2.8)

From master it reports:

Collecting imageio (from imgaug==0.2.8)
  Could not find a version that satisfies the requirement imageio (from imgaug==0.2.8) (from versions: )
No matching distribution found for imageio (from imgaug==0.2.8)
builder for '/nix/store/1v8vnhvc2z475czbywmnn231nz7chh09-python3.7-imgaug-0.2.8.drv' failed with exit code 1
error: build of '/nix/store/1v8vnhvc2z475czbywmnn231nz7chh09-python3.7-imgaug-0.2.8.drv' failed

Steps to reproduce

Try building pkgs.python3Packages.imgaug from the latest master/19.03.

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

 - system: `"x86_64-linux"`
 - host os: `Linux 4.19.31, Formbay ML 2 A, noversion`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.2`
 - channels(root): `""`
 - nixpkgs: `/etc/nixos/nixpkgs`
@CMCDragonkai
Copy link
Member Author

CMCDragonkai commented Aug 13, 2019

The imgaug needs to be fixed.

It needs some extra dependencies:

    install_requires=["scipy", "scikit-image>=0.14.2", "numpy>=1.15.0", "six", "imageio", "Pillow", "matplotlib",
                      "Shapely", "opencv-python-headless"],

This means we need to add in imageio and Shapely. Also 0.2.9 has changed to using opencv-python-headless.

The quickest way to deal with this is to rollback to 0.2.6, because at that point it actually worked.

aleju/imgaug#379 - I'm asking whether the library can just work with the normal opencv3 bindings.

@CMCDragonkai CMCDragonkai changed the title [19.03] Imgaug doesn't build due to unable to find opencv-python Imgaug doesn't build due to missing dependencies Aug 13, 2019
@CMCDragonkai CMCDragonkai changed the title Imgaug doesn't build due to missing dependencies pythonPackages.imgaug doesn't build due to missing dependencies Aug 13, 2019
@CMCDragonkai
Copy link
Member Author

@FRidh are we able to rollback to 0.2.6 until we figure out a proper way of building 0.2.9 and addressing the opencv issue?

@CMCDragonkai
Copy link
Member Author

According to aleju/imgaug#379 (comment) if we patch the package to refer to the official opencv bindings then everything should work.

@CMCDragonkai
Copy link
Member Author

This is now fixed in: #67494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant