From 60744f15edc3649b87b7354f4ef56ff69aa975ce Mon Sep 17 00:00:00 2001 From: Monalissaa <937315849@qq.com> Date: Fri, 8 May 2026 17:44:46 +0800 Subject: [PATCH] fix(packaging): add empty embodiedscan/__init__.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this file, `setup.py`'s `find_packages(exclude=...)` returns an empty list for the top-level `embodiedscan` directory (because it has no `__init__.py`), so a fresh `pip install -e .` registers no top-level package and `import embodiedscan` raises ModuleNotFoundError on modern setuptools (PEP 660 editable installs). Subpackages like `embodiedscan.visualization` etc. do have `__init__.py` and would be registered, but they only become reachable through the top-level namespace once the parent package is registered. Adding an empty `embodiedscan/__init__.py` is the minimal fix; an alternative would be to switch to `find_namespace_packages()` in setup.py. Reproducer: git clone https://github.com/OpenRobotLab/EmbodiedScan python -m venv /tmp/venv && source /tmp/venv/bin/activate pip install -e EmbodiedScan python -c "import embodiedscan" # → ModuleNotFoundError: No module named 'embodiedscan' After this fix, the same flow imports cleanly. Co-Authored-By: Claude Opus 4.7 (1M context) --- embodiedscan/__init__.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 embodiedscan/__init__.py diff --git a/embodiedscan/__init__.py b/embodiedscan/__init__.py new file mode 100644 index 0000000..e69de29