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 'torch' #3

Open
gorborukov opened this issue Jan 14, 2023 · 4 comments
Open

ModuleNotFoundError: No module named 'torch' #3

gorborukov opened this issue Jan 14, 2023 · 4 comments

Comments

@gorborukov
Copy link

Ubuntu 20.04, Blender 3.4.1
looks like installing dependencies is not working properly:

  Cloning https://github.com/Firework-Games-AI-Division/point-e (to revision main) to /tmp/pip-req-build-ggjhtz1v
  Running command git clone --filter=blob:none --quiet https://github.com/Firework-Games-AI-Division/point-e /tmp/pip-req-build-ggjhtz1v
  Resolved https://github.com/Firework-Games-AI-Division/point-e to commit c1e83d1336928ede4595c9d2bfa036ae41235f4c
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-req-build-ggjhtz1v/setup.py", line 11, in <module>
          import torch
      ModuleNotFoundError: No module named 'torch'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
@tolmanneo
Copy link
Contributor

So the problem is that when installing point-e, python does not look into folder /.dependencies for torch module.
I only tested on Windows, I will try to test this on Ubuntu later today. Thanks for raising the issue!

@gorborukov
Copy link
Author

hi @tolmanneo , thanks for answering. I just completed all the steps you listed, and got an error, a fragment of which I posted above. In any case, I will try to solve it myself, but I will be grateful if you can test this on Ubuntu.

@tolmanneo
Copy link
Contributor

tolmanneo commented Jan 14, 2023

Actually install from scratch is a bit tricky.
In the meantime, you can try this:

  • Clone this repo: https://github.com/Firework-Games-AI-Division/point-e
  • At line 9 in setup.py, add sys.path.insert(0, <path_to_folder_/.dependencies_of_DMT_meshes>)
  • Assume that you already has torch-cu11.7 installed into your .dependencies (which you should have even the installation above is failed), you can just run pip install setup.py from the point-e folder, then point-e will be compiled and move to .dependencies.

Let me know if it works.

@Cubey42
Copy link

Cubey42 commented Apr 14, 2023

I'm getting this error on windows as well, I can't seem to get past it.

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