bcmi / libcom

Image composition toolbox: everything you want to know about image composition or object insertion
Apache License 2.0
522 stars 31 forks source link

pip install libcom fails #34

Closed ancri closed 6 months ago

ancri commented 6 months ago

Hello, I'm trying to $ pip install libcom

It's failing with this message:

      ninja: error: '/tmp/pip-install-6mqbh3s0/libcom_1d0a9345d9964e32bf19615494336cec/libcom/image_harmonization/source/trilinear_cpp_torch1.11/src/trilinear_cuda.cpp', needed by '/tmp/pip-install-6mqbh3s0/libcom_1d0a9345d9964e32bf19615494336cec/build/t
emp.linux-x86_64-cpython-310/tmp/pip-install-6mqbh3s0/libcom_1d0a9345d9964e32bf19615494336cec/libcom/image_harmonization/source/trilinear_cpp_torch1.11/src/trilinear_cuda.o', missing and no known rule to make it
      Traceback (most recent call last):                                                                                                                                                                                                                      
        File "/home/predmodl/.pyenv/versions/python310/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2096, in _run_ninja_build                                                                                                             
          subprocess.run(                                                                                                                                                                                                                                     
        File "/home/predmodl/.pyenv/versions/3.10.11/lib/python3.10/subprocess.py", line 526, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

Any suggestions? Thanks!

bo-zhang-cs commented 6 months ago

It seems like this error is still occurring during the compilation of the trilinear library. I'd recommend checking out the tips provided on the Installation page for guidance.