Package Details: python-cocoapi-git r201.8c9bcc3-1

Git Clone URL: https://aur.archlinux.org/python-cocoapi-git.git (read-only, click to copy)
Package Base: python-cocoapi-git
Description: COCO is a large image dataset designed for object detection, segmentation, person keypoints detection, stuff segmentation, and caption generation.
Upstream URL: https://github.com/cocodataset/cocoapi
Licenses: BSD
Conflicts: python-cocoapi
Provides: python-cocoapi
Submitter: jerry73204
Maintainer: jerry73204
Last Packager: jerry73204
Votes: 0
Popularity: 0.000000
First Submitted: 2018-08-18 06:13
Last Updated: 2020-06-17 05:26

Required by (1)

Sources (1)

Latest Comments

ruestique commented on 2020-06-17 07:29

thanks you too! i already tried, works fine for me))

jerry73204 commented on 2020-06-17 05:28

Thanks! I fixed it and please give it a try.

ruestique commented on 2020-06-17 02:07

add cython into deps

https://github.com/cocodataset/cocoapi/issues/172

jerry73204 commented on 2020-06-16 21:38

I tried a clean build and cannot reproduce your error. Your log prints lots of warnings that's not present on my laptop. Can you tell more about your setup, such as the compiler and its version, and extra CFLAGS and LDFLAGS?

ruestique commented on 2020-06-16 19:48

meh..

:: Starting the build:
==> Making package: python-cocoapi-git r201.8c9bcc3-1 (Tue Jun 16 22:47:38 2020)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating cocoapi git repo...
Fetching origin
==> Validating source files with md5sums...
cocoapi ... Skipped
==> Extracting sources...
-> Creating working copy of cocoapi git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package_python-cocoapi-git()...
running install
running build
running build_py
running build_ext
building 'pycocotools._mask' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -I/usr/lib/python3.8/site-packages/numpy/core/include -I../common -I/usr/include/python3.8 -c ../common/maskApi.c -o build/temp.linux-x86_64-3.8/../common/maskApi.o -Wno-cpp -Wno-unused-function -std=c99
../common/maskApi.c: In function 'rleDecode':
../common/maskApi.c:46:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
46 |       for( k=0; k<R[i].cnts[j]; k++ ) *(M++)=v; v=!v; }}
|       ^~~
../common/maskApi.c:46:49: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
46 |       for( k=0; k<R[i].cnts[j]; k++ ) *(M++)=v; v=!v; }}
|                                                 ^
../common/maskApi.c: In function 'rleFrPoly':
../common/maskApi.c:166:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
166 |   for(j=0; j<k; j++) x[j]=(int)(scale*xy[j*2+0]+.5); x[k]=x[0];
|   ^~~
../common/maskApi.c:166:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
166 |   for(j=0; j<k; j++) x[j]=(int)(scale*xy[j*2+0]+.5); x[k]=x[0];
|                                                      ^
../common/maskApi.c:167:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
167 |   for(j=0; j<k; j++) y[j]=(int)(scale*xy[j*2+1]+.5); y[k]=y[0];
|   ^~~
../common/maskApi.c:167:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
167 |   for(j=0; j<k; j++) y[j]=(int)(scale*xy[j*2+1]+.5); y[k]=y[0];
|                                                      ^
../common/maskApi.c: In function 'rleToString':
../common/maskApi.c:212:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
212 |       if(more) c |= 0x20; c+=48; s[p++]=c;
|       ^~
../common/maskApi.c:212:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
212 |       if(more) c |= 0x20; c+=48; s[p++]=c;
|                           ^
../common/maskApi.c: In function 'rleFrString':
../common/maskApi.c:220:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
220 |   while( s[m] ) m++; cnts=malloc(sizeof(uint)*m); m=0;
|   ^~~~~
../common/maskApi.c:220:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
220 |   while( s[m] ) m++; cnts=malloc(sizeof(uint)*m); m=0;
|                      ^~~~
../common/maskApi.c:228:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
228 |     if(m>2) x+=(long) cnts[m-2]; cnts[m++]=(uint) x;
|     ^~
../common/maskApi.c:228:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
228 |     if(m>2) x+=(long) cnts[m-2]; cnts[m++]=(uint) x;
|                                  ^~~~
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -I/usr/lib/python3.8/site-packages/numpy/core/include -I../common -I/usr/include/python3.8 -c pycocotools/_mask.c -o build/temp.linux-x86_64-3.8/pycocotools/_mask.o -Wno-cpp -Wno-unused-function -std=c99
gcc: error: pycocotools/_mask.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command 'gcc' failed with exit status 1
==> ERROR: A failure occurred in package_python-cocoapi-git().
Aborting...