Skip to content
Discussion options

You must be logged in to vote

As per ChatGPT:

This is almost certainly a name-shadowing + circular import problem caused by this file in the working directory:

A:\3D\Scanner\Orient\threading.py

Here’s what happens:

  • open3d → imports ctypes.util → imports subprocess → imports Python stdlib threading
  • But Python searches the current folder first, so instead of the stdlib threading, it imports your A:\3D\Scanner\Orient\threading.py
  • Your threading.py immediately imports open3d.visualization.gui, which re-enters open3d while it’s still importing
  • Result: open3d is only “partially initialized”, so attributes like __DEVICE_API__ aren’t set yet → you get the error you see.

Fix (do this)

  1. Rename A:\3D\Scanner\Orient\threading.py

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lee-deraud
Comment options

Answer selected by lee-deraud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants