Code Monkey home page Code Monkey logo

Comments (8)

KangShengYu avatar KangShengYu commented on July 18, 2024 5

Change raymarching/backend.py, Line 7 & 13 and raymarching/setup.py, Line 8 & 14, "c++14" -> "c++17", and recompile it by python setup.py build_ext --inplace && pip install .

Same operation for gridencode, shencoder, and freqencoder

from torch-ngp.

neotod avatar neotod commented on July 18, 2024

I have the exact same issue too.
I run the code on colab and it returns this error.

from torch-ngp.

Soumya-Sharma-20 avatar Soumya-Sharma-20 commented on July 18, 2024

I have the exact same issue too. I run the code on colab and it returns this error.

You need to rebuild raymarching from scratch and then run the env again after installing packages, it will work , there might be some new version issues / compatibility issues because of which this issue occured

from torch-ngp.

KangShengYu avatar KangShengYu commented on July 18, 2024

Same issue too, I noticed that "error: #error C++17 or later compatible compiler is required to use PyTorch.", and I am trying to resolve it

from torch-ngp.

TigerHix avatar TigerHix commented on July 18, 2024

Change raymarching/backend.py, Line 7 & 13 and raymarching/setup.py, Line 8 & 14, "c++14" -> "c++17", and recompile it by python setup.py build_ext --inplace && pip install .

Same operation for gridencode, shencoder, and freqencoder

This worked for me. Thank you very much!

from torch-ngp.

Joy2Boy avatar Joy2Boy commented on July 18, 2024

Change raymarching/backend.py, Line 7 & 13 and raymarching/setup.py, Line 8 & 14, "c++14" -> "c++17", and recompile it by python setup.py build_ext --inplace && pip install .

Same operation for gridencode, shencoder, and freqencoder

why i run python setup.py build_ext --inplace && pip install .occurs the problem below?How can i solve it ?
running build_ext

Traceback (most recent call last):
  File "setup.py", line 44, in <module>
    setup(
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 144, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 87, in run
    _build_ext.run(self)
  File "/usr/lib/python3.8/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/Newdisk2/benke/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 396, in build_extensions
    self._check_abi()
  File "/home/Newdisk2/benke/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 767, in _check_abi
    check_compiler_abi_compatibility(compiler)
  File "/home/Newdisk2/benke/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 300, in check_compiler_abi_compatibility
    if not check_compiler_ok_for_platform(compiler):
  File "/home/Newdisk2/benke/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 257, in check_compiler_ok_for_platform
    which = subprocess.check_output(['which', compiler], stderr=subprocess.STDOUT)
  File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['which', 'x86_64-linux-gnu-g++']' returned non-zero exit status 1.

from torch-ngp.

Les1a avatar Les1a commented on July 18, 2024

Change raymarching/backend.py, Line 7 & 13 and raymarching/setup.py, Line 8 & 14, "c++14" -> "c++17", and recompile it by python setup.py build_ext --inplace && pip install .

Same operation for gridencode, shencoder, and freqencoder

it works! thanks a lot

from torch-ngp.

DarcyFan avatar DarcyFan commented on July 18, 2024

Change raymarching/backend.py, Line 7 & 13 and raymarching/setup.py, Line 8 & 14, "c++14" -> "c++17", and recompile it by python setup.py build_ext --inplace && pip install .

Same operation for gridencode, shencoder, and freqencoder

I searched a lot of web pages to solve this problem, thank you very much for the solution, it works for me!

from torch-ngp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.