DLL issue for sima 1.2.0

95 views
Skip to first unread message

Yu Peng

unread,
May 7, 2015, 5:00:17 PM5/7/15
to sima-...@googlegroups.com
>>> import sima
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "G:\python2\lib\site-packages\sima\__init__.py", line 6, in <module>
    from sima.imaging import ImagingDataset
  File "G:\python2\lib\site-packages\sima\imaging.py", line 33, in <module>
    import sima.misc
  File "G:\python2\lib\site-packages\sima\misc\__init__.py", line 21, in <module>
    from skimage import transform as tf
  File "G:\python2\lib\site-packages\skimage\transform\__init__.py", line 1, in <module>
    from ._hough_transform import (hough_ellipse, hough_line,
ImportError: DLL load failed: The specified module could not be found.

I have no idea what's going on here. The skimage module actually works well.

Yu Peng

unread,
May 8, 2015, 1:57:59 AM5/8/15
to sima-...@googlegroups.com
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import sima

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import sima
  File "G:\python2\lib\site-packages\sima\__init__.py", line 6, in <module>
    from sima.imaging import ImagingDataset
  File "G:\python2\lib\site-packages\sima\imaging.py", line 33, in <module>
    import sima.misc
  File "G:\python2\lib\site-packages\sima\misc\__init__.py", line 21, in <module>
    from skimage import transform as tf
  File "G:\python2\lib\site-packages\skimage\transform\__init__.py", line 3, in <module>
    from .hough_transform import hough_circle, hough_line_peaks
  File "G:\python2\lib\site-packages\skimage\transform\hough_transform.py", line 3, in <module>
    from .. import measure, morphology
  File "G:\python2\lib\site-packages\skimage\morphology\__init__.py", line 7, in <module>
    from .watershed import watershed
  File "G:\python2\lib\site-packages\skimage\morphology\watershed.py", line 30, in <module>
    from ..filters import rank_order
  File "G:\python2\lib\site-packages\skimage\filters\__init__.py", line 13, in <module>
    from . import rank
  File "G:\python2\lib\site-packages\skimage\filters\rank\__init__.py", line 1, in <module>
    from .generic import (autolevel, bottomhat, equalize, gradient, maximum, mean,
  File "G:\python2\lib\site-packages\skimage\filters\rank\generic.py", line 24, in <module>
    from . import generic_cy
ImportError: DLL load failed: The specified module could not be found.
>>> 


This is the new error.

Patrick Kaifosh

unread,
May 8, 2015, 10:39:13 AM5/8/15
to sima-...@googlegroups.com
Try opening a python shell and just running this line.


>>> from skimage import transform as tf

What is the output? If it fails, then there is a problem with your skimage installation. How did you install it? What Windows python installation are you using?

Yu Peng

unread,
May 8, 2015, 12:37:30 PM5/8/15
to sima-...@googlegroups.com
This goes smoothly, no error. I'm using the newest skimage package, Python 2.7.9,windows 8, I also tried to use Ubuntu Linux to install sima in my Linux system, it works well.

Yu Peng

unread,
May 8, 2015, 12:40:39 PM5/8/15
to sima-...@googlegroups.com
I installed sima using pip, as well as downloading the sima from website and use cmd Python install. Both installed it successfully.
I think the problem may be the skimage package lacking some subfunctions. I reinstalled it once but did not work.

Patrick Kaifosh

unread,
May 9, 2015, 9:42:28 AM5/9/15
to sima-...@googlegroups.com
This is confusing, because the line in sima that is triggering the sklearn error is:
>>> from skimage import transform as tf
But you tell me that when you run this line separately, then there are no problems. Is it possible that you have multiple versions of sklearn installed? Can you use pdb to check which version of sklearn is being used by sima, and make sure that is the same one as works properly when you run the import command from command line?

Are you using Anaconda, WinPython, Python(x,y), or just plain CPython on Windows?
Reply all
Reply to author
Forward
0 new messages