DLL not found on Windows7 / Canopy32 using binary installer

26 views
Skip to first unread message

David Brown

unread,
May 7, 2014, 8:40:01 PM5/7/14
to sciki...@googlegroups.com
I have been trying to install scikit-fmm  using the binary installer for windows.  The installer does not report errors.  When I try to import skfmm, I get an error:

      1 import numpy as np
----> 2 from cfmm import cFastMarcher
      3 from sys import float_info
      4 
      5 FAR, NARROW, FROZEN, MASK = 0, 1, 2, 3

ImportError: DLL load failed: The specified module could not be found. 

I have tried to compile from source, but see compiler errors in my (untested) setup after installing MS VS C++ Express 2008.

The compiler error messages are shown below.  Any tips on getting scikit-fmm to install on Windows / Canopy (32 bit) are appreciated.

-- David

_______________________________

c:\build\scikit-fmm\skfmm\base_marcher.h(9) : error C2871: 'std' : a namespace w
ith this name does not exist

c:\build\scikit-fmm\skfmm\base_marcher.h(11) : error C2065: 'numeric_limits' : u ndeclared identifier

c:\build\scikit-fmm\skfmm\base_marcher.h(11) : error C2062: type 'double' unexpected

c:\build\scikit-fmm\skfmm\base_marcher.h(11) : error C2039: 'epsilon' : is not a member of '`global namespace''

c:\build\scikit-fmm\skfmm\base_marcher.h(12) : error C2065: 'numeric_limits' : undeclared identifier

c:\build\scikit-fmm\skfmm\base_marcher.h(12) : error C2062: type 'double' unexpected

c:\build\scikit-fmm\skfmm\base_marcher.h(12) : error C2039: 'max' : is not a member of '`global namespace''

skfmm\fmm.cpp(226) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)

skfmm\fmm.cpp(240) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)

skfmm\fmm.cpp(257) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)

error: Command "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iskfmm -IC:\(edited...)" failed with exit status 2

_______________________________

Jason Furtney

unread,
May 8, 2014, 9:26:38 AM5/8/14
to sciki...@googlegroups.com
David,

Thanks for the email. I have not seen this error after installing the
windows executable, but I have seen this error when trying to "import
skfmm" from inside the skfmm source directory.

I have not used Canopy, it may install packages in a different
location? This website:
https://support.enthought.com/entries/23389761-Installing-packages-into-Canopy-User-Python-from-the-OS-command-line
has some information, but it does not say if Windows binary installers
work with Canopy.

Last week I merged a pull request from Ján Margeta which fixes the
build for MSVC:
https://github.com/scikit-fmm/scikit-fmm/commit/f2e0563ccf2c9d981578c990f3d856c665e48a1d
so you could try building the latest code from github.

If all else fails, you should be able to open the installer executable
with 7-zip and extract the dll (.pyd file) and try to install it
manually?

Let me know how you get on,
Jason
> --
> You received this message because you are subscribed to the Google Groups
> "scikit-fmm" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to scikit-fmm+...@googlegroups.com.
> To post to this group, send email to sciki...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/scikit-fmm/9790407d-fd00-4577-bfd6-c1fb28b8ea58%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
--
Jason K. Furtney
Itasca Consulting Group
111 3rd Ave. South, Suite 450
Minneapolis, MN 55401 USA
(612) 371-4711

David Brown

unread,
May 9, 2014, 10:59:28 PM5/9/14
to sciki...@googlegroups.com
Jason,

Thanks very much for the suggestions and link.  I have not sorted out why the binary installer does not work for me, but I was able to compile from source now using the latest scikit-fmm version from Github.  It works as expected now on the 32-bit Canopy python 2.7 setup. Your timing is great!


David
Reply all
Reply to author
Forward
0 new messages