hyiltiz / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

_ufuncs.pyd loading error #745

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am experiencing the following error with SciPy in Python(x,y) 2.7.6.1:

from scipy.special import _ufuncs
ImportError: DLL load failed: The specified module could not be found.

I am running Windows 7 Professional 64-bit, Intel processor.

I didn't experience it with the previous version I was using, 2.7.5.0. For the 
installation, I just first uninstalled version 2.7.5.0 and the installed the 
new one.

On a AMD-based machine (exactly same OS), both versions 2.7.5.0 and 2.7.6.1 
work well, so I think it has to do with the processor, or the MKL-aware 
compilation.

Any idea?

Thanks!
Davide

Original issue reported on code.google.com by dvide...@gmail.com on 23 Jul 2014 at 11:13

GoogleCodeExporter commented 9 years ago
This should be High Priority. Scipy integration routines are critical for 
scientific work. I did a clean install of python(xy)2.7.6.1 on a a 32-bit 
machine.  I had 2.7.3 and it was working okay for most things except IPython, 
so I decided to do a full install just to have a clean package.  After the 
installation I could not execute "from scipy import integrate". It traced back 
to missing _ufuncs in scipy/special.

Here's a copy of the directory and an execution of _testutils.py:

C:\Python27\Lib\SITE-P~1\scipy\special>dir
 Volume in drive C has no label.
 Volume Serial Number is 3098-FA31

 Directory of C:\Python27\Lib\SITE-P~1\scipy\special

08/12/2014  09:23 AM    <DIR>          .
08/12/2014  09:23 AM    <DIR>          ..
05/06/2014  02:16 PM            56,683 add_newdocs.py
08/12/2014  09:23 AM            53,482 add_newdocs.pyc
05/06/2014  02:16 PM            39,748 basic.py
05/06/2014  02:16 PM            42,961 generate_ufuncs.py
09/08/2013  03:07 PM             2,970 lambertw.py
05/06/2014  02:16 PM            23,759 orthogonal.py
11/16/2013  05:08 PM             4,306 setup.py
05/06/2014  02:27 PM           871,424 specfun.pyd
11/16/2013  05:08 PM             3,579 spfun_stats.py
08/12/2014  12:02 AM    <DIR>          tests
05/06/2014  02:16 PM            11,439 _testutils.py
05/06/2014  02:27 PM         1,264,128 _ufuncs.pyd
08/12/2014  09:29 AM           412,224 _ufuncs.pyx
08/12/2014  09:29 AM               359 _ufuncs_cxx.pxd
05/06/2014  02:28 PM            72,192 _ufuncs_cxx.pyd
08/12/2014  09:29 AM             2,785 _ufuncs_cxx.pyx
08/12/2014  09:29 AM               456 _ufuncs_cxx_defs.h
08/12/2014  09:29 AM            11,307 _ufuncs_defs.h
05/06/2014  02:16 PM            19,761 __init__.py
08/12/2014  12:19 AM            20,127 __init__.pyc
              19 File(s)      2,913,690 bytes
               3 Dir(s)  45,172,965,376 bytes free

C:\Python27\Lib\SITE-P~1\scipy\special>_testutils.py
Traceback (most recent call last):
  File "C:\Python27\Lib\SITE-P~1\scipy\special\_testutils.py", line 10, in <modu
le>
    import scipy.special as sc
  File "C:\Python27\lib\site-packages\scipy\special\__init__.py", line 546, in <
module>
    from ._ufuncs import *
ImportError: DLL load failed: The specified procedure could not be found.

C:\Python27\Lib\SITE-P~1\scipy\special>_

Original comment by bnett...@uu.edu on 12 Aug 2014 at 2:56

GoogleCodeExporter commented 9 years ago
Please install the runtime support from:
https://software.intel.com/sites/default/files/managed/15/44/w_ccompxe_redist_ms
i_2013_sp1.3.202.zip
https://software.intel.com/sites/default/files/managed/c3/93/w_fcompxe_redist_ms
i_2013_sp1.3.202.zip
http://www.microsoft.com/en-us/download/details.aspx?id=26368

If the issue is resolved I'll bundle the above in the next xy version.

Original comment by grizzly.nyo on 19 Aug 2014 at 1:20

GoogleCodeExporter commented 9 years ago

Original comment by grizzly.nyo on 19 Aug 2014 at 1:20

