Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Deprecated argument causes ValueError in ICP related .pxi files #358

Open
ilkedemir opened this issue Apr 23, 2020 · 3 comments
Open

Deprecated argument causes ValueError in ICP related .pxi files #358

ilkedemir opened this issue Apr 23, 2020 · 3 comments

Comments

@ilkedemir
Copy link

The deprecated argument in the following line causes a ValueError when running test_registration.py. The update is discussed here in the release notes.

transf = np.empty((4, 4), dtype=np.float32, order='F')
ValueError: Non-string object detected for the array ordering. Please pass in 'C', 'F', 'A', or 'K' instead

The corresponding lines across different ICP files:

transf = np.empty((4, 4), dtype=np.float32, order='fortran')

transf = np.empty((4, 4), dtype=np.float32, order='fortran')

transf = np.empty((4, 4), dtype=np.float32, order='fortran')

If you change 'fortran' to 'F', tests pass.

System:

  • Mac OS 10.15.1
  • Python 3.7.6
  • PCL 1.9.1_8
  • numpy 1.18.1
@wedesoft
Copy link

wedesoft commented Nov 20, 2020

Thanks a lot, this saved my day.
Had this error when trying to invoke pcl.IterativeClosestPoint:

E   ValueError: order must be one of 'C', 'F', 'A', or 'K' (got 'fortran')

@jerryzhai26
Copy link

Thanks a lot, this saved my day.
Had this error when trying to invoke pcl.IterativeClosestPoint:

E   ValueError: order must be one of 'C', 'F', 'A', or 'K' (got 'fortran')

i have the same error when trying to invoke pcl.IterativeClosestPoint, and i have changed 'fortran' to 'F' in IterativeClosestPoint_180.pxi, but it didn't work.
do i need to re-install python-pcl after change 'fortran' to 'F'?
or is there any other place to change ?

@linzhenpl07
Copy link

How to solve this problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants