Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

open3d initialization failed Prompt:UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 4-5: invalid continuation byte

Open 979602732 opened this issue 10 months ago • 5 comments

Checklist

Steps to reproduce the issue

cmake --build . --config Release --target ALL_BUILD cmake --build . --config Release --target INSTALL cmake --build . --config Release --target install-pip-package python -c "import open3d; print(open3d)"

Error message

UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 4-5: invalid continuation byte

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "D:\anaconda3\lib\site-packages\open3d\__init__.py", line 73, in <module>
    from open3d.cuda.pybind import (core, camera, data, geometry, io,
ImportError: initialization failed
python-BaseException
[Open3D INFO] Memory Statistics: (Device) (#Malloc) (#Free)
[Open3D INFO] ---------------------------------------------
[Open3D WARNING] CPU:0: 9 7 --> 2 with 256 total bytes
[Open3D WARNING]     0x181b34c31b0 @ 128 bytes
[Open3D WARNING]     0x181b34c7260 @ 128 bytes
[Open3D INFO] ---------------------------------------------

Process finished with exit code 1

Open3D, Python and System information

- Operating system: Windows 11 64-bit  cuda 11.8 
- Python version: Python 3.10
- Open3D version: 0.18
- System architecture: x86 
- Is this a remote workstation: no
- How did you install Open3D: build from source
- Compiler version (if built from source):VS2019

Additional information

image

979602732 avatar Apr 17 '24 07:04 979602732

same issue with me

FishWoWater avatar Apr 28 '24 11:04 FishWoWater

I met the same issue. I tried the way in #6277, but it didn't work. Can anybody solve this problem?

snow1y avatar May 10 '24 02:05 snow1y

I finally avoid this problem by changing open3D version to 0.17.0 and changing python version to 3.9. Instead of 'utf-8' codec can't decode bytes in position 4-5: invalid continuation byte' I met before, I met the UnicodeDecodeError in #6277. And then I used the way in #6277, finally it worked.

snow1y avatar May 10 '24 06:05 snow1y

When I switched to version 0.17 it also compiled and installed fine, but the bug still exists in version 0.18

On Fri, May 10, 2024 at 2:17 PM ShenYang @.***> wrote:

I finally avoid this problem by changing open3D version to 0.17.0 and changing python version to 3.9. Instead of 'utf-8' codec can't decode bytes in position 4-5: invalid continuation byte' I met before, I met the UnicodeDecodeError in #6277 https://github.com/isl-org/Open3D/pull/6277. And then I used the way in #6277 https://github.com/isl-org/Open3D/pull/6277, finally it worked.

— Reply to this email directly, view it on GitHub https://github.com/isl-org/Open3D/issues/6756#issuecomment-2103941802, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASBK4J5DAB2CCVZXSJUOEBDZBRRANAVCNFSM6AAAAABGKWOJBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBTHE2DCOBQGI . You are receiving this because you authored the thread.Message ID: @.***>

979602732 avatar May 14 '24 10:05 979602732

I finally avoid this problem by changing open3D version to 0.17.0 and changing python version to 3.9. Instead of 'utf-8' codec can't decode bytes in position 4-5: invalid continuation byte' I met before, I met the UnicodeDecodeError in #6277. And then I used the way in #6277, finally it worked.

I also successfully compiled version 0.17.0 using this method~

Xiaohei-Luo avatar May 20 '24 06:05 Xiaohei-Luo