imgaug icon indicating copy to clipboard operation
imgaug copied to clipboard

ImportError: No module named 'imgaug.augmentables'; 'imgaug' is not a package

Open xuweidongkobe opened this issue 4 years ago • 8 comments

I am run the demo with boundingbox, but get the error, How can I solve the problem?

xuweidongkobe avatar Nov 11 '19 09:11 xuweidongkobe

Are you sure you are on the most recent version? Maybe it is outdated. pip install --upgrade git+https://github.com/aleju/imgaug.git

aleju avatar Nov 11 '19 19:11 aleju

@aleju I am on the most recent version(0.3.0),but it still not work.

xuweidongkobe avatar Nov 12 '19 01:11 xuweidongkobe

What stacktrace do you get? Do you have a file or folder in your project that is called imgaug and might confuse import?

aleju avatar Nov 13 '19 17:11 aleju

@aleju thank you ,the problem has been solved.

xuweidongkobe avatar Nov 14 '19 09:11 xuweidongkobe

You need use python3 instead of python2.

Kongsea avatar Jul 07 '20 08:07 Kongsea

You might also face this error if you also have albumentations library installed, because of the following old imgaug dependency version they have locked: https://github.com/albumentations-team/albumentations/blob/eb4c16330e7bb7a5797f4e26799c892c864e7d27/setup.py#L8

GokulNC avatar Jul 09 '20 14:07 GokulNC

@xuweidongkobe Could you share with us how you solved the problem? Facing the same error.

PavelNikov avatar Nov 25 '20 08:11 PavelNikov

when you test the code, do not use the name imgaug.py

9p15p avatar Apr 29 '22 12:04 9p15p