Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip -r install requirements.txt-error #144

Open
DDXDaniel opened this issue May 7, 2021 · 1 comment
Open

pip -r install requirements.txt-error #144

DDXDaniel opened this issue May 7, 2021 · 1 comment

Comments

@DDXDaniel
Copy link

ERROR: Command errored out with exit status 1:
command: /home/kpl/.conda/envs/PartAssembly/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-gu1d26xj/setup.py'"'"'; __
file__='"'"'/tmp/pip-req-build-gu1d26xj/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-
kwvvhaks/install-record.txt --single-version-externally-managed --compile --install-headers /home/kpl/.conda/envs/PartAssembly/include/python3.7m/pointnet2-ops
cwd: /tmp/pip-req-build-gu1d26xj/
Complete output (55 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/pointnet2_ops
copying pointnet2_ops/pointnet2_modules.py -> build/lib.linux-x86_64-3.7/pointnet2_ops
copying pointnet2_ops/pointnet2_utils.py -> build/lib.linux-x86_64-3.7/pointnet2_ops
copying pointnet2_ops/_version.py -> build/lib.linux-x86_64-3.7/pointnet2_ops
copying pointnet2_ops/init.py -> build/lib.linux-x86_64-3.7/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'
writing manifest file 'pointnet2_ops.egg-info/SOURCES.txt'
creating build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src
creating build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/ball_query.h -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/cuda_utils.h -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/group_points.h -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/interpolate.h -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/sampling.h -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/utils.h -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/include
creating build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/ball_query.cpp -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/ball_query_gpu.cu -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/bindings.cpp -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/group_points.cpp -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/group_points_gpu.cu -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/interpolate.cpp -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/interpolate_gpu.cu -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/sampling.cpp -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/sampling_gpu.cu -> build/lib.linux-x86_64-3.7/pointnet2_ops/_ext-src/src
running build_ext
building 'pointnet2_ops._ext' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/pointnet2_ops
creating build/temp.linux-x86_64-3.7/pointnet2_ops/_ext-src
creating build/temp.linux-x86_64-3.7/pointnet2_ops/_ext-src/src
gcc -pthread -B /home/wuruihai/anaconda3/envs/PartAssembly/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/
pip-req-build-gu1d26xj/pointnet2_ops/_ext-src/include -I/home/kpl/.conda/envs/PartAssembly/lib/python3.7/site-packages/torch/include -I/home/kpl/.conda/envs/PartAssembly/lib
/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/kpl/.conda/envs/PartAssembly/lib/python3.7/site-packages/torch/include/TH -I/home/kpl/.conda/envs/PartA
ssembly/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/kpl/.conda/envs/PartAssembly/include/python3.7m -c pointnet2_ops/_ext-src/src/ball_qu
ery.cpp -o build/temp.linux-x86_64-3.7/pointnet2_ops/_ext-src/src/ball_query.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -st
d=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
pointnet2_ops/_ext-src/src/ball_query.cpp: In function ‘at::Tensor ball_query(at::Tensor, at::Tensor, float, int)’:
pointnet2_ops/_ext-src/src/ball_query.cpp:24:33: error: expected primary-expression before ‘float’
float *ptr1 = new_xyz.data_ptr();
^~~~~
pointnet2_ops/_ext-src/src/ball_query.cpp:25:29: error: expected primary-expression before ‘float’
float *ptr2 = xyz.data_ptr();
^~~~~
pointnet2_ops/_ext-src/src/ball_query.cpp:26:27: error: expected primary-expression before ‘int’
int *ptr3 = idx.data_ptr();
^~~
error: command 'gcc' failed with exit status 1
----------------------------------------

@JoycexxZ
Copy link

Hi, how did you solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants