MVIG-SJTU / AlphaPose

Real-Time and Accurate Full-Body Multi-Person Pose Estimation&Tracking System
http://mvig.org/research/alphapose.html
Other
8.06k stars 1.98k forks source link

x86_64-linux-gnu-gcc: error: ../common/maskApi.c: no such file or directory #1195

Open Ishihara-Masabumi opened 11 months ago

Ishihara-Masabumi commented 11 months ago

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!

std-microblock commented 10 months ago

same problem

std-microblock commented 10 months ago

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

PressGO commented 9 months ago

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!

zhage6 commented 1 day ago

thank you