Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49535 > unrolled thread

Need explanation of this error

Started byprerit86@gmail.com
First post2013-07-01 02:13 -0700
Last post2013-07-01 03:44 -0700
Articles 4 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Need explanation of this error prerit86@gmail.com - 2013-07-01 02:13 -0700
    Re: Need explanation of this error Robert Kern <robert.kern@gmail.com> - 2013-07-01 10:23 +0100
    Re: Need explanation of this error Denis McMahon <denismfmcmahon@gmail.com> - 2013-07-01 09:33 +0000
      Re: Need explanation of this error prerit86@gmail.com - 2013-07-01 03:44 -0700

#49535 — Need explanation of this error

Fromprerit86@gmail.com
Date2013-07-01 02:13 -0700
SubjectNeed explanation of this error
Message-ID<b0e4a814-42df-4054-a3f2-9a41904d1ed2@googlegroups.com>
Hi,

I'm new to Python and trying to run a already written code. Can someone please explain the error below? And if possible, how do I resolve this?

Traceback (most recent call last):
  File "c:\Project_1\regression_1.py", line 7, in <module>
    from sklearn import metrics, cross_validation, linear_model
  File "c:\Python27\lib\site-packages\sklearn\metrics\__init__.py", line 31, in
<module>
    from . import cluster
  File "c:\Python27\lib\site-packages\sklearn\metrics\cluster\__init__.py", line
 8, in <module>
    from .supervised import adjusted_mutual_info_score
  File "c:\Python27\lib\site-packages\sklearn\metrics\cluster\supervised.py", li
ne 19, in <module>
    from .expected_mutual_info_fast import expected_mutual_information
  File "expected_mutual_info_fast.pyx", line 10, in init sklearn.metrics.cluster
.expected_mutual_info_fast (sklearn\metrics\cluster\expected_mutual_info_fast.c:
4886)
  File "c:\Python27\lib\site-packages\scipy\special\__init__.py", line 529, in <
module>
    from ._ufuncs import *
ImportError: DLL load failed: The specified module could not be found.

[toc] | [next] | [standalone]


#49536

FromRobert Kern <robert.kern@gmail.com>
Date2013-07-01 10:23 +0100
Message-ID<mailman.4057.1372670614.3114.python-list@python.org>
In reply to#49535
On 2013-07-01 10:13, prerit86@gmail.com wrote:
> Hi,
>
> I'm new to Python and trying to run a already written code. Can someone please explain the error below? And if possible, how do I resolve this?
>
> Traceback (most recent call last):
>    File "c:\Project_1\regression_1.py", line 7, in <module>
>      from sklearn import metrics, cross_validation, linear_model
>    File "c:\Python27\lib\site-packages\sklearn\metrics\__init__.py", line 31, in
> <module>
>      from . import cluster
>    File "c:\Python27\lib\site-packages\sklearn\metrics\cluster\__init__.py", line
>   8, in <module>
>      from .supervised import adjusted_mutual_info_score
>    File "c:\Python27\lib\site-packages\sklearn\metrics\cluster\supervised.py", li
> ne 19, in <module>
>      from .expected_mutual_info_fast import expected_mutual_information
>    File "expected_mutual_info_fast.pyx", line 10, in init sklearn.metrics.cluster
> .expected_mutual_info_fast (sklearn\metrics\cluster\expected_mutual_info_fast.c:
> 4886)
>    File "c:\Python27\lib\site-packages\scipy\special\__init__.py", line 529, in <
> module>
>      from ._ufuncs import *
> ImportError: DLL load failed: The specified module could not be found.

This particular module incorporates FORTRAN subroutines. My guess is that 
whoever compiled your scipy binary did it in such a way that the FORTRAN 
standard library was being linked in as a DLL instead of statically. This DLL is 
not present on your system. Windows is trying to find it, but failing.

How did you install scipy? If you used a prebuilt binary installer, can you 
please link to the exact one that you used?

Try using depends.exe to find out what DLL it is looking for.

   http://www.dependencywalker.com/

The file that you want to check in depends.exe:

   c:\Python27\lib\site-packages\scipy\special\_ufuncs.pyd

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

[toc] | [prev] | [next] | [standalone]


#49540

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2013-07-01 09:33 +0000
Message-ID<kqridg$oea$1@dont-email.me>
In reply to#49535
On Mon, 01 Jul 2013 02:13:50 -0700, prerit86 wrote:

> I'm new to Python and trying to run a already written code. Can someone
> please explain the error below? And if possible, how do I resolve this?

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

You're missing the dll that provides some function that you're trying to 
use.

-- 
Denis McMahon, denismfmcmahon@gmail.com

[toc] | [prev] | [next] | [standalone]


#49543

Fromprerit86@gmail.com
Date2013-07-01 03:44 -0700
Message-ID<e5a32176-5d58-41dc-a158-942c07a9f988@googlegroups.com>
In reply to#49540
Thanks!

Solved. I found the package that would resolve this dependency. It was numpy-MKL.

Downloaded from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pandas

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web