Cant install requirements
hello im using ubuntu 22 and cuda 11.8. I cant install requirements for example sklearn library and torch_scatter. Do you have maybe already created environment in conda and could send me all required version?
Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB) Requirement already satisfied: dataclasses in /home/dev/anaconda3/envs/log/lib/python3.6/site-packages (from torch>=1.8.1->kornia->-r requirements.txt (line 13)) (0.8) Requirement already satisfied: typing-extensions in /home/dev/anaconda3/envs/log/lib/python3.6/site-packages (from torch>=1.8.1->kornia->-r requirements.txt (line 13)) (4.1.1) Requirement already satisfied: zipp>=3.1.0 in /home/dev/anaconda3/envs/log/lib/python3.6/site-packages (from importlib-resources->tqdm->-r requirements.txt (line 7)) (3.6.0) WARNING: The candidate selected for download or install is a yanked version: 'protobuf' candidate (version 4.21.0 at https://files.pythonhosted.org/packages/27/82/986065ef305c0989c99d8ef3f29e58a03fac6e64bb2c36ffe64500cc6955/protobuf-4.21.0-py3-none-any.whl#sha256=4e78116673ba04e01e563f6a9cca2c72db0be8a3e1629094816357e81cc39d36 (from https://pypi.org/simple/protobuf/)) Reason for being yanked: Required python version not configured correctly (https://github.com/protocolbuffers/protobuf/issues/10076) Building wheels for collected packages: easydict, opencv-python, SharedArray, torch-scatter Building wheel for easydict (setup.py) ... done Created wheel for easydict: filename=easydict-1.10-py3-none-any.whl size=6507 sha256=ab21a7c775c306db95e3833c50ffdd7af018f70478a944f54614d2fb06b98588 Stored in directory: /home/dev/.cache/pip/wheels/67/5f/3d/153c230df93efb11f7f66b162e844294d332ce939eb92fe6c6 Building wheel for opencv-python (PEP 517) stack here for hours or INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of isort to determine which version is compatible with other requirements. This could take a while. ERROR: Could not find a version that satisfies the requirement protobuf<4,>=3.20.2 (from onnx) (from versions: 2.0.0b0, 2.0.3, 2.3.0, 2.4.1, 2.5.0, 2.6.0, 2.6.1, 3.0.0a2, 3.0.0a3, 3.0.0b1, 3.0.0b1.post1, 3.0.0b1.post2, 3.0.0b2, 3.0.0b2.post1, 3.0.0b2.post2, 3.0.0b3, 3.0.0b4, 3.0.0, 3.1.0, 3.1.0.post1, 3.2.0rc1, 3.2.0rc1.post1, 3.2.0rc2, 3.2.0, 3.3.0, 3.4.0, 3.5.0.post1, 3.5.1, 3.5.2, 3.5.2.post1, 3.6.0, 3.6.1, 3.7.0rc2, 3.7.0rc3, 3.7.0, 3.7.1, 3.8.0rc1, 3.8.0, 3.9.0rc1, 3.9.0, 3.9.1, 3.9.2, 3.10.0rc1, 3.10.0, 3.11.0rc1, 3.11.0rc2, 3.11.0, 3.11.1, 3.11.2, 3.11.3, 3.12.0rc1, 3.12.0rc2, 3.12.0, 3.12.1, 3.12.2, 3.12.4, 3.13.0rc3, 3.13.0, 3.14.0rc1, 3.14.0rc2, 3.14.0rc3, 3.14.0, 3.15.0rc1, 3.15.0rc2, 3.15.0, 3.15.1, 3.15.2, 3.15.3, 3.15.4, 3.15.5, 3.15.6, 3.15.7, 3.15.8, 3.16.0rc1, 3.16.0rc2, 3.16.0, 3.17.0rc1, 3.17.0rc2, 3.17.0, 3.17.1, 3.17.2, 3.17.3, 3.18.0rc1, 3.18.0rc2, 3.18.0, 3.18.1, 3.18.3, 3.19.0rc1, 3.19.0rc2, 3.19.0, 3.19.1, 3.19.2, 3.19.3, 3.19.4, 3.19.5, 3.19.6, 4.0.0rc1, 4.0.0rc2, 4.21.0rc1, 4.21.0rc2, 4.21.0) ERROR: No matching distribution found for protobuf<4,>=3.20.2
I am facing the same issue downloading the required packages, specifically SharedArray and torch_scatter.
Below are my build specs: - cudatoolkit=10.2 - pytorch==1.10.0 - torchaudio==0.10.0 - torchvision==0.11.0
could you send me list of your environment? still the same problem
stack here: cd LoGoNet/detection/models/image_modules/swin_model && pip install -r requirements.txt && python setup.py develop
python setup.py develop running develop /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. EasyInstallDeprecationWarning, /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, running egg_info writing mmdet.egg-info/PKG-INFO writing dependency_links to mmdet.egg-info/dependency_links.txt writing requirements to mmdet.egg-info/requires.txt writing top-level names to mmdet.egg-info/top_level.txt reading manifest file 'mmdet.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'mmdet.egg-info/SOURCES.txt' running build_ext Creating /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/mmdet.egg-link (link to .) mmdet 2.11.0 is already the active version in easy-install.pth
Installed /home/dev/Desktop/LoGoNet/detection/al3d_det/models/image_modules/swin_model Processing dependencies for mmdet==2.11.0 Searching for mmpycocotools Reading https://pypi.org/simple/mmpycocotools/ /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/pkg_resources/init.py:126: PkgResourcesDeprecationWarning: is an invalid version and will not be supported in a future release PkgResourcesDeprecationWarning, Downloading https://files.pythonhosted.org/packages/99/51/1bc1d79f296347eeb2d1a2e0606885ab1e4682833bf275fd39c189952e26/mmpycocotools-12.0.3.tar.gz#sha256=b26f0b3504fad0be8fdb19f3cfa34d86f4ef97694bb403d172f9e7827781b539 Best match: mmpycocotools 12.0.3 Processing mmpycocotools-12.0.3.tar.gz Writing /tmp/easy_install-peo1xflo/mmpycocotools-12.0.3/setup.cfg Running mmpycocotools-12.0.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-peo1xflo/mmpycocotools-12.0.3/egg-dist-tmp-jpawz9d3 /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/easy_install-peo1xflo/mmpycocotools-12.0.3/pycocotools/_mask.pyx tree = Parsing.p_module(s, pxd, full_module_name) cc1: fatal error: ../common/maskApi.c: No such file or directory compilation terminated. error: Setup script exited with error: command '/usr/bin/gcc' failed with exit code 1
gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
also cant run any of setup to instalation for example: python setup.py develop running develop /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. EasyInstallDeprecationWarning, /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, running egg_info creating MultiScaleDeformableAttention.egg-info writing MultiScaleDeformableAttention.egg-info/PKG-INFO writing dependency_links to MultiScaleDeformableAttention.egg-info/dependency_links.txt writing top-level names to MultiScaleDeformableAttention.egg-info/top_level.txt writing manifest file 'MultiScaleDeformableAttention.egg-info/SOURCES.txt' reading manifest file 'MultiScaleDeformableAttention.egg-info/SOURCES.txt' writing manifest file 'MultiScaleDeformableAttention.egg-info/SOURCES.txt' running build_ext /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/utils/cpp_extension.py:782: UserWarning: The detected CUDA version (11.5) has a minor version mismatch with the version that was used to compile PyTorch (11.1). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'MultiScaleDeformableAttention' extension creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37 creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det/models creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cpu creating /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda Emitting ninja build file /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/3] c++ -MMD -MF /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cpu/ms_deform_attn_cpu.o.d -pthread -B /home/dev/anaconda3/envs/log/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/TH -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/THC -I/home/dev/anaconda3/envs/log/include/python3.7m -c -c /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cpu/ms_deform_attn_cpu.cpp -o /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cpu/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [2/3] /usr/bin/nvcc -DWITH_CUDA -I/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/TH -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/THC -I/home/dev/anaconda3/envs/log/include/python3.7m -c -c /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_attn_cuda.cu -o /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS_ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_attn_cuda.o /usr/bin/nvcc -DWITH_CUDA -I/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/TH -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/THC -I/home/dev/anaconda3/envs/log/include/python3.7m -c -c /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_attn_cuda.cu -o /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS_ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(277): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_im2col_cuda(cudaStream_t, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *) [with scalar_t=double]" /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_attn_cuda.cu(81): here
/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(778): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_attn_cuda.cu(151): here
/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(888): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_attn_cuda.cu(151): here
/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(347): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_attn_cuda.cu(151): here
/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(452): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_attn_cuda.cu(151): here
/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(560): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_attn_cuda.cu(151): here
/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(665): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cuda/ms_deform_attn_cuda.cu(151): here
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’: 435 | function(_Functor&& __f) | ^ /usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’ /usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’: 530 | operator=(_Functor&& __f) | ^ /usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’ [3/3] c++ -MMD -MF /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/vision.o.d -pthread -B /home/dev/anaconda3/envs/log/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/TH -I/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/THC -I/home/dev/anaconda3/envs/log/include/python3.7m -c -c /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/vision.cpp -o /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/build/temp.linux-x86_64-cpython-37/home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/vision.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/vision.cpp:28: /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/ms_deform_attn.h: In function ‘at::Tensor ms_deform_attn_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’: /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/ms_deform_attn.h:46:19: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] 46 | if (value.type().is_cuda()) | ~~~~~~~~~~^~ In file included from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/ATen/Context.h:4, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cpu/ms_deform_attn_cpu.h:29, from /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/ms_deform_attn.h:30, from /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/vision.cpp:28: /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:194:30: note: declared here 194 | DeprecatedTypeProperties & type() const { | ^~~~ In file included from /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/vision.cpp:28: /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/ms_deform_attn.h: In function ‘std::vectorat::Tensor ms_deform_attn_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’: /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/ms_deform_attn.h:68:19: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] 68 | if (value.type().is_cuda()) | ~~~~~~~~~~^~ In file included from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/ATen/Context.h:4, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/cpu/ms_deform_attn_cpu.h:29, from /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/ms_deform_attn.h:30, from /home/dev/Desktop/LoGoNet/detection/al3d_det/models/ops/src/vision.cpp:28: /home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:194:30: note: declared here 194 | DeprecatedTypeProperties & type() const { | ^~~~ ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/dev/anaconda3/envs/log/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1723, in _run_ninja_build env=env) File "/home/dev/anaconda3/envs/log/lib/python3.7/subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 87, in
I've encountered some challenges while setting up the LogoNet project:
- I successfully installed the dependencies from the main requirements.txt.
- However, I faced issues when trying to install the image_modules libraries inside the swin_model folder, which has its own requirements.txt.
Additionally, I seem to run into similar problems as others when:
- Executing any of the setup.py scripts.
- Trying to generate the data infos for KITTI.
For context, I'm currently on:
- Python Version: 3.8.17
- Operating System: Ubuntu 22.04.2 (Note: I recently switched from Python 3.7 and was previously using only Windows.)
I have attached a text file with my current configuration for trying to compile the repository below.
If anyone has managed to compile the code successfully, could you please share the versions of the libraries you used? Any guidance or shared experiences would be appreciated. I hope the details above provide some insights into potential issues.
Thank you in advance.
Did you run the code in windows or linux?
linux - ubuntu 22
I've encountered some challenges while setting up the LogoNet project:
- I successfully installed the dependencies from the main requirements.txt.
- However, I faced issues when trying to install the image_modules libraries inside the swin_model folder, which has its own requirements.txt.
Additionally, I seem to run into similar problems as others when:
- Executing any of the setup.py scripts.
- Trying to generate the data infos for KITTI.
For context, I'm currently on:
- Python Version: 3.8.17
- Operating System: Ubuntu 22.04.2 (Note: I recently switched from Python 3.7 and was previously using only Windows.)
I have attached a text file with my current configuration for trying to compile the repository below.
If anyone has managed to compile the code successfully, could you please share the versions of the libraries you used? Any guidance or shared experiences would be appreciated. I hope the details above provide some insights into potential issues.
Thank you in advance.
Pls do you have a fix for this?I also meet thie problem, especially pip require and python setup.py in swin_model