I wish to import liblas module in Python 2.7 on window 64bit. If I import the module with IDLE (Python GUI) I have no problem.
If I use PyScripter "PyScripter-v2.5.3-x64-Setup.exe" I get this error message.
>>> import liblas
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:Python27libsite-packagesliblas\__init__.py", line 2, in <module>
from core import get_version
File "C:Python27libsite-packagesliblascore.py", line 138, in <module>
las = ctypes.CDLL(os.path.join(local_dlls, lib_name))
File "C:Python27Libctypes\__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 193] %1 is not a valid Win32 application
I have used liblas in PyScripter many times without problem and right now I can load all standard modules (e.g.: numpy, GDAL, etc.), but tonight (I need to finish an analysis!!!) I have this inconvenience.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…