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

clang: error: no such file or directory: 'pycocotools/_mask.c' when running the makefile #661

Open
antoinecomp opened this issue Sep 22, 2023 · 4 comments

Comments

@antoinecomp
Copy link

I am trying to install coco locally. Yet it seems some files are missing when running the makefile, it seems it cannot find the pycocotools/_mask.c file. This file appears to be missing or not properly generated.

(venv) remplacement@remplacements-MacBook-Pro PythonAPI % make
python setup.py build_ext --inplace
running build_ext
building 'pycocotools._mask' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -I/Users/remplacement/PycharmProjects/automaticImageCaptioning/venv/lib/python3.8/site-packages/numpy/core/include -I../common -I/Users/remplacement/PycharmProjects/automaticImageCaptioning/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c ../common/maskApi.c -o build/temp.macosx-10.14.6-arm64-cpython-38/../common/maskApi.o -Wno-cpp -Wno-unused-function -std=c99
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -I/Users/remplacement/PycharmProjects/automaticImageCaptioning/venv/lib/python3.8/site-packages/numpy/core/include -I../common -I/Users/remplacement/PycharmProjects/automaticImageCaptioning/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c pycocotools/_mask.c -o build/temp.macosx-10.14.6-arm64-cpython-38/pycocotools/_mask.o -Wno-cpp -Wno-unused-function -std=c99
clang: error: no such file or directory: 'pycocotools/_mask.c'
clang: error: no input files
error: command '/usr/bin/clang' failed with exit code 1
make: *** [all] Error 1

There was no need to rebuild the file as the MakeFile already has python setup.py build_ext --inplace

@ywpkwon
Copy link

ywpkwon commented Oct 2, 2023

same here

@alex-pv01
Copy link

also here

@Jansansnss
Copy link

It might be helpful to try installing pycocotools directly from the GitHub repository, "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI"

@MedericFourmy
Copy link

pip install cython did the trick for me

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

5 participants