Chaya icon indicating copy to clipboard operation
Chaya copied to clipboard

ImportError: numpy.core.multiarray failed to import

Open xerohackcom opened this issue 2 years ago • 2 comments

Recorded on 10th Feb 2022.

Error: RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd

Fixing this error using pip3 install -U numpy breaks the brisque calculation with the following error:

ValueError: the input array must have size 3 along channel_axis, got (834, 524)

**The steganography stuff works, but the analysis won't and the script will end with an error... ** f this numpy bs

xerohackcom avatar Feb 11 '22 12:02 xerohackcom

To Fix:

Solution 1

For RuntimeError , replace old numpy with new one using pip3 install -U numpy

Solution 2

ValueError is a known bug in image-quality package: https://github.com/ocampor/image-quality/issues/41#issuecomment-1011477402 . Let's hope their merge happens fast.

xerohackcom avatar Feb 12 '22 05:02 xerohackcom

Error fixed: Check out the new version here: https://github.com/BobEXP/ChayaV2

Thanks for feedback!

haxerzin avatar Oct 17 '22 09:10 haxerzin