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

Cocoapi doesnt support windows #32

Closed
Gresliebear opened this issue Jul 7, 2021 · 4 comments
Closed

Cocoapi doesnt support windows #32

Gresliebear opened this issue Jul 7, 2021 · 4 comments

Comments

@Gresliebear
Copy link

E:\BraTS Challenge\vessel_env\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
pycocotools\_mask.c(3280): warning C4244: '=': conversion from 'Py_ssize_t' to 'siz', possible loss of data
pycocotools\_mask.c(3690): warning C4244: 'function': conversion from 'npy_intp' to 'siz', possible loss of data
pycocotools\_mask.c(3690): warning C4244: 'function': conversion from 'npy_intp' to 'siz', possible loss of data
pycocotools\_mask.c(3690): warning C4244: 'function': conversion from 'npy_intp' to 'siz', possible loss of data
pycocotools\_mask.c(6697): warning C4244: '=': conversion from 'npy_intp' to 'siz', possible loss of data
pycocotools\_mask.c(7455): warning C4244: '=': conversion from 'Py_ssize_t' to 'siz', possible loss of data
creating E:\BraTS Challenge\RedTinSaintBernard-for-BraTS2021-challenge\cocoapi\PythonAPI\build\lib.win-amd64-3.9
creating E:\BraTS Challenge\RedTinSaintBernard-for-BraTS2021-challenge\cocoapi\PythonAPI\build\lib.win-amd64-3.9\pycocotools
d:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:E:\BraTS Challenge\vessel_env\libs /LIBPATH:C:\Python39\libs /LIBPATH:C:\Python39 /LIBPATH:E:\BraTS Challenge\vessel_env\PCbuild\amd64 /LIBPATH:d:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64 /EXPORT:PyInit__mask build\temp.win-amd64-3.9\Release\../common/maskApi.obj build\temp.win-amd64-3.9\Release\pycocotools\_mask.obj /OUT:build\lib.win-amd64-3.9\pycocotools\_mask.cp39-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.9\Release\../common\_mask.cp39-win_amd64.lib
   Creating library build\temp.win-amd64-3.9\Release\../common\_mask.cp39-win_amd64.lib and object build\temp.win-amd64-3.9\Release\../common\_mask.cp39-win_amd64.exp
Generating code
Finished generating code
copying build\lib.win-amd64-3.9\pycocotools\_mask.cp39-win_amd64.pyd -> pycocotools
rm -rf build
process_begin: CreateProcess(NULL, rm -rf build, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:4: all] Error 2

cocodataset/cocoapi#9

@Gresliebear
Copy link
Author

I did the following

remove lines from setup.py extra_compile_args=[‘-Wno-cpp’, ‘-Wno-unused-function’, ‘-std=c99’]
then run python setup.py build_ext install

it installed correctly but I will get back if it work?

@aquariusjay
Copy link
Contributor

Hi Gresliebear,

Could you please report the issue to COCOAPI? Since it is not related to our library.
Additionally, we have not verified our library on Windows.

@Gresliebear
Copy link
Author

CocoAPI will never support windows but there Is a fork that does, I am running your library on windows right now,

https://chocolatey.org/install make it possibly, but to be honest I am stuck on export section its confusion how this works in a virtual environment python

@aquariusjay
Copy link
Contributor

Closing the issue, as (1) it is not related to our library, and (2) it has been inactive for a long time.

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

2 participants