Skip to content

install issue related to building #170

@glw

Description

@glw

Im using coco evaluation after training with tensorflow object detection api.
OS: Ubuntu 16
Python3

I saw the issues for installing cocoapi using python3.

  • pip3 installed pycocotools
  • git cloned repo then, cp -r pycocotools /tensorflow/models/research/
  • I was missing tkinter so, apt-get install python3-tk

I now have pycocotools installed under Python3.

running python3 object_detection/eval.py ... still gave me errors.

ImportError: No module named 'pycocotools._mask'

I went back to cocoapi. Assuming I missed something in the installation.

When running python setup command instead of make within the cocoapi/PythonAPI, it does not complete successfully. I get error

python3 setup.py build_ext install

running build_ext
skipping 'pycocotools/_mask.c' Cython extension (up-to-date)
building 'pycocotools._mask' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.5/dist-packages/numpy/core/include -I../common -I/usr/include/python3.5m -c ../common/maskApi.c -o build/temp.linux-x86_64-3.5/../common/maskApi.o -Wno-cpp -Wno-unused-function -std=c99
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

And when running

python3 setup.py build_ext --inplace
running build_ext
skipping 'pycocotools/_mask.c' Cython extension (up-to-date)
building 'pycocotools._mask' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.5/dist-packages/numpy/core/include -I../common -I/usr/include/python3.5m -c ../common/maskApi.c -o build/temp.linux-x86_64-3.5/../common/maskApi.o -Wno-cpp -Wno-unused-function -std=c99
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Im not sure where to go from here... Appears to be related to Cython but that is installed at version 0.28.3. I also check to see if gcc is installed just in case and it is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions