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

ModuleNotFound error #934

Closed
omigeot opened this issue Nov 10, 2022 · 1 comment · Fixed by #935
Closed

ModuleNotFound error #934

omigeot opened this issue Nov 10, 2022 · 1 comment · Fixed by #935

Comments

@omigeot
Copy link

omigeot commented Nov 10, 2022

On master, can't currently run ns-train. Fails with ModuleNotFoundError: No module named 'nerfstudio.data.datamanagers.base_datamanager'; 'nerfstudio.data.datamanagers' is not a package

To Reproduce

Just run ns-train nerfacto without any argument (or really just ns-train). It fails with the following backtrace :

  File "/home/olivier/Work/_AI/nerfstudio/env/bin/ns-train", line 5, in <module>
    from scripts.train import entrypoint
  File "/home/olivier/Work/_AI/nerfstudio/env/lib/python3.10/site-packages/scripts/train.py", line 48, in <module>
    from nerfstudio.configs import base_config as cfg
  File "/home/olivier/Work/_AI/nerfstudio/env/lib/python3.10/site-packages/nerfstudio/configs/base_config.py", line 185, in <module>
    from nerfstudio.pipelines.base_pipeline import VanillaPipelineConfig
  File "/home/olivier/Work/_AI/nerfstudio/env/lib/python3.10/site-packages/nerfstudio/pipelines/base_pipeline.py", line 40, in <module>
    from nerfstudio.data.datamanagers.base_datamanager import (
ModuleNotFoundError: No module named 'nerfstudio.data.datamanagers.base_datamanager'; 'nerfstudio.data.datamanagers' is not a package
@brentyi
Copy link
Collaborator

brentyi commented Nov 10, 2022

If you pip install -e . instead of pip install . it seems to work, looks like the datamanagers/ directory is missing an __init__.py: https://github.com/nerfstudio-project/nerfstudio/tree/main/nerfstudio/data/datamanagers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants