AlphaPose
AlphaPose copied to clipboard
x86_64-linux-gnu-gcc: error: ../common/maskApi.c: no such file or directory
When I build this repository, the following error occurred.
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/ishihara/.local/lib/python3.8/site-packages/numpy/core/include -Icommon -I/usr/include/python3.8 -c ../common/maskApi.c -o build/temp.linux-x86_64-3.8/../common/maskApi.o
x86_64-linux-gnu-gcc: error: ../common/maskApi.c: no such file or directory
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for halpecocotools
Please let me know how to fix it!
same problem
Well, that's because https://github.com/HaoyiZhu/HalpeCOCOAPI/issues/1 Manually run
pip install git+https://github.com/Ambrosiussen/HalpeCOCOAPI.git#subdirectory=PythonAPI
and patch setup py from
def get_install_requires():
install_requires = [
'six', 'terminaltables', 'scipy',
'opencv-python', 'matplotlib', 'visdom',
'tqdm', 'tensorboardx', 'easydict',
'pyyaml', 'halpecocotools',
'torch>=1.1.0', 'torchvision>=0.3.0',
'munkres', 'timm==0.1.20', 'natsort'
]
to
def get_install_requires():
install_requires = [
'six', 'terminaltables', 'scipy',
'opencv-python', 'matplotlib', 'visdom',
'tqdm', 'tensorboardx', 'easydict',
'pyyaml',
'torch>=1.1.0', 'torchvision>=0.3.0',
'munkres', 'timm==0.1.20', 'natsort'
]
fixed the problem for me
Well, that's because HaoyiZhu/HalpeCOCOAPI#1 Manually run
pip install git+https://github.com/Ambrosiussen/HalpeCOCOAPI.git#subdirectory=PythonAPI
and patch setup py from
def get_install_requires(): install_requires = [ 'six', 'terminaltables', 'scipy', 'opencv-python', 'matplotlib', 'visdom', 'tqdm', 'tensorboardx', 'easydict', 'pyyaml', 'halpecocotools', 'torch>=1.1.0', 'torchvision>=0.3.0', 'munkres', 'timm==0.1.20', 'natsort' ]
to
def get_install_requires(): install_requires = [ 'six', 'terminaltables', 'scipy', 'opencv-python', 'matplotlib', 'visdom', 'tqdm', 'tensorboardx', 'easydict', 'pyyaml', 'torch>=1.1.0', 'torchvision>=0.3.0', 'munkres', 'timm==0.1.20', 'natsort' ]
fixed the problem for me
Hi this fixed it for me. TYVM!