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

No module named 'pyngp' #6

Closed
McCaffeteria opened this issue Nov 15, 2022 · 5 comments
Closed

No module named 'pyngp' #6

McCaffeteria opened this issue Nov 15, 2022 · 5 comments

Comments

@McCaffeteria
Copy link

This is almost certainly not a problem with the actual addon, but I'm not sure where else to ask about it.

When trying to activate the addon blender is giving an error when ngp_testbed_manager.py is trying to import pyngp, saying "ModuleNotFoundError: No module named 'pyngp.'" This error is listed in the original NVlabs instant-ngp github but I'm not sure whether their suggestion is even applicable to blender's internal version of python.

instant-ngp runs just fine for me outside of blender. I've downloaded the instant-ngp repo, built it with cmake, and generated a few NeRFs. It seems to work fine. NVlabs links to a thread where someone says that basically, the reason this error happens is that python can't find the files within the instant-ngp/build folder because they aren't explicitly added to your system path. I don't see them in my system path environment variables though and like I said, instant-ngp works. Blender also apparently has its own completely separate python environment anyway and doesn't even use the user's system path at all, so I'm kind of at a loss.

Am I supposed to be doing something in blender before adding the addon? Am I supposed to rebuild instant-ngp again within blender's environment? How am I even supposed to do that?

Thanks in advance for any help.

@JamesPerlman
Copy link
Owner

Hey! If you're using the revamp branch - be warned that it's very broken right now. I'm actively working on fixing it. If you want to try to get it working, you'll have to rebuild instant-ngp with Blender's version of python, and then change the NGP_DIR in this file here: https://github.com/JamesPerlman/blender_nerf_tools/blob/revamp/utility/load_ngp.py to point to your instant-ngp/build directory. I would not recommend using the revamp branch at all right now as it's going to be incompatible with a vanilla install of instant-ngp

@McCaffeteria
Copy link
Author

I was trying to use the revamp branch. It didn't occur to me that this had anything to do with revamp being broken since the module it couldn't find is one that instant-ngp uses regardless.
Are you saying that the main branch doesn't have this problem? Or do I have to rebuild instant-ngp for blender in either case?

@hugosbnarciso
Copy link

hi, i'm having the same issue, did you find a solution?

@bergers1
Copy link

I'm using the main branch of InstantNGP, but i still get the same "ModuleNotFoundError: No module named 'pyngp.'"

@JamesPerlman
Copy link
Owner

Hey everyone - just an update for you here, I've been working on a new NeRF renderer which is fine-tuned to work with this repo. The blender addon is now under active development and I'm closing in on a release, hopefully only a few weeks!

https://github.com/JamesPerlman/NeRFRenderCore

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

4 participants