GoogleCodeExporter commented 9 years ago
Hi,

I'm also experiencing a similar problem. I'm trying to use the savemat and 
readmat from the scipy.io library.
When I run the attached code I get the following error

import scipy.io as sio
  File "C:\Python27\lib\site-packages\scipy\io\__init__.py", line 85, in <module>
    from .matlab import loadmat, savemat, whosmat, byteordercodes
  File "C:\Python27\lib\site-packages\scipy\io\matlab\__init__.py", line 13, in <module>
    from .mio import loadmat, savemat, whosmat
  File "C:\Python27\lib\site-packages\scipy\io\matlab\mio.py", line 12, in <module>
    from .miobase import get_matfile_version, docfiller
  File "C:\Python27\lib\site-packages\scipy\io\matlab\miobase.py", line 22, in <module>
    from scipy.misc import doccer
  File "C:\Python27\lib\site-packages\scipy\misc\__init__.py", line 47, in <module>
    from scipy.special import comb, factorial, factorial2, factorialk
  File "C:\Python27\lib\site-packages\scipy\special\__init__.py", line 546, in <module>
    from ._ufuncs import *

I have tried to do what grizzly.nyo posted in his second post without success.

I have also tried on a second computer and I don't face the same problem.

I have tried to use dependencyWalker to compare the missing DLL but there isn't 
any difference between the 2 computers.

Both machines run on windows 7 64 bits.

I would be very greatful for a solution!

Thanks 

James

Original comment by james.co...@gmail.com on 22 Aug 2014 at 8:44

Attachments:

GoogleCodeExporter commented 9 years ago
can you please dump your CPU info? If you installed the Intel links from above 
you should be able to run the command below:

cpuinfo -A

Original comment by grizzly.nyo on 25 Aug 2014 at 4:08

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi,

Thank you for your reply and for the time spent fixing my problem. I have 
attached the result given by cpuinfo. 

Thanks!

James

Original comment by james.co...@gmail.com on 26 Aug 2014 at 7:30

Attachments:

GoogleCodeExporter commented 9 years ago
I installed the 32 bit versions of links from comment #2. I am running Windows 
XP.  This is did NOT change the problem. Here is the dump from the cpuinfo -A 
command:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>cpuinfo -A
Intel(R) processor family information utility, Version 4.1 Update 3 Build 201312
05
Copyright (C) 2005-2013 Intel Corporation.  All rights reserved.

=====  Processor composition  =====
Processor name    : Intel(R) Core(TM)2  T5600
Packages(sockets) : 1
Cores             : 2
Processors(CPUs)  : 2
Cores per package : 2
Threads per core  : 1

=====  Processor identification  =====
Processor       Thread Id.      Core Id.        Package Id.
0               0               0               0
1               0               1               0
=====  Placement on packages  =====
Package Id.     Core Id.        Processors
0               0,1             0,1

=====  Cache sharing  =====
Cache   Size            Processors
L1      32  KB          no sharing
L2      2   MB          (0,1)

=====  Processor Signature  =====
 _________ ________ ______ ________ _______ __________
| xFamily | xModel | Type | Family | Model | Stepping |
|_________|________|______|________|_______|__________|
| 00      | 0      | 0    | 6      | f     | 6        |
|_________|________|______|________|_______|__________|

=====  Processor Feature Flags  =====
 ______ __________ ________ _________ ________ _____ _____ ______ _____ _______
_________ _____ ______ ______
| SSE3 | PCLMULDQ | DTES64 | MONITOR | DS-CPL | VMX | SMX | EIST | TM2 | SSSE3 |
 CNXT-ID | FMA | CX16 | xTPR |
|______|__________|________|_________|________|_____|_____|______|_____|_______|
_________|_____ ______|______|
| 1    | 0        | 1      | 1       | 1      | 1   | 0   | 1    | 1   | 1     |
 0       | 0   | 1    | 1    |
|______|__________|________|_________|________|_____|_____|______|_____|_______|
_________|_____|______|______|

 ______ ______ _____ ________ ________ ________ _______ ________ ______________
_____ _______ _________ _____ ______ ________
| PDCM | PCID | DCA | SSE4.1 | SSE4.2 | x2APIC | MOVBE | POPCNT | TSC-DEADLINE |
 AES | XSAVE | OSXSAVE | AVX | F16C | RDRAND |
