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

Problem installing on Ubuntu? #21

Open
Thundros opened this issue Jun 18, 2023 · 16 comments
Open

Problem installing on Ubuntu? #21

Thundros opened this issue Jun 18, 2023 · 16 comments

Comments

@Thundros
Copy link

Hi @ARuiChen! I had an issue installing this on my Ubuntu.

Here's my log :

~/Fantasia3D$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/NVlabs/nvdiffrast.git (from -r requirements.txt (line 9))
Cloning https://github.com/NVlabs/nvdiffrast.git to /tmp/pip-req-build-cqpmcxi8
Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/nvdiffrast.git /tmp/pip-req-build-cqpmcxi8
Resolved https://github.com/NVlabs/nvdiffrast.git to commit 335cfa6b33d785730a04283994214bed57884e87
Preparing metadata (setup.py) ... done
Collecting git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch (from -r requirements.txt (line 10))
Cloning https://github.com/NVlabs/tiny-cuda-nn/ to /tmp/pip-req-build-rgk405vw
Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/tiny-cuda-nn/ /tmp/pip-req-build-rgk405vw
Resolved https://github.com/NVlabs/tiny-cuda-nn/ to commit 1ee07877239b46fbdafeb8ae155a786a84a37e18
Running command git submodule update --init --recursive -q
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-rgk405vw/bindings/torch/setup.py", line 49, in
raise EnvironmentError("Unknown compute capability. Specify the target compute capabilities in the TCNN_CUDA_ARCHITECTURES environment variable or install PyTorch with the CUDA backend to detect it automatically.")
OSError: Unknown compute capability. Specify the target compute capabilities in the TCNN_CUDA_ARCHITECTURES environment variable or install PyTorch with the CUDA backend to detect it automatically.
Building PyTorch extension for tiny-cuda-nn version 1.7
[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.

@ARuiChen
Copy link
Collaborator

Hi, it seems that the error appeared when installing the tiny-cuda-nn.
You can try another way to install it :

git clone https://github.com/NVlabs/tiny-cuda-nn.git
cd tiny-cuda-nn
cd bindings/torch
python setup.py install

@Thundros
Copy link
Author

Thundros commented Jun 19, 2023

@ARuiChen :

python3 setup.py install
Building PyTorch extension for tiny-cuda-nn version 1.7
Traceback (most recent call last):
File "/root/Fantasia3D/tiny-cuda-nn/bindings/torch/setup.py", line 49, in
raise EnvironmentError("Unknown compute capability. Specify the target compute capabilities in the TCNN_CUDA_ARCHITECTURES environment variable or install PyTorch with the CUDA backend to detect it automatically.")
OSError: Unknown compute capability. Specify the target compute capabilities in the TCNN_CUDA_ARCHITECTURES environment variable or install PyTorch with the CUDA backend to detect it automatically.

EDIT: Using the latest Ubuntu in VMWare Workstation 16 Pro

@Thundros
Copy link
Author

@ARuiChen ???

@bennyguo
Copy link

@Thundros Please be patient. This is an open-source project, the maintainer has no obligation to answer every question on time.

@ARuiChen
Copy link
Collaborator

ARuiChen commented Jun 19, 2023

Hi, @Thundros ! See here
Please be patient. It is difficult for me to answer every question on time.

@Thundros
Copy link
Author

Hi, @ARuiChen! I have another error apparently, here is my log :

kaorixvii@kaorixvii-virtual-machine:~/Fantasia3D$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/NVlabs/nvdiffrast.git (from -r requirements.txt (line 9))
Cloning https://github.com/NVlabs/nvdiffrast.git to /tmp/pip-req-build-476by8_0
Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/nvdiffrast.git /tmp/pip-req-build-476by8_0
Resolved https://github.com/NVlabs/nvdiffrast.git to commit 335cfa6b33d785730a04283994214bed57884e87
Preparing metadata (setup.py) ... done
Collecting git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch (from -r requirements.txt (line 10))
Cloning https://github.com/NVlabs/tiny-cuda-nn/ to /tmp/pip-req-build-75fv5_g7
Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/tiny-cuda-nn/ /tmp/pip-req-build-75fv5_g7
Resolved https://github.com/NVlabs/tiny-cuda-nn/ to commit 1ee07877239b46fbdafeb8ae155a786a84a37e18
Running command git submodule update --init --recursive -q
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-75fv5_g7/bindings/torch/setup.py", line 8, in
import torch
File "/home/kaorixvii/.local/lib/python3.10/site-packages/torch/init.py", line 228, in
_load_global_deps()
File "/home/kaorixvii/.local/lib/python3.10/site-packages/torch/init.py", line 187, in _load_global_deps
raise err
File "/home/kaorixvii/.local/lib/python3.10/site-packages/torch/init.py", line 168, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File "/usr/lib/python3.10/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: /home/kaorixvii/.local/lib/python3.10/site-packages/torch/lib/libtorch_global_deps.so: cannot open shared object file: No such file or directory
[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.
kaorixvii@kaorixvii-virtual-machine:~/Fantasia3D$ ^C

@ARuiChen
Copy link
Collaborator

@Thundros Could you print the result of "pip list" in your command line?

@Thundros
Copy link
Author

Thundros commented Jun 20, 2023

yes, @ARuiChen, here it is :

kaorixvii@kaorixvii-virtual-machine:~/Fantasia3D$ pip list
Package Version


apturl 0.5.2
bcrypt 3.2.0
blinker 1.4
Brlapi 0.8.3
certifi 2020.6.20
chardet 4.0.0
click 8.0.3
cmake 3.25.0
colorama 0.4.4
command-not-found 0.3
cryptography 3.4.8
cupshelpers 1.0
dbus-python 1.2.18
defer 1.0.6
distro 1.7.0
distro-info 1.1build1
duplicity 0.8.21
fasteners 0.14.1
filelock 3.9.0
future 0.18.2
httplib2 0.20.2
idna 3.3
importlib-metadata 4.6.4
jeepney 0.7.1
Jinja2 3.1.2
keyring 23.5.0
language-selector 0.1
launchpadlib 1.10.16
lazr.restfulclient 0.14.4
lazr.uri 1.0.6
lit 15.0.7
lockfile 0.12.2
louis 3.20.0
macaroonbakery 1.3.1
Mako 1.1.3
MarkupSafe 2.0.1
monotonic 1.6
more-itertools 8.10.0
mpmath 1.2.1
netifaces 0.11.0
networkx 3.0
numpy 1.25.0
oauthlib 3.2.0
olefile 0.46
paramiko 2.9.3
pexpect 4.8.0
Pillow 9.0.1
pip 22.0.2
protobuf 3.12.4
ptyprocess 0.7.0
pycairo 1.20.1
pycups 2.0.1
PyGObject 3.42.1
PyJWT 2.3.0
pymacaroons 0.13.0
PyNaCl 1.5.0
pyparsing 2.4.7
pyRFC3339 1.1
python-apt 2.4.0+ubuntu1
python-dateutil 2.8.1
python-debian 0.1.43ubuntu1
pytz 2022.1
pyxdg 0.27
PyYAML 5.4.1
reportlab 3.6.8
requests 2.25.1
screen-resolution-extra 0.0.0
SecretStorage 3.3.1
setuptools 59.6.0
six 1.16.0
sympy 1.11.1
systemd-python 234
torch 1.12.1+cu113
torchvision 0.13.1+cu113
triton 2.0.0
typing_extensions 4.6.3
ubuntu-advantage-tools 8001
ubuntu-drivers-common 0.0.0
ufw 0.36.1
unattended-upgrades 0.1
urllib3 1.26.5
usb-creator 0.3.7
wadllib 1.3.6
wheel 0.37.1
xdg 5
xkit 0.0.0
zipp 1.0.0
kaorixvii@kaorixvii-virtual-machine:~/Fantasia3D$ ^C

@ARuiChen
Copy link
Collaborator

Search information about "libtorch_global_deps.so: cannot open shared object file: No such file or directory" in Google.
If you still can't solve it, I will upload a docker file this week. Please be patient.

@Thundros
Copy link
Author

@ARuiChen No luck... Didn't work.

@Thundros
Copy link
Author

@ARuiChen Thank you for the docker in advance!

@ARuiChen
Copy link
Collaborator

@Thundros Done!

@zxhxixi
Copy link

zxhxixi commented Jul 4, 2023

it has issures with the version of open3d ....?

Could not find a version that satisfies the requirement open3d==0.14.1 (from versions: 0.16.0, 0.17.0)
No matching distribution found for open3d==0.14.1

@Thundros
Copy link
Author

Thundros commented Jul 6, 2023

@ARuiChen : How do I create the JSON file needed for Google Colab?

@ARuiChen
Copy link
Collaborator

ARuiChen commented Jul 8, 2023

Sorry for the late reply! @zxhxixi You should use the Python version from 3.6 to 3.9 to install the open3d==0.14.1.

@ARuiChen
Copy link
Collaborator

ARuiChen commented Jul 8, 2023

@Thundros Just copy a new Json file from the template and rename 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

4 participants