haluhak149 / pythonxy

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

DLL load fail when importing NumPy #736

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If relevant, please answer to the following questions:
1. What version of Python(x,y) have you installed?
I am using Python(x,y) version 2.7.6. I installed all of the plugins. I did not 
customize the installation directories, and installed Python(x,y) in the 
default path, for all users. I have Windows 8.1 64 bit, and installed it as an 
administrator. I did not delete any python related content before installing. 
The error occurs whenever I attempt to import NumPy. The expected output should 
be nothing, yet I receive the following:

+++ LOGGING STARTED +++
PythonInterface 2.73.05 (SDK 2.10) - Sandy Barbour 2005
PythonInterface.ini file found
Before Py_Initialize()
After Py_Initialize()
Python Version 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit 
(AMD64)] running on the win32 platform
Before Modules Init
Using path below for script path
D:/X-Plane 10 Demo/Resources/plugins/PythonScripts
After Modules Init
Searching for Standard Scripts
Script 'PI_xJoyMap.py' successfully loaded.
Traceback (most recent call last):
  File "D:/X-Plane 10 Demo/Resources/plugins/PythonScripts\PI_SRPSHTTS.py", line 24, in <module>
    from numpy import *
  File "C:\Python27\lib\site-packages\numpy\__init__.py", line 153, in <module>
    from . import add_newdocs
  File "C:\Python27\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "C:\Python27\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
    from .type_check import *
  File "C:\Python27\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "C:\Python27\lib\site-packages\numpy\core\__init__.py", line 6, in <module>
    from . import multiarray
ImportError: DLL load failed: %1 is not a valid Win32 application.
'PI_SRPSHTTS' failed to load

This is using Sandy Barbour's X-Plane Python Interface plugin, to interface 
Python and X-Plane v10, a flight simulator. PI_SRPSHTTS.py stands for Python 
Interface/Science Research Program - Simply Hacked Together Translation System, 
a digital flight control system I am writing based on some work NASA and the 
Air Force did in the '80s.

Original issue reported on code.google.com by Alasdhai...@gmail.com on 22 May 2014 at 4:21

GoogleCodeExporter commented 9 years ago
The above dump is from the 64bit python probably installed previously. 32bit & 
64 bit version do not mix.

"I did not delete any python related content before installing.".

Please uninstall and delete any other python 2.7 installs before install 
Python(x,y).

Original comment by grizzly.nyo on 23 May 2014 at 10:02