Giter Site home page Giter Site logo

Comments (4)

gsygsy96 avatar gsygsy96 commented on June 10, 2024

This error occurs when I run 'pip install '. Anyone can help me?

from dirt.

pmh47 avatar pmh47 commented on June 10, 2024

Try installing in development mode, i.e. clone the DIRT repository, activate your conda environment, and invoke cmake directly, as described in the README:

cd dirt
mkdir build ; cd build
cmake ../csrc
make
cd ..
pip install -e .

from dirt.

gsygsy96 avatar gsygsy96 commented on June 10, 2024

Thanks for your reply! I found this is due to I didn't install cmake. However, after I install cmake and mesa, some strange error happened angin.

1 error detected in the compilation of "/tmp/tmpxft_00006595_00000000-6_rasterise_egl.cpp1.ii".
CMakeFiles/rasterise.dir/build.make:75: recipe for target 'CMakeFiles/rasterise.dir/rasterise_egl.cu.o' failed
make[2]: *** [CMakeFiles/rasterise.dir/rasterise_egl.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error detected in the compilation of "/tmp/tmpxft_00006599_00000000-6_rasterise_grad_egl.cpp1.ii".
CMakeFiles/rasterise.dir/build.make:101: recipe for target 'CMakeFiles/rasterise.dir/rasterise_grad_egl.cu.o' failed
make[2]: *** [CMakeFiles/rasterise.dir/rasterise_grad_egl.cu.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/rasterise.dir/all' failed
make[1]: *** [CMakeFiles/rasterise.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-req-build-ToIegs/setup.py", line 46, in
'Programming Language :: Python :: 2.7',
File "/home/guan/miniconda2/envs/coma/lib/python2.7/site-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/home/guan/miniconda2/envs/coma/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/home/guan/miniconda2/envs/coma/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/home/guan/miniconda2/envs/coma/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/guan/miniconda2/envs/coma/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 192, in run
self.run_command('build')
File "/home/guan/miniconda2/envs/coma/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/home/guan/miniconda2/envs/coma/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-req-build-ToIegs/setup.py", line 24, in run
build_csrc()
File "/tmp/pip-req-build-ToIegs/setup.py", line 20, in build_csrc
subprocess.check_call(['make', '-j{}'.format(build_cpus)], cwd=build_path)
File "/home/guan/miniconda2/envs/coma/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-j4']' returned non-zero exit status 2

from dirt.

gsygsy96 avatar gsygsy96 commented on June 10, 2024

OKay... Solved. The reason is my tensorflow version is 1.13
I write some experiments here. May it help others.
Dependcy: cmake, opengl, tensorflow=1.4.

from dirt.

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.