"The specified module could not be found" error
I just installed Liblas with pip:
C:\Users\Geri>pip install liblas Requirement already satisfied (use --upgrade to upgrade): liblas in c:\python27\arcgis10.2\lib\site-packages Requirement already satisfied (use --upgrade to upgrade): setuptools in c:\python27\arcgis10.2\lib\site-packages (from liblas) when I want to import a module, I got the following:
>>> import liblas Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Python27\ArcGIS10.2\lib\site-packages\liblas\__init__.py", line 2, in <module> from core import get_version File "C:\Python27\ArcGIS10.2\lib\site-packages\liblas\core.py", line 136, in <module> las = ctypes.CDLL(lib_name) File "C:\Python27\ArcGIS10.2\Lib\ctypes\__init__.py", line 365, in __init__ self._handle = _dlopen(self._name, mode) WindowsError: [Error 126] The specified module could not be found Please, help
My solution was for liblas.dll and liblas_c.dll be in the DLL folder in all my python instances (I have python 2.7 in ArcGIS, OSGeo4W and WinPython).
I found the dll in C:\Python27\ArcGIS10.2\DLLs after I tried every method that I could find to install the liblas package (WinPython control panel, pip and install using exe from https://pypi.python.org /pypi/libLAS/1.6.0 ).
I have not tried using liblas through OSGeo4w, since I'm not sure where to put the DLLs (I put them in the C:/OSgeo4w64/bin , but that didn’t help), and the list of Command_line OSgeo4w packages in the installer tells me that liblas is not available. I also ensured that C:/OSgeo4w64/bin is in my path (as it was the sentence above and elsewhere) ... not sure if that helped.
Now everything is working fine.