Open yubo97 opened 9 months ago
Please first make sure both gcc
and g++
are successfully installed:
gcc -v
If you still cannot compile pointnet2
, could you give me more details?
According to the prompt information, it seems that the installation method through setup.py has been deprecated. The specific error message has been sent to the email csjch3cook@gmail.com
It seems that torch is not properly installed
fatal error: cuda_runtime_api.h: No such file or directory compilation terminated.
Please try installing torch-1.7.1-cu110
using the following command:
pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
Thank you for your reply. This issue is indeed due to the issue with cuda-11.0 when I installed multiple versions of cuda.Now, when I execute step '4.1 MLE Training for 3D Dense Captioning', 'No such file or directory: './data/ScanRefer_filtered_train.json'' appears.
Please refer to the Preparing Language Annotations.
step in data preparation.
Thank you, the previous problem has been solved, and now it has been found in step 4.1 that the version number of the transformers package may be incorrect. You can send me the version number of all python packages.thank you.
发件人: Sijin Chen 发送时间: 2023年10月5日 22:23 收件人: ch3cook-fdu/Vote2Cap-DETR 抄送: Fourier; Author 主题: Re: [ch3cook-fdu/Vote2Cap-DETR] ”cd third_party/pointnet2;python setup.py install“ (Issue #6)
Please refer to the Preparing Language Annotations. step in data preparation. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Sure thing. However, I have been working on another project with this environment, thus the environment might be a bit messy. Here is the output of pip list
Package Version
------------------------ -----------
accelerate 0.20.3
annotated-types 0.5.0
appdirs 1.4.4
bitsandbytes 0.41.1
blis 0.7.10
catalogue 2.0.9
certifi 2023.5.7
charset-normalizer 3.1.0
click 8.1.6
cmake 3.26.4
confection 0.1.1
contourpy 1.1.0
cycler 0.11.0
cymem 2.0.7
Cython 0.29.35
decorator 5.1.1
docker-pycreds 0.4.0
easydict 1.10
filelock 3.12.2
fonttools 4.42.0
fsspec 2023.6.0
gitdb 4.0.10
GitPython 3.1.32
h5py 3.9.0
huggingface-hub 0.15.1
idna 3.4
imageio 2.31.1
importlib-resources 6.0.1
Jinja2 3.1.2
joblib 1.3.2
kiwisolver 1.4.4
langcodes 3.3.0
lit 16.0.6
MarkupSafe 2.1.3
matplotlib 3.7.2
mkl-fft 1.3.6
mkl-random 1.2.2
mkl-service 2.4.0
mpmath 1.3.0
murmurhash 1.0.9
networkx 2.2
numpy 1.21.0
nvidia-cublas-cu11 11.10.3.66
nvidia-cuda-cupti-cu11 11.7.101
nvidia-cuda-nvrtc-cu11 11.7.99
nvidia-cuda-runtime-cu11 11.7.99
nvidia-cudnn-cu11 8.5.0.96
nvidia-cufft-cu11 10.9.0.58
nvidia-curand-cu11 10.2.10.91
nvidia-cusolver-cu11 11.4.0.1
nvidia-cusparse-cu11 11.7.4.91
nvidia-nccl-cu11 2.14.3
nvidia-nvtx-cu11 11.7.91
opencv-python 4.7.0.72
packaging 23.1
pandas 2.0.3
pathtools 0.1.2
pathy 0.10.2
peft 0.4.0
Pillow 9.3.0
pip 23.1.2
plyfile 0.9
pointnet2 0.0.0
preshed 3.0.8
protobuf 4.24.0
psutil 5.9.5
pydantic 2.1.1
pydantic_core 2.4.0
pyparsing 3.0.9
python-dateutil 2.8.2
pytz 2023.3
PyYAML 6.0
regex 2023.6.3
requests 2.31.0
safetensors 0.3.1
scikit-learn 1.3.0
scipy 1.10.1
sentry-sdk 1.29.2
setproctitle 1.3.2
setuptools 67.8.0
six 1.16.0
smart-open 6.3.0
smmap 5.0.0
spacy 3.6.1
spacy-legacy 3.0.12
spacy-loggers 1.0.4
srsly 2.4.7
sympy 1.12
tensorboardX 2.6.2
thinc 8.1.11
threadpoolctl 3.2.0
tokenizers 0.13.3
torch 1.7.1+cu110
torchaudio 0.7.2
torchvision 0.8.2+cu110
tqdm 4.65.0
transformers 4.30.2
trimesh 2.35.39
triton 2.0.0
typer 0.9.0
typing_extensions 4.6.3
tzdata 2023.3
urllib3 2.0.3
wandb 0.15.8
wasabi 1.1.2
wheel 0.38.4
zipp 3.16.2
could you tell me how to solve this situation?
Maybe you could try installing the desired gcc>8.0, g++>8.0
packages.
running install /home/mi/anaconda3/envs/vote/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!! self.initialize_options() /home/mi/anaconda3/envs/vote/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated. !!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
self.initialize_options()
running bdist_egg
running egg_info
writing pointnet2.egg-info/PKG-INFO
writing dependency_links to pointnet2.egg-info/dependency_links.txt
writing top-level names to pointnet2.egg-info/top_level.txt
reading manifest file 'pointnet2.egg-info/SOURCES.txt'
writing manifest file 'pointnet2.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'pointnet2._ext' extension
Emitting ninja build file /home/mi/Student_file/WY/Vote2Cap-DETR-master/third_party/pointnet2/build/temp.linux-x86_64-cpython-38/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/4] /usr/local/cuda-10.1/bin/nvcc -I/home/mi/Student_file/WY/Vote2Cap-DETR-master/third_party/pointnet2/_ext_src/include -I/home/mi/anaconda3/envs/vote/lib/python3.8/site-packages/torch/include -I/home/mi/anaconda3/envs/vote/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/mi/anaconda3/envs/vote/lib/python3.8/site-packages/torch/include/TH -I/home/mi/anaconda3/envs/vote/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/home/mi/anaconda3/envs/vote/include/python3.8 -c -c /home/mi/Student_file/WY/Vote2Cap-DETR-master/third_party/pointnet2/_ext_src/src/group_points_gpu.cu -o /home/mi/Student_file/WY/Vote2Cap-DETR-master/third_party/pointnet2/build/temp.linux-x86_64-cpython-38/_ext_src/src/group_points_gpu.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin /home/mi/anaconda3/bin/x86_64-conda-linux-gnu-cc -std=c++14
FAILED: /home/mi/Student_file/WY/Vote2Cap-DETR-master/third_party/pointnet2/build/temp.linux-x86_64-cpython-38/_ext_src/src/group_points_gpu.o
/usr/local/cuda-10.1/bin/nvcc -I/home/mi/Student_file/WY/Vote2Cap-DETR-master/third_party/pointnet2/_ext_src/include -I/home/mi/anaconda3/envs/vote/lib/python3.8/site-packages/torch/include -I/home/mi/anaconda3/envs/vote/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/mi/anaconda3/envs/vote/lib/python3.8/site-packages/torch/include/TH -I/home/mi/anaconda3/envs/vote/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/home/mi/anaconda3/envs/vote/include/python3.8 -c -c /home/mi/Student_file/WY/Vote2Cap-DETR-master/third_party/pointnet2/_ext_src/src/group_points_gpu.cu -o /home/mi/Student_file/WY/Vote2Cap-DETR-master/third_party/pointnet2/build/temp.linux-x86_64-cpython-38/_ext_src/src/group_points_gpu.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin /home/mi/anaconda3/bin/x86_64-conda-linux-gnu-cc -std=c++14
In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
from
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 19, in
I have changed the gcc version to 8.4.0 and this error still occurs.
Maybe you could try installing the desired
gcc>8.0, g++>8.0
packages.
Could you see how to solve such an error? Thank you very much!
That‘s how I deal with the pointnet2 package:
Re-installing the cuda driver:
wget https://developer.download.nvidia.com/compute/cuda/11.1.0/local_installers/cuda_11.1.0_455.23.05_linux.run
sudo sh cuda_11.1.0_455.23.05_linux.run
Re-install the torch packages.
Build pointnet2 via python setup.py install
Hope this will help.
sudo sh cuda_11.1.0_455.23.05_linux.run
Thank you very much for your answer. The previous problem has been solved, but now there is a new problem, and the following error occurs during the train process (ubuntu18.04 + Tesla P100 + cuda 11.0 + pytorch 1.7.1 + python 3.8.13).
Please try delete all the compiled files and re-compile the pointnet2. There might be some cached files that might cause this error.
An error occurred using this installation method. RuntimeError: Error compiling objects for extension