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

Alessandro Montaghi alessandro.montaghi at gmail.com
Tue Mar 12 14:20:31 PDT 2013


I delete everything (also python27 directory) and re-install from zero
the  "libLAS-1.7.0.win-amd64-py2.7.exe"
from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy


On Tue, Mar 12, 2013 at 10:17 PM, Howard Butler <hobu.inc at gmail.com> wrote:

> Using laspy should not mean rewriting a ton of scripts. The interface of
> laspy is almost exactly the same as liblas (on purpose).
>
> The error you are seeing is usually from the DLL being invalid for some
> reason. Did it get overwritten? Sorry I cannot provide any more
> information, but I am merely guessing given the error message and knowing
> nothing about your setup.
>
> Howard
>
>
> On Mar 12, 2013, at 3:52 PM, Alessandro Montaghi <
> alessandro.montaghi at gmail.com> wrote:
>
> > Thnak Howard,
> >
> > but using laspy means rewrite one year of scripts. It much easier to fix
> how "today" i can not load liblas.
> >
> > Please, do you have some solution?
> >
> > Alessandro
> >
> >
> > On Tue, Mar 12, 2013 at 9:46 PM, Howard Butler <hobu.inc at gmail.com>
> wrote:
> > 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
> >
> >
> >
> >
> > --
> > 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
>
>


-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/liblas-devel/attachments/20130312/764b7313/attachment.html>


More information about the Liblas-devel mailing list