|______|______|_____|________|________|________|_______|________|______________|
_____|_______|_________|_____|______|________|
| 1    | 0    | 0   | 0      | 0      | 0      | 0     | 0      | 0            |
 0   | 0     | 0       | 0   | 0    | 0      |
|______|______|_____|________|________|________|_______|________|______________|
_____|_______|_________|_____|______|________|

 _____ _____ ____ _____ _____ _____ _____ _____ _____ ______ _____ ______ _____
_____ ______ _____ ________
| FPU | VME | DE | PSE | TSC | MSR | PAE | MCE | CX8 | APIC | SEP | MTRR | PGE |
 MCA | CMOV | PAT | PSE-36 |
|_____|_____|____|_____|_____|_____|_____|_____|_____|______|_____|______|_____|
_____|______|_____|________|
| 1   | 1   | 1  | 1   | 1   | 1   | 1   | 1   | 1   | 1    | 1   | 1    | 1   |
 1   | 1    | 1   | 1      |
|_____|_____|____|_____|_____|_____|_____|_____|_____|______|_____|______|_____|
_____|______|_____|________|

 _____ _______ ____ ______ _____ ______ _____ ______ ____ _____ ____ _____
| PSN | CLFSH | DS | ACPI | MMX | FXSR | SSE | SSE2 | SS | HTT | TM | PBE |
|_____|_______|____|______|_____|______|_____|______|____|_____|____|_____|
| 0   | 1     | 1  | 1    | 1   | 1    | 1   | 1    | 1  | 1   | 1  | 1   |
|_____|_______|____|______|_____|______|_____|______|____|_____|____|_____|

 _________ ______ ______ ______ ______ ______ _________
| FSGBASE | BMI1 | AVX2 | SMEP | BMI2 | ERMS | INVPCID |
|_________|______|______|______|______|______|_________|
| 0       | 0    | 0    | 0    | 0    | 0    | 0       |
|_________|______|______|______|______|______|_________|

C:\>cpuinfo -A

Original comment by bnett...@uu.edu on 28 Aug 2014 at 5:50

GoogleCodeExporter commented 9 years ago
bnettles@uu.edu: Windows XP is no longer supported.

Original comment by grizzly.nyo on 30 Aug 2014 at 11:40

GoogleCodeExporter commented 9 years ago
Exactly as described in the comment #1, I have the follow error with SciPy in 
Python(x,y) 2.7.6.1:
from ._ufuncs import *
ImportError: DLL load failed: The specified procedure could not be found.

I am using Windows 7 (service pack 1) Professional 64-bit, Intel processor.

I have also installed the runtime as indicated in comment #2, but I have not 
yet solved this issue.

Any other idea?

Original comment by francesc...@gmail.com on 1 Sep 2014 at 12:32

GoogleCodeExporter commented 9 years ago
After my comment #10, here below other information dump from the cpuinfo -A 
command:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Francesco>cpuinfo -A
Intel(R) processor family information utility, Version 4.1 Update 3 Build 201312
05
Copyright (C) 2005-2013 Intel Corporation.  All rights reserved.

=====  Processor composition  =====
Processor name    : Intel(R) Core(TM) i7-4800MQ
Packages(sockets) : 1
Cores             : 4
Processors(CPUs)  : 8
Cores per package : 4
Threads per core  : 2

=====  Processor identification  =====
Processor       Thread Id.      Core Id.        Package Id.
0               0               0               0
1               1               0               0
2               0               1               0
3               1               1               0
4               0               2               0
5               1               2               0
6               0               3               0
7               1               3               0
=====  Placement on packages  =====
Package Id.     Core Id.        Processors
0               0,1,2,3         (0,1)(2,3)(4,5)(6,7)

=====  Cache sharing  =====
Cache   Size            Processors
L1      32  KB          (0,1)(2,3)(4,5)(6,7)
L2      256 KB          (0,1)(2,3)(4,5)(6,7)
L3      6   MB          (0,1,2,3,4,5,6,7)

=====  Processor Signature  =====
 _________ ________ ______ ________ _______ __________
| xFamily | xModel | Type | Family | Model | Stepping |
|_________|________|______|________|_______|__________|
| 00      | 3      | 0    | 6      | c     | 3        |
|_________|________|______|________|_______|__________|

