Hello, I tried to use imgaug with python 3.6.7 on Ubuntu 16.04. After I use pip to install imgaug and try to import it in ipython. It raised an error called module 'numpy' has no attribute 'random' as follows.
I guess the reason is that the imgaug library has a 'random.py' and when python tried to find the 'random.py' that belongs to numpy, the conflict appears.
After I rename the 'random.py' file under the 'imgaug' folder, the error disappears and it can be successfully imported. Nevertheless, when I tried to import sub folder like 'import imgaug.augmenters', it raised an error called ModuleNotFoundError: No module named 'imgaug.augmenters': 'imgaug' is not a package. Actually, when I print imgaug now it point to imgaug.py not init.py.
Hello, I tried to use imgaug with python 3.6.7 on Ubuntu 16.04. After I use pip to install imgaug and try to import it in ipython. It raised an error called module 'numpy' has no attribute 'random' as follows.
I guess the reason is that the imgaug library has a 'random.py' and when python tried to find the 'random.py' that belongs to numpy, the conflict appears. After I rename the 'random.py' file under the 'imgaug' folder, the error disappears and it can be successfully imported. Nevertheless, when I tried to import sub folder like 'import imgaug.augmenters', it raised an error called ModuleNotFoundError: No module named 'imgaug.augmenters': 'imgaug' is not a package. Actually, when I print imgaug now it point to imgaug.py not init.py.
I really hope someone can help me! Thank you!