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

Installation Error #11

Open
Ysc-shark opened this issue May 7, 2024 · 2 comments
Open

Installation Error #11

Ysc-shark opened this issue May 7, 2024 · 2 comments

Comments

@Ysc-shark
Copy link

Ysc-shark commented May 7, 2024

thanks for great work!

I followed the readme instructions to clone a GitHub project on my server, created a virtual environment, installed the correct versions of torch and pytorch-scatter, and installed other pip packages.

However, I encountered the following error during pip install -v .

RuntimeError: Error compiling objects for extension
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /root/miniconda3/envs/nr3d/bin/python -u -c '
exec(compile('"'"''"'"''"'"'
This is -- a caller that pip uses to run setup.py

  • It imports setuptools before invoking setup.py, to enable projects that directly
    import from distutils.core to work with newer packaging standards.
  • It provides a clear error message when setuptools is not installed.
  • It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so
    setuptools doesn'"'"'t think the script is -c. This avoids the following warning:
    manifest_maker: standard file '"'"'-c'"'"' not found".
  • It generates a shim setup.py, for handling setup.cfg-only projects.
    import os, sys, tokenize

try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute setup.py since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)

file = %r
sys.argv[0] = file

if os.path.exists(file):
filename = file
with tokenize.open(file) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/root/autodl-tmp/neuralsim/nr3d_lib/setup.py'"'"',), "", "exec"))' bdist_wheel -d /tmp/pip-wheel-w12r9tri
cwd: /root/autodl-tmp/neuralsim/nr3d_lib/
Building wheel for nr3d_lib (setup.py) ... error
ERROR: Failed building wheel for nr3d_lib
Running setup.py clean for nr3d_lib
Running command python setup.py clean
=> Targeting compute capability 89
running clean
removing 'build/temp.linux-x86_64-cpython-38' (and everything under it)
removing 'build/lib.linux-x86_64-cpython-38' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.8' does not exist -- can't clean it
removing 'build'
Failed to build nr3d_lib
ERROR: Could not build wheels for nr3d_lib, which is required to install pyproject.toml-based projects

@miao-7
Copy link

miao-7 commented May 9, 2024

Hello, I have encountered the same problem as you. May I ask if you have resolved it

@Ysc-shark
Copy link
Author

Hello, I have encountered the same problem as you. May I ask if you have resolved it

For this issue, the problem originated from initially renting a 4090 on a cloud server, but the environment recommended in the README, CUDA 11.3, does not support 4090. The solution is to switch to a 3090 or install a higher version of CUDA.

Additionally, I found that Lotd could not compile. The solution was to revert the project version to the one from August-September last year, and then follow the instructions in the README to successfully compile 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

2 participants