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' #688

Closed
TimSousa1 opened this issue Jun 14, 2022 · 4 comments
Closed

No module named 'pyngp' #688

TimSousa1 opened this issue Jun 14, 2022 · 4 comments

Comments

@TimSousa1
Copy link

CMake did generate and build the file “pyngp.cp310-win_amd64.pyd” successfully
but… even though I'm running python v3.8, it generated a file for python 3.10
so when I run “python scripts/render.py --scene data/tree --n_seconds 60 --fps 60 --render_name tree1 --width 1920 --height 1080”
i get:

Traceback (most recent call last):
  File "scripts/render.py", line 16, in <module>
    import pyngp as ngp # noqa
ModuleNotFoundError: No module named 'pyngp'
@lhy0807
Copy link

lhy0807 commented Jun 17, 2022

See #43

@TimSousa1
Copy link
Author

I decided to build the project again, but using py v.3.10
That fixed it. Thanks anyways!
(Posting this is in case someone else is having a similar issue)

@Timothy-pop
Copy link

我决定再次构建该项目,但使用 py v.3.10 修复了它。无论如何,谢谢! (发布此内容是为了以防其他人遇到类似问题)

Thank you very much for the information you provided!
I found my file, it is /home/timo/documents/instant-ngp/build/pyngp.cpython-311-x86_64-linux-gnu.so.
So, I was able to recreate the environment with python==3.11 in the virtual environment.
The issue has been resolved.

@RyanAshbaugh
Copy link

This also works well.

$ export PYTHONPATH=./build_ngp/

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