ubarsc / pylidar

A set of Python modules which makes it easy to write lidar processing code in Python
http://www.pylidar.org
GNU General Public License v3.0
15 stars 11 forks source link

LiDARFormatDriverNotFound error #14

Closed jaimebayes closed 2 years ago

jaimebayes commented 3 years ago

Hi,

I am trying to open a lidar file (LAZ and LAS formats), but the function spatial.readLidarPoints can not read it. The file is not corrupted because it open correctly on ArcMap and QGIS. Do you have any advice or suggestion? Thanks in advance, JL

`/usr/local/lib/python3.7/dist-packages/pylidar/lidarformats/generic.py in getReaderForLiDARFile(fname, mode, controls, userClass, verbose) 625 # none worked 626 msg = 'Cannot open LiDAR file %s' % fname --> 627 raise LiDARFormatDriverNotFound(msg) 628 629 def getLidarFileInfo(fname, verbose=False):

LiDARFormatDriverNotFound: Cannot open LiDAR file ./data/lidar_data.las`

gillins commented 3 years ago

Have you installed lastools and set the LASTOOLS_ROOT variable before install as described here: http://www.pylidar.org/en/latest/#source ?

jaimebayes commented 3 years ago

Hi,

I have lastools in my machine, and it works fine; but I am trying to run pylidar from the cloud (I mean, as a Colab notebook). Does it work on it? or Do I have to run it locally on my machine only?

JL

gillins commented 3 years ago

You'll need to have lastools on the cloud also which may be hard to do. I don't know anything about Colab sorry. Perhaps stick with your local machine for now?

jaimebayes commented 3 years ago

Thanks Mr. Gillins, I will try on my machine as you recommend me, and keep trying to run it at colab, maybe I can find a fix in the meantime. Have a good day, JL