Skip to content

Cannot import open3D that I build in windows #6273

@dlwns97

Description

@dlwns97

Checklist

Steps to reproduce the issue

I first cloned Open3D by (I did't move to Open3D by cd):

git clone https://github.com/isl-org/Open3D.git

Then, I build Open3D (on windows x64, with no CUDA (I failed to build with cuda)) with:

mkdir build
cd build
cmake -DPYTHON_EXECUTABLE=<python path> -S source_dir -B build_dir
cmake --build . --config Release --target INSTALL

Then, I activate my virtual env with:

python -m venv myenv
myenv\Scripts\Activate.ps1 (with powershell)

Install packages with:

cmake --build . --config Release --target install-pip-package
cmake --build . --config Release --target python-package
cmake --build . --config Release --target pip-package

Finally I did install open3d with:

pip install mydirectory\build\lib\python_package\pip_package\open3d-0.17.0+6ddbcd5c9-cp39-cp39-win_amd64.whl

I observe that open3d is installed with version 0.17.0+6ddbcd5c9

Error message

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mydirectory\AppData\Local\Programs\Python\Python39\lib\site-packages\open3d\__init__.py", line 93, in <module>
    from open3d.cpu.pybind import (core, camera, data, geometry, io, pipelines,
ImportError: RedwoodIndoorLivingRoom1: PyType_Ready failed (UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9c in position 262: invalid start byte)!

Open3D, Python and System information

- Operating system: Windows 11 64-bit
- Python version: Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)]
- Open3D version: 0.17.0+6ddbcd5c9 (I can't see open3D version with python but I got result by pip list)
- System architecture: arm64
- Is this a remote workstation?: no, I did on windows powershell
- How did you install Open3D?: pip build from source
- Compiler version (if built from source): cmake version 3.27.0 (I don't have idea about compiler sorry)

Additional information

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    build/installBuild or installation issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions