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


Groups > comp.lang.python > #49536

Re: Need explanation of this error

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.03; 'scipy': 0.05; 'binary': 0.07; 'importerror:': 0.07; 'init': 0.07; 'skip:" 60': 0.07; 'failed:': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'windows': 0.15; 'installer,': 0.16; 'kern': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:" 70': 0.16; 'underlying': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'library': 0.18; 'module': 0.19; 'trying': 0.19; 'possible,': 0.19; 'written': 0.21; 'import': 0.22; 'install': 0.23; 'load': 0.23; 'this?': 0.23; 'header:User-Agent:1': 0.23; 'error': 0.23; '31,': 0.24; 'dll': 0.24; 'interpret': 0.24; 'compiled': 0.26; 'skip:" 30': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'robert': 0.30; 'specified': 0.30; "i'm": 0.30; 'skip:( 50': 0.31; 'file': 0.32; 'run': 0.32; '(most': 0.33; 'guess': 0.33; 'could': 0.34; 'but': 0.35; 'found.': 0.36; 'skip:" 50': 0.36; 'hi,': 0.36; 'being': 0.38; 'skip:. 20': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'explain': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'received:org': 0.40; 'how': 0.40; 'skip:c 50': 0.60; 'new': 0.61; 'email addr:gmail.com': 0.63; 'such': 0.63; 'our': 0.64; 'subject:Need': 0.64; 'linked': 0.65; 'world': 0.66; 'believe': 0.68; 'subject:this': 0.83; 'eco': 0.84; 'terrible': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Robert Kern <robert.kern@gmail.com>
Subject Re: Need explanation of this error
Date Mon, 01 Jul 2013 10:23:21 +0100
References <b0e4a814-42df-4054-a3f2-9a41904d1ed2@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 213.1.240.226
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7
In-Reply-To <b0e4a814-42df-4054-a3f2-9a41904d1ed2@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4057.1372670614.3114.python-list@python.org> (permalink)
Lines 49
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1372670614 news.xs4all.nl 15913 [2001:888:2000:d::a6]:42063
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:49536

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web