Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
979602732 opened this issue Apr 17, 2024 · 4 comments
Labels
build/install Build or installation issue

Comments

@979602732
Copy link

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 979602732 added the build/install Build or installation issue label Apr 17, 2024
@FishWoWater
Copy link

same issue with me

@snow1y
Copy link

snow1y commented May 10, 2024

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

@snow1y
Copy link

snow1y commented May 10, 2024

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.

@979602732
Copy link
Author

979602732 commented May 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build/install Build or installation issue
Projects
None yet
Development

No branches or pull requests

3 participants