<div dir="ltr">I delete everything (also python27 directory) and re-install from zero the <span style="color:rgb(68,68,68);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-size:13px;line-height:17px;background-color:rgb(250,250,250)"> "libLAS-1.7.0.win-amd64-py2.7.exe" from </span><font color="#444444" face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="line-height:17px"><a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy">http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy</a></span></font> </div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 12, 2013 at 10:17 PM, Howard Butler <span dir="ltr"><<a href="mailto:hobu.inc@gmail.com" target="_blank">hobu.inc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Using laspy should not mean rewriting a ton of scripts. The interface of laspy is almost exactly the same as liblas (on purpose).<br>
<br>
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.<br>
<span class="HOEnZb"><font color="#888888"><br>
Howard<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Mar 12, 2013, at 3:52 PM, Alessandro Montaghi <<a href="mailto:alessandro.montaghi@gmail.com">alessandro.montaghi@gmail.com</a>> wrote:<br>
<br>
> Thnak Howard,<br>
><br>
> but using laspy means rewrite one year of scripts. It much easier to fix how "today" i can not load liblas.<br>
><br>
> Please, do you have some solution?<br>
><br>
> Alessandro<br>
><br>
><br>
> On Tue, Mar 12, 2013 at 9:46 PM, Howard Butler <<a href="mailto:hobu.inc@gmail.com">hobu.inc@gmail.com</a>> wrote:<br>
> You may find <a href="https://github.com/grantbrown/laspy" target="_blank">https://github.com/grantbrown/laspy</a> more useful and easier to use (also, it is pure-python).<br>
><br>
> HTH,<br>
><br>
> Howard<br>
><br>
><br>
> On Mar 12, 2013, at 3:34 PM, Alessandro Montaghi <<a href="mailto:alessandro.montaghi@gmail.com">alessandro.montaghi@gmail.com</a>> wrote:<br>
><br>
> > I am using libals from months with windows 64-bit and Python 2.7 but today i got this message<br>
> ><br>
> ><br>
> > from liblas import file lasfile<br>
> ><br>
> ><br>
> > Traceback (most recent call last):<br>
> ><br>
> ><br>
> > File "<interactive input>", line 1, in <module><br>
> ><br>
> ><br>
> > File "C:\Python27\lib\site-packages\liblas\__init__.py", line 2, in <module><br>
> ><br>
> ><br>
> > from core import<br>
> > get_version<br>
> ><br>
> > File "C:\Python27\lib\site-packages\liblas\core.py", line 138, in <module><br>
> ><br>
> > las<br>
> > = ctypes.CDLL(os.path.join(local_dlls, lib_name))<br>
> ><br>
> ><br>
> > File "C:\Python27\Lib\ctypes\__init__.py", line 365, in<br>
> > __init__<br>
> ><br>
> > self._handle = _dlopen(self._name, mode)<br>
> > WindowsError: [Error 193] %1 is not a valid Win32 application<br>
> ><br>
> ><br>
> > I unistalled liblas, reinstalled but nothing. I unistall all Python 2.7, all module but nothing.<br>
> ><br>
> ><br>
> > Thanks for your time because the use of libalas is essential for me<br>
> ><br>
> > Thanks in advance<br>
> > Alessandro<br>
> ><br>
> > --<br>
> > Alessandro Montaghi<br>
> ><br>
> > just some stuff:<br>
> ><br>
> > "Python where we can, C++ where we must"<br>
> ><br>
> > Top 10 Things That Computer Programmers Hate:<br>
> > 1. Waking Up Early<br>
> > 2. Writing The F*cking Manual<br>
> > 3. Not Drinking Coffee<br>
> > 4. Reviewing Your Own Code 3 Months Later<br>
> > 5. codes from other programmers without comments<br>
> > 6. Error Checking<br>
> > 7. (Not) Backing Up<br>
> > 8. Debugging<br>
> > 9. Leaving The House When Important Findings Come Up<br>
> > 10. Mathematic or Physics Formulas<br>
> > _______________________________________________<br>
> > Liblas-devel mailing list<br>
> > <a href="mailto:Liblas-devel@lists.osgeo.org">Liblas-devel@lists.osgeo.org</a><br>
> > <a href="http://lists.osgeo.org/mailman/listinfo/liblas-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/liblas-devel</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Alessandro Montaghi<br>
><br>
> just some stuff:<br>
><br>
> "Python where we can, C++ where we must"<br>
><br>
> Top 10 Things That Computer Programmers Hate:<br>
> 1. Waking Up Early<br>
> 2. Writing The F*cking Manual<br>
> 3. Not Drinking Coffee<br>
> 4. Reviewing Your Own Code 3 Months Later<br>
> 5. codes from other programmers without comments<br>
> 6. Error Checking<br>
> 7. (Not) Backing Up<br>
> 8. Debugging<br>
> 9. Leaving The House When Important Findings Come Up<br>
> 10. Mathematic or Physics Formulas<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font face="verdana, sans-serif">Alessandro Montaghi</font><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">just some stuff:</font></div>
<div><font face="verdana, sans-serif"><br></font></div><div><span style="line-height:18px"><font face="verdana, sans-serif" color="#000000"><i>"Python where we can, C++ where we must"</i></font></span><font face="verdana, sans-serif"><br>
</font></div><div><font face="verdana, sans-serif"><br></font></div><font face="verdana, sans-serif"><b>Top 10 Things That Computer Programmers Hate:</b></font><div><span style="font-family:verdana,sans-serif"> 1. Waking Up Early</span><font face="verdana, sans-serif"><br>
2. Writing The F*cking Manual<br> 3. Not Drinking Coffee<br> 4. Reviewing Your Own Code 3 Months Later<br> 5. codes from other programmers without comments<br> 6. Error Checking<br> 7. (Not) Backing Up<br>
8. Debugging<br> 9. Leaving The House When Important Findings Come Up <br> 10. Mathematic or Physics Formulas</font></div></div>
</div>