Import albumentations fails

Using PyCharm on Win 10.
Python file contains only this import:

import albumentations as A

From the PyCharm Terminal window I have installed Albumentation with the command
‘pip install albumentations’
(also tried ‘pip install albumentations==0.0.10’)
The pip install gives no errors, but when I run the file, it gives the lengthy error message below.
There seems to be a problem relating to something called _rolling_ball_cy.
Tried to ‘pip install opencv-rolling-ball’ with no change.

Help would be most appreciated!


Traceback (most recent call last):
File “C:\PycharmProjects\A_test\”, line 9, in
import albumentations as A
File “C:\PycharmProjects\A_test\venv\lib\site-packages\”, line 8, in
from .imgaug.transforms import *
File “C:\PycharmProjects\A_test\venv\lib\site-packages\albumentations\imgaug\”, line 1, in
from imgaug import augmenters as iaa
File “C:\PycharmProjects\A_test\venv\lib\site-packages\”, line 9, in
import imgaug.augmentables as augmentables
File “C:\PycharmProjects\A_test\venv\lib\site-packages\imgaug\”, line 8, in
from imgaug.augmentables.segmaps import *
File “C:\PycharmProjects\A_test\venv\lib\site-packages\imgaug\augmentables\”, line 12, in
from …augmenters import blend as blendlib
File “C:\PycharmProjects\A_test\venv\lib\site-packages\imgaug\”, line 21, in
from imgaug.augmenters.segmentation import *
File “C:\PycharmProjects\A_test\venv\lib\site-packages\imgaug\augmenters\”, line 21, in
import skimage.segmentation
File “C:\PycharmProjects\A_test\venv\lib\site-packages\skimage\”, line 3, in
from .active_contour_model import active_contour
File “C:\PycharmProjects\A_test\venv\lib\site-packages\skimage\segmentation\”, line 4, in
from …filters import sobel
File “C:\PycharmProjects\A_test\venv\lib\site-packages\skimage\”, line 4, in
from .edges import (sobel, sobel_h, sobel_v,
File “C:\PycharmProjects\A_test\venv\lib\site-packages\skimage\filters\”, line 18, in
from …restoration.uft import laplacian
File “C:\PycharmProjects\A_test\venv\lib\site-packages\skimage\”, line 13, in
from .rolling_ball import rolling_ball, ball_kernel, ellipsoid_kernel
File “C:\PycharmProjects\A_test\venv\lib\site-packages\skimage\restoration\”, line 3, in
from ._rolling_ball_cy import apply_kernel, apply_kernel_nan
ImportError: DLL load failed while importing _rolling_ball_cy: The specified module could not be found.

Process finished with exit code 1

This issue seems to be specific to the albumentations package, so I would recommend to create an issue in their repository. :wink:

1 Like

Hello, I got the same error as you had. Did you find out how to fix it? Thank you