NVlabs / nvdiffrec

Official code for the CVPR 2022 (oral) paper "Extracting Triangular 3D Models, Materials, and Lighting From Images".
Other
2.09k stars 222 forks source link

pip install git+https://github.com/NVlabs/nvdiffrast/ error #70

Closed zh-en520 closed 1 year ago

zh-en520 commented 1 year ago

I executed the command several times and got some similar errors. I'm using windows 10. Is there some easy way for me to install it successfully? For example: pip install --global-option="--no-networks" git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch. This command I can disassemble as: First, I can download the https://github.com/NVlabs/tiny-cuda-nn/ project from the browser, then execute ''python ./bindings/torch/setup.py install'' . 1------------------------------------------------------------->>>>>> (base) PS D:\NV> pip install git+https://github.com/NVlabs/nvdiffrast/ Collecting git+https://github.com/NVlabs/nvdiffrast/ Cloning https://github.com/NVlabs/nvdiffrast/ to c:\users\administrator\appdata\local\temp\pip-req-build-oxqg0yg7 Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/nvdiffrast/ 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-oxqg0yg7' fatal: unable to access 'https://github.com/NVlabs/nvdiffrast/': Failed to connect to github.com port 443 after 21045 ms: Timed out error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/NVlabs/nvdiffrast/ 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-oxqg0yg7' did not run successfully. │ exit code: 128 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/NVlabs/nvdiffrast/ 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-oxqg0yg7' did not run successfully. │ exit code: 128 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

2---------------------------------------------------------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (base) PS D:\NV> pip install git+https://github.com/NVlabs/nvdiffrast/ Collecting git+https://github.com/NVlabs/nvdiffrast/ Cloning https://github.com/NVlabs/nvdiffrast/ to c:\users\administrator\appdata\local\temp\pip-req-build-g4y3avob Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/nvdiffrast/ 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-g4y3avob' fatal: unable to access 'https://github.com/NVlabs/nvdiffrast/': OpenSSL SSL_read: Connection was reset, errno 10054 ERROR: Operation cancelled by user

3---------------------------------------------------------------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (base) PS D:\NV\nvdiffrec\docker> pip install git+https://github.com/NVlabs/nvdiffrast/ Cloning https://github.com/NVlabs/nvdiffrast/ to c:\users\administrator\appdata\local\temp\pip-req-build-g1rg85a1 Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/nvdiffrast/ 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-g1rg85a1' error: subprocess-exited-with-error │ exit code: 128 ╰─> [2 lines of output] fatal: detected dubious ownership in repository at 'C:/Users/Administrator/AppData/Local/Temp/pip-req-build-g1rg85a1' git config --global --add safe.directory C:/Users/Administrator/AppData/Local/Temp/pip-req-build-g1rg85a1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

× git rev-parse HEAD did not run successfully. │ exit code: 128 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Collecting git+https://github.com/NVlabs/nvdiffrast/ Cloning https://github.com/NVlabs/nvdiffrast/ to c:\users\administrator\appdata\local\temp\pip-req-build-acez9zb0 Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/nvdiffrast/ 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-acez9zb0' error: subprocess-exited-with-error

× git rev-parse HEAD did not run successfully. │ exit code: 128 ╰─> [2 lines of output] fatal: detected dubious ownership in repository at 'C:/Users/Administrator/AppData/Local/Temp/pip-req-build-acez9zb0' To add an exception for this directory, call:

      git config --global --add safe.directory C:/Users/Administrator/AppData/Local/Temp/pip-req-build-acez9zb0
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× git rev-parse HEAD did not run successfully. │ exit code: 128 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

4------------------------------------------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (base) PS D:\NV\nvdiffrec\docker> git config --global --add safe.directory C:/Users/Administrator/AppData/Local/Temp/pip-req-build-s82i3uj3 (base) PS D:\NV\nvdiffrec\docker> pip install git+https://github.com/NVlabs/nvdiffrast/ Collecting git+https://github.com/NVlabs/nvdiffrast/ Cloning https://github.com/NVlabs/nvdiffrast/ to c:\users\administrator\appdata\local\temp\pip-req-build-3r7fzh_y Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/nvdiffrast/ 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-3r7fzh_y' error: 6670 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: index-pack failed fatal: unable to access 'https://github.com/NVlabs/nvdiffrast/': OpenSSL SSL_read: Connection was reset, errno 10054 error: unable to read sha1 file of docs/img/cube.png (92b63e611d95b2b4b898117e789e55bc280ec0b1) fatal: unable to access 'https://github.com/NVlabs/nvdiffrast/': Failed to connect to github.com port 443 after 21031 ms: Timed out error: unable to read sha1 file of docs/img/earth.png (d30989a6f2eb544cc7449c6847494cbc6135bea2) ERROR: Operation cancelled by user

zh-en520 commented 1 year ago

I created a new conda environment and the build was successful。

(dis) PS D:\NV\nvdiffrec> pip install git+https://github.com/NVlabs/nvdiffrast/ WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting git+https://github.com/NVlabs/nvdiffrast/ Cloning https://github.com/NVlabs/nvdiffrast/ to c:\users\administrator\appdata\local\temp\pip-req-build-5eihs9mk Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/nvdiffrast/ 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-5eihs9mk' Resolved https://github.com/NVlabs/nvdiffrast/ to commit 78528e683210dfaa1be57e3c65aa37d3b36c6644 Preparing metadata (setup.py) ... done Requirement already satisfied: numpy in d:\installer\anaconda\lib\site-packages (from nvdiffrast==0.2.8) (1.22.3) Building wheels for collected packages: nvdiffrast Building wheel for nvdiffrast (setup.py) ... done Created wheel for nvdiffrast: filename=nvdiffrast-0.2.8-py3-none-any.whl size=98094 sha256=7365e73543c1b2a9745e2e389bc14d64ae450e75ba55e78f36075aa293aa37e8 Stored in directory: C:\Users\Administrator\AppData\Local\Temp\pip-ephem-wheel-cache-o1espbwb\wheels\c9\3e\ec\3f92bc7c6173f75a16dbf41fefdffa5b46c92eaf65eac9c1d8 Successfully built nvdiffrast Installing collected packages: nvdiffrast Successfully installed nvdiffrast-0.2.8