=====  Processor Feature Flags  =====
 ______ __________ ________ _________ ________ _____ _____ ______ _____ _______
_________ _____ ______ ______
| SSE3 | PCLMULDQ | DTES64 | MONITOR | DS-CPL | VMX | SMX | EIST | TM2 | SSSE3 |
 CNXT-ID | FMA | CX16 | xTPR |
|______|__________|________|_________|________|_____|_____|______|_____|_______|
_________|_____ ______|______|
| 1    | 1        | 1      | 1       | 1      | 1   | 1   | 1    | 1   | 1     |
 0       | 1   | 1    | 1    |
|______|__________|________|_________|________|_____|_____|______|_____|_______|
_________|_____|______|______|

 ______ ______ _____ ________ ________ ________ _______ ________ ______________
_____ _______ _________ _____ ______ ________
| PDCM | PCID | DCA | SSE4.1 | SSE4.2 | x2APIC | MOVBE | POPCNT | TSC-DEADLINE |
 AES | XSAVE | OSXSAVE | AVX | F16C | RDRAND |
|______|______|_____|________|________|________|_______|________|______________|
_____|_______|_________|_____|______|________|
| 1    | 1    | 0   | 1      | 1      | 1      | 1     | 1      | 1            |
 1   | 1     | 1       | 1   | 1    | 1      |
|______|______|_____|________|________|________|_______|________|______________|
_____|_______|_________|_____|______|________|

 _____ _____ ____ _____ _____ _____ _____ _____ _____ ______ _____ ______ _____
_____ ______ _____ ________
| FPU | VME | DE | PSE | TSC | MSR | PAE | MCE | CX8 | APIC | SEP | MTRR | PGE |
 MCA | CMOV | PAT | PSE-36 |
|_____|_____|____|_____|_____|_____|_____|_____|_____|______|_____|______|_____|
_____|______|_____|________|
| 1   | 1   | 1  | 1   | 1   | 1   | 1   | 1   | 1   | 1    | 1   | 1    | 1   |
 1   | 1    | 1   | 1      |
|_____|_____|____|_____|_____|_____|_____|_____|_____|______|_____|______|_____|
_____|______|_____|________|

 _____ _______ ____ ______ _____ ______ _____ ______ ____ _____ ____ _____
| PSN | CLFSH | DS | ACPI | MMX | FXSR | SSE | SSE2 | SS | HTT | TM | PBE |
|_____|_______|____|______|_____|______|_____|______|____|_____|____|_____|
| 0   | 1     | 1  | 1    | 1   | 1    | 1   | 1    | 1  | 1   | 1  | 1   |
|_____|_______|____|______|_____|______|_____|______|____|_____|____|_____|

 _________ ______ ______ ______ ______ ______ _________
| FSGBASE | BMI1 | AVX2 | SMEP | BMI2 | ERMS | INVPCID |
|_________|______|______|______|______|______|_________|
| 1       | 1    | 1    | 1    | 1    | 1    | 1       |
|_________|______|______|______|______|______|_________|

Original comment by francesc...@gmail.com on 19 Sep 2014 at 8:02

GoogleCodeExporter commented 9 years ago
"Windows XP is no longer supported."---that's non-responsive to the issue at 
hand because the Windows 7 people are having the same problem.  The package was 
working at one point.

Maybe (just maybe) you could use the data I gave to help solve the problem.

Original comment by bnett...@uu.edu on 24 Sep 2014 at 4:21

GoogleCodeExporter commented 9 years ago
I have found the solution to fix the problem on my computer.

I used a dll fixer which then fixed/downloaded "LIBMMD.DLL". This dll should be 
placed in 

C:\Windows\SysWOW64

I hope this will solve the problem on other computer too!

Original comment by james.co...@gmail.com on 27 Sep 2014 at 1:54

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for your suggestion! This dll solved the problem also on my computer

Original comment by francesc...@gmail.com on 17 Nov 2014 at 6:18

GoogleCodeExporter commented 9 years ago
I have been having similar issues and had been working around it for months 
(basically by ignoring SciPy).   Thanks James for finding and posting the 
solution!

Original comment by paul.so...@gmail.com on 9 Dec 2014 at 3:52

GoogleCodeExporter commented 9 years ago
Thanks! This solved my problem as well.

Original comment by jask5...@gmail.com on 24 Feb 2015 at 10:02