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

Cannot import open3D that I build in windows #6273

Closed
3 tasks done
dlwns97 opened this issue Jul 19, 2023 · 3 comments
Closed
3 tasks done

Cannot import open3D that I build in windows #6273

dlwns97 opened this issue Jul 19, 2023 · 3 comments
Labels
build/install Build or installation issue

Comments

@dlwns97
Copy link

dlwns97 commented Jul 19, 2023

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

@dlwns97 dlwns97 added the build/install Build or installation issue label Jul 19, 2023
@dlwns97
Copy link
Author

dlwns97 commented Jul 24, 2023

I've done same way with your link but still I got same error,
image

I replace original source file and build.

  1. Replace cpp/pybind/data/dataset.cpp
  2. cmake -DPYTHON_EXECUTABLE= -S source_dir -B build_dir
  3. cmake --build . --config Release --target ALL_BUILD
  4. cmake --build . --config Release --target INSTALL
  5. (Activate virtual env) cmake --build . --config Release --target install-pip-package
  6. cmake --build . --config Release --target python-package
  7. cmake --build . --config Release --target pip-package
  8. And pip install .whl file in virtual env
  9. But still got same error....

Do you have any recommend way?

@dlwns97
Copy link
Author

dlwns97 commented Jul 24, 2023

I think we should also change Open3D/cpp/open3d/data/Dataset.h
image

Dataset.h also has some wrong characters that you show in #6277

@ssheorey
Copy link
Member

This is fixed in master with the recent PR #6277 from @MisakaQwQ

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

2 participants