[Liblas-devel] Problem to import liblas module in Python 2.7

Howard Butler hobu.inc at gmail.com
Tue Mar 12 13:46:28 PDT 2013


You may find https://github.com/grantbrown/laspy more useful and easier to use (also, it is pure-python).

HTH,

Howard


On Mar 12, 2013, at 3:34 PM, Alessandro Montaghi <alessandro.montaghi at gmail.com> wrote:

>  I am using libals from months with windows 64-bit and Python 2.7 but today i got this message
> 
> 
> from liblas import file lasfile
> 
> 
> Traceback (most recent call last):
> 
>   
> File "<interactive input>", line 1, in <module>
> 
>   
> File "C:\Python27\lib\site-packages\liblas\__init__.py", line 2, in <module>
> 
>     
> from core import
>  get_version
>   
> File "C:\Python27\lib\site-packages\liblas\core.py", line 138, in <module>
> 
>     las 
> = ctypes.CDLL(os.path.join(local_dlls, lib_name))
> 
>   
> File "C:\Python27\Lib\ctypes\__init__.py", line 365, in
>  __init__
>     
> self._handle = _dlopen(self._name, mode)
> WindowsError: [Error 193] %1 is not a valid Win32 application
> 
> 
> I unistalled liblas, reinstalled but nothing. I unistall all Python 2.7, all module but nothing.
> 
> 
> Thanks for your time because the use of libalas is essential for me
> 
> Thanks in advance
> Alessandro
> 
> -- 
> Alessandro Montaghi
> 
> just some stuff:
> 
> "Python where we can, C++ where we must"
> 
> Top 10 Things That Computer Programmers Hate:
>      1. Waking Up Early
>      2. Writing The F*cking Manual
>      3. Not Drinking Coffee
>      4. Reviewing Your Own Code 3 Months Later
>      5. codes from other programmers without comments
>      6. Error Checking
>      7. (Not) Backing Up
>      8. Debugging
>      9. Leaving The House When Important Findings Come Up 
>     10. Mathematic or Physics Formulas
> _______________________________________________
> Liblas-devel mailing list
> Liblas-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/liblas-devel



More information about the Liblas-devel mailing list