Hi, I tried running your conversion script in order to convert from a .las to a .pnts. I ran:
py3dtiles convert 20170811bszn.las --out ./tmp/
But then I get an error from the Numba package which hints towards function variable type incongruency and the process stays stalled forever. The output was:
1.52 % in 0 sec [est. time left: 11 sec]OH NO. b'6'
Failed in nopython mode pipeline (step: nopython frontend)
Invalid use of Function(<built-in function getitem>) with argument(s) of type(s): (array(float32, 2d, C), array(float64, 1d, C))
* parameterized
In definition 0:
All templates rejected with literals.
In definition 1:
All templates rejected without literals.
In definition 2:
All templates rejected with literals.
In definition 3:
All templates rejected without literals.
In definition 4:
All templates rejected with literals.
In definition 5:
All templates rejected without literals.
In definition 6:
All templates rejected with literals.
In definition 7:
All templates rejected without literals.
In definition 8:
All templates rejected with literals.
In definition 9:
All templates rejected without literals.
In definition 10:
All templates rejected with literals.
In definition 11:
All templates rejected without literals.
In definition 12:
TypeError: unsupported array index type array(float64, 1d, C) in [array(float64, 1d, C)]
raised from /home/jgbs/.local/lib/python3.5/site-packages/numba/typing/arraydecl.py:71
In definition 13:
TypeError: unsupported array index type array(float64, 1d, C) in [array(float64, 1d, C)]
raised from /home/jgbs/.local/lib/python3.5/site-packages/numba/typing/arraydecl.py:71
This error is usually caused by passing an argument of a type that is unsupported by the named function.
[1] During: typing of intrinsic-call at /home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/points_grid.py (32)
File "../../../../.local/lib/python3.5/site-packages/py3dtiles/points/points_grid.py", line 32:
def _insert(cells_xyz, cells_rgb, aabmin, inv_aabb_size, cell_count, xyz, rgb, spacing, shift, force=False):
<source elided>
return xyz[notinserted], rgb[notinserted], needs_balance
^
This is not usually a problem with Numba itself but instead often caused by
the use of unsupported features or an issue in resolving types.
To see Python/NumPy features supported by the latest release of Numba visit:
http://numba.pydata.org/numba-doc/latest/reference/pysupported.html
and
http://numba.pydata.org/numba-doc/latest/reference/numpysupported.html
For more information about typing errors and how to debug them visit:
http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
If you think your code should work with Numba, please report the error message
and traceback, along with a minimal reproducer at:
https://github.com/numba/numba/issues/new
Traceback (most recent call last):
File "/home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/task/node_process.py", line 157, in run
result, data = _process(node, octree_metadata, name, filenames, queue, begin, log_file)
File "/home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/task/node_process.py", line 109, in _process
node.insert(node_catalog, octree_metadata.scale, data['xyz'], data['rgb'], halt_at_depth == 0)
File "/home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/node.py", line 73, in insert
self._split(node_catalog, scale)
File "/home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/node.py", line 155, in _split
self.insert(node_catalog, scale, xyz, rgb)
File "/home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/node.py", line 80, in insert
self.aabb[0], self.inv_aabb_size, xyz, rgb)
File "/home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/points_grid.py", line 62, in insert
int(self.cell_count[0] - 1).bit_length(), force)
File "/home/jgbs/.local/lib/python3.5/site-packages/numba/dispatcher.py", line 401, in _compile_for_args
error_rewrite(e, 'typing')
File "/home/jgbs/.local/lib/python3.5/site-packages/numba/dispatcher.py", line 344, in error_rewrite
reraise(type(e), e, None)
File "/home/jgbs/.local/lib/python3.5/site-packages/numba/six.py", line 668, in reraise
raise value.with_traceback(tb)
numba.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Invalid use of Function(<built-in function getitem>) with argument(s) of type(s): (array(float32, 2d, C), array(float64, 1d, C))
* parameterized
In definition 0:
All templates rejected with literals.
In definition 1:
All templates rejected without literals.
In definition 2:
All templates rejected with literals.
In definition 3:
All templates rejected without literals.
In definition 4:
All templates rejected with literals.
In definition 5:
All templates rejected without literals.
In definition 6:
All templates rejected with literals.
In definition 7:
All templates rejected without literals.
In definition 8:
All templates rejected with literals.
In definition 9:
All templates rejected without literals.
In definition 10:
All templates rejected with literals.
In definition 11:
All templates rejected without literals.
In definition 12:
TypeError: unsupported array index type array(float64, 1d, C) in [array(float64, 1d, C)]
raised from /home/jgbs/.local/lib/python3.5/site-packages/numba/typing/arraydecl.py:71
In definition 13:
TypeError: unsupported array index type array(float64, 1d, C) in [array(float64, 1d, C)]
raised from /home/jgbs/.local/lib/python3.5/site-packages/numba/typing/arraydecl.py:71
This error is usually caused by passing an argument of a type that is unsupported by the named function.
[1] During: typing of intrinsic-call at /home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/points_grid.py (32)
File "../../../../.local/lib/python3.5/site-packages/py3dtiles/points/points_grid.py", line 32:
def _insert(cells_xyz, cells_rgb, aabmin, inv_aabb_size, cell_count, xyz, rgb, spacing, shift, force=False):
<source elided>
return xyz[notinserted], rgb[notinserted], needs_balance
^
This is not usually a problem with Numba itself but instead often caused by
the use of unsupported features or an issue in resolving types.
To see Python/NumPy features supported by the latest release of Numba visit:
http://numba.pydata.org/numba-doc/latest/reference/pysupported.html
and
http://numba.pydata.org/numba-doc/latest/reference/numpysupported.html
For more information about typing errors and how to debug them visit:
http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
If you think your code should work with Numba, please report the error message
and traceback, along with a minimal reproducer at:
https://github.com/numba/numba/issues/new
OH NO. b'0'
Failed in nopython mode pipeline (step: nopython frontend)
Invalid use of Function(<built-in function getitem>) with argument(s) of type(s): (array(float32, 2d, C), array(float64, 1d, C))
* parameterized
In definition 0:
All templates rejected with literals.
In definition 1:
All templates rejected without literals.
In definition 2:
All templates rejected with literals.
In definition 3:
All templates rejected without literals.
In definition 4:
All templates rejected with literals.
In definition 5:
All templates rejected without literals.
In definition 6:
All templates rejected with literals.
In definition 7:
All templates rejected without literals.
In definition 8:
All templates rejected with literals.
In definition 9:
All templates rejected without literals.
In definition 10:
All templates rejected with literals.
In definition 11:
All templates rejected without literals.
In definition 12:
TypeError: unsupported array index type array(float64, 1d, C) in [array(float64, 1d, C)]
raised from /home/jgbs/.local/lib/python3.5/site-packages/numba/typing/arraydecl.py:71
In definition 13:
TypeError: unsupported array index type array(float64, 1d, C) in [array(float64, 1d, C)]
raised from /home/jgbs/.local/lib/python3.5/site-packages/numba/typing/arraydecl.py:71
This error is usually caused by passing an argument of a type that is unsupported by the named function.
[1] During: typing of intrinsic-call at /home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/points_grid.py (32)
File "../../../../.local/lib/python3.5/site-packages/py3dtiles/points/points_grid.py", line 32:
def _insert(cells_xyz, cells_rgb, aabmin, inv_aabb_size, cell_count, xyz, rgb, spacing, shift, force=False):
<source elided>
return xyz[notinserted], rgb[notinserted], needs_balance
^
This is not usually a problem with Numba itself but instead often caused by
the use of unsupported features or an issue in resolving types.
To see Python/NumPy features supported by the latest release of Numba visit:
http://numba.pydata.org/numba-doc/latest/reference/pysupported.html
and
http://numba.pydata.org/numba-doc/latest/reference/numpysupported.html
For more information about typing errors and how to debug them visit:
http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
If you think your code should work with Numba, please report the error message
and traceback, along with a minimal reproducer at:
https://github.com/numba/numba/issues/new
Traceback (most recent call last):
File "/home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/task/node_process.py", line 157, in run
result, data = _process(node, octree_metadata, name, filenames, queue, begin, log_file)
File "/home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/task/node_process.py", line 109, in _process
node.insert(node_catalog, octree_metadata.scale, data['xyz'], data['rgb'], halt_at_depth == 0)
File "/home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/node.py", line 73, in insert
self._split(node_catalog, scale)
File "/home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/node.py", line 155, in _split
self.insert(node_catalog, scale, xyz, rgb)
File "/home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/node.py", line 80, in insert
self.aabb[0], self.inv_aabb_size, xyz, rgb)
File "/home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/points_grid.py", line 62, in insert
int(self.cell_count[0] - 1).bit_length(), force)
File "/home/jgbs/.local/lib/python3.5/site-packages/numba/dispatcher.py", line 401, in _compile_for_args
error_rewrite(e, 'typing')
File "/home/jgbs/.local/lib/python3.5/site-packages/numba/dispatcher.py", line 344, in error_rewrite
reraise(type(e), e, None)
File "/home/jgbs/.local/lib/python3.5/site-packages/numba/six.py", line 668, in reraise
raise value.with_traceback(tb)
numba.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Invalid use of Function(<built-in function getitem>) with argument(s) of type(s): (array(float32, 2d, C), array(float64, 1d, C))
* parameterized
In definition 0:
All templates rejected with literals.
In definition 1:
All templates rejected without literals.
In definition 2:
All templates rejected with literals.
In definition 3:
All templates rejected without literals.
In definition 4:
All templates rejected with literals.
In definition 5:
All templates rejected without literals.
In definition 6:
All templates rejected with literals.
In definition 7:
All templates rejected without literals.
In definition 8:
All templates rejected with literals.
In definition 9:
All templates rejected without literals.
In definition 10:
All templates rejected with literals.
In definition 11:
All templates rejected without literals.
In definition 12:
TypeError: unsupported array index type array(float64, 1d, C) in [array(float64, 1d, C)]
raised from /home/jgbs/.local/lib/python3.5/site-packages/numba/typing/arraydecl.py:71
In definition 13:
TypeError: unsupported array index type array(float64, 1d, C) in [array(float64, 1d, C)]
raised from /home/jgbs/.local/lib/python3.5/site-packages/numba/typing/arraydecl.py:71
This error is usually caused by passing an argument of a type that is unsupported by the named function.
[1] During: typing of intrinsic-call at /home/jgbs/.local/lib/python3.5/site-packages/py3dtiles/points/points_grid.py (32)
File "../../../../.local/lib/python3.5/site-packages/py3dtiles/points/points_grid.py", line 32:
def _insert(cells_xyz, cells_rgb, aabmin, inv_aabb_size, cell_count, xyz, rgb, spacing, shift, force=False):
<source elided>
return xyz[notinserted], rgb[notinserted], needs_balance
^
This is not usually a problem with Numba itself but instead often caused by
the use of unsupported features or an issue in resolving types.
To see Python/NumPy features supported by the latest release of Numba visit:
http://numba.pydata.org/numba-doc/latest/reference/pysupported.html
and
http://numba.pydata.org/numba-doc/latest/reference/numpysupported.html
For more information about typing errors and how to debug them visit:
http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
If you think your code should work with Numba, please report the error message
and traceback, along with a minimal reproducer at:
https://github.com/numba/numba/issues/new
Could you shed any light on this error? Thank you.