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

ModuleNotFoundError: No module named '_gridencoder' ninja build stopped #7

Open
CWGH221 opened this issue Nov 28, 2022 · 2 comments
Open

Comments

@CWGH221
Copy link

CWGH221 commented Nov 28, 2022

When running the unconstrained Latent-NeRF for text-to-3D, demo command (below), I get a runtime error during the tilegrid encoding

run command: python3 -m scripts.train_latent_nerf --config_path demo_configs/latent_nerf/sand_castle.yaml

Error:

import _gridencoder as _backend
ModuleNotFoundError: No module named '_gridencoder'
During handling of the above exception, another exception occurred:

21 errors detected in the compilation of "/tmp/tmpxft_000039fb_00000000-6_gridencoder.cpp1.ii".
ninja: build stopped: subcommand failed.
@Texaser
Copy link

Texaser commented Jan 11, 2023

When running the unconstrained Latent-NeRF for text-to-3D, demo command (below), I get a runtime error during the tilegrid encoding

run command: python3 -m scripts.train_latent_nerf --config_path demo_configs/latent_nerf/sand_castle.yaml

Error:

import _gridencoder as _backend
ModuleNotFoundError: No module named '_gridencoder'
During handling of the above exception, another exception occurred:

21 errors detected in the compilation of "/tmp/tmpxft_000039fb_00000000-6_gridencoder.cpp1.ii".
ninja: build stopped: subcommand failed.

Did you find the method to solve this? I'm facing the same problem right now. Thanks for your reply!

@Aidanjosiah02
Copy link

Aidanjosiah02 commented Feb 4, 2023

I found something that got me past the same error with "stable-dreamfusion". Not sure if there are any negative consequences though.
Anyway go into whatever file caused that error, go to whatever line it says and remove the underscore on the name of the import. This is supposed to reference a C header file, but the name doesn't match unless you remove the underscore. I'm not sure if this is a Linux thing for referencing C files; I have never used any Linux distributions for this type of thing.
You may also need to do this for "raymarching" and "freqencoder" if you have those in this project.

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

No branches or pull requests

3 participants