Closed ldkong1205 closed 2 years ago
Hi,
Could you please check whether you install the module successfully?
# PointNet++
pip install "git+git://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"
Hi, thank you for your prompt reply!
The following error is reported during installing PointNet++:
pip install "git+git://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib" Collecting pointnet2_ops Cloning git://github.com/erikwijmans/Pointnet2_PyTorch.git to /tmp/pip-install-6w3mzbet/pointnet2-ops_5d20ebf575a34c878914924451adc20a Running command git clone -q git://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-6w3mzbet/pointnet2-ops_5d20ebf575a34c878914924451adc20a fatal: remote error: The unauthenticated git protocol on port 9418 is no longer supported. Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information. WARNING: Discarding git+git://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib. Command errored out with exit status 128: git clone -q git://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-6w3mzbet/pointnet2-ops_5d20ebf575a34c878914924451adc20a Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement pointnet2-ops (unavailable) (from versions: none) ERROR: No matching distribution found for pointnet2-ops (unavailable)
I just Googled and found that the unauthenticated git protocol on port 9418 is no longer supported Error. we should use https://github.com instead of git://github.com.
The following command is viable:
pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"
But it somehow stuck during wheel building. Any solutions for this?
Please check your CUDA version matches your PyTorch version. We did not meet this issue.
Hi Yatian, the wheel building is successful after a few moments. You might need to update the PointNet++ installation command as stated above. Thank you again for your prompt reply.
Thanks for pointing it out.
Hello, did you encounter this situation when installing the pointnet2 library?
Cloning https://github.com/erikwijmans/Pointnet2_PyTorch.git to c:\users\xiaomumu\appdata\local\temp\pip-install-5i7vkh4_\pointnet2-ops_1abcf7a21ccb40348dd4ac624101674f Running command git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git 'C:\Users\xiaomumu\AppData\Local\Temp\pip-install-5i7vkh4_\pointnet2-ops_1abcf7a21ccb4 0348dd4ac624101674f' fatal: unable to access 'https://github.com/erikwijmans/Pointnet2_PyTorch.git/': Failed to connect to github.com port 443 after 21206 ms: Timed out error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git 'C:\Users\xiaomumu\AppData\Local\Temp\pip-install-5i7vkh4_\pointnet2-ops_1abcf7a21ccb40348dd4ac6241 01674f' 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/erikwijmans/Pointnet2_PyTorch.git 'C:\Users\xiaomumu\AppData\Local\Temp\pip-install-5i7vkh4_\pointnet2-ops_1abcf7a21ccb40348dd4ac624101 674f' 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.
Hello, could you tell me the version of pytorch and cuda you use
Hi, have you sloed the problem?
Hi, Hope you doing well. I used pytorch version = 10.1+cu111 and it worked for me as I have cuda 11.1.1( means111) you just check which version of cuda you have on your PC then accordingly do installation. Compare appropriate cuda version with respected torch version. (LINK : https://pytorch.org/get-started/previous-versions/ )
pip install torch==1.10.1+cu111 torchvision==0.11.2+cu111 torchaudio==0.10.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html
Processing d:\pythonproject1\pointnet2_pytorch_master\pointnet2_ops_lib Preparing metadata (setup.py) ... done Requirement already satisfied: torch>=1.4 in d:\anaconda\envs\dxtorch\lib\site-packages (from pointnet2-ops==3.0.0) (1.12.1) Requirement already satisfied: typing_extensions in d:\anaconda\envs\dxtorch\lib\site-packages (from torch>=1.4->pointnet2-ops==3.0.0) (4.7.1) Building wheels for collected packages: pointnet2-ops Building wheel for pointnet2-ops (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [72 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pointnet2_ops
copying pointnet2_ops\pointnet2_modules.py -> build\lib.win-amd64-3.8\pointnet2_ops
copying pointnet2_ops\pointnet2_utils.py -> build\lib.win-amd64-3.8\pointnet2_ops
copying pointnet2_ops_version.py -> build\lib.win-amd64-3.8\pointnet2_ops
copying pointnet2_ops__init.py -> build\lib.win-amd64-3.8\pointnet2_ops
running egg_info
writing pointnet2_ops.egg-info\PKG-INFO
writing dependency_links to pointnet2_ops.egg-info\dependency_links.txt
writing requirements to pointnet2_ops.egg-info\requires.txt
writing top-level names to pointnet2_ops.egg-info\top_level.txt
reading manifest file 'pointnet2_ops.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no directories found matching 'pointnet2_ops_ext-src'
writing manifest file 'pointnet2_ops.egg-info\SOURCES.txt'
running build_ext
building 'pointnet2_ops._ext' extension
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pointnet2-ops Running setup.py clean for pointnet2-ops Failed to build pointnet2-ops ERROR: Could not build wheels for pointnet2-ops, which is required to install pyproject.toml-based projects how to solve this question?
error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-7mm7bzr0/pointnet2-ops_febb989072b44b2a805dfbaaaf61f8c5 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/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-7mm7bzr0/pointnet2-ops_febb989072b44b2a805dfbaaaf61f8c5 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.
Hi, have you sloved the problem?
error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-7mm7bzr0/pointnet2-ops_febb989072b44b2a805dfbaaaf61f8c5 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/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-7mm7bzr0/pointnet2-ops_febb989072b44b2a805dfbaaaf61f8c5 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.
Hi, I had the same problem as you and I solved it by updating setuptools. If you haven't solved the problem you can try the following commands: pip install --upgrade setuptools
Thank you for sharing the source code.
For part segmentation, the following error is encountered:
File "/Point-MAE/segmentation/pt.py", line 7, in <module>
from pointnet2_ops import pointnet2_utils
ModuleNotFoundError: No module named 'pointnet2_ops'
It seems that the folder named 'pointnet2_ops' is missing. Could you add it? Thanks