pypcd icon indicating copy to clipboard operation
pypcd copied to clipboard

Multiple errors while trying to convert binary pcd file

Open boazMgm opened this issue 3 years ago • 1 comments

Hi, I'm using Pypcd version 0.1.1 and python 3.8.10 I'm getting multiple errors while trying to parse binary pcd file (Nuscenes). the one I'm stuck on right now is in line 282: if ln.startswith('DATA'): TypeError: startswith first arg must be bytes or a tuple of bytes, not str

The code should understand if this is binary or ascii. Is there a solution or a different version that works? btw, just changing to (b'DATA') will create an error in a different place.

Thanks

boazMgm avatar Feb 21 '23 14:02 boazMgm

Hi, since this project seems to be inactive I forked it and started to improve some things. You can find it here: pypcd-imp or install it right away via pip install pypcd_imp. If the issue is still present there feel free to reopen it in my repo and I will try to fix it.

joelosw avatar Mar 20 '23 09:03 joelosw