Open emersondelemmus opened 2 years ago
Hi @WongKinYiu , Please update requirements.txt as it is no longer working. I am attaching the error log.
ERROR: Command errored out with exit status 1:
command: 'C:\Miniconda3\envs\yolor\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\kukil\\AppData\\Local\\Temp\\pip-install-qvy2nxxv\\pycocotools_9b6be5a4cba845f5aa2f3004a9aaff41\\setup.py'"'"'; __file__='"'"'C:\\Users\\kukil\\AppData\\Local\\Temp\\pip-install-qvy2nxxv\\pycocotools_9b6be5a4cba845f5aa2f3004a9aaff41\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\kukil\AppData\Local\Temp\pip-wheel-6x2fuzv6'
cwd: C:\Users\kukil\AppData\Local\Temp\pip-install-qvy2nxxv\pycocotools_9b6be5a4cba845f5aa2f3004a9aaff41\
Complete output (24 lines):
C:\Miniconda3\envs\yolor\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pycocotools
copying pycocotools\coco.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\cocoeval.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\mask.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\__init__.py -> build\lib.win-amd64-3.8\pycocotools
running build_ext
cythoning pycocotools/_mask.pyx to pycocotools\_mask.c
c:\users\kukil\appdata\local\temp\pip-install-qvy2nxxv\pycocotools_9b6be5a4cba845f5aa2f3004a9aaff41\.eggs\cython-0.29.30-py3.8.egg\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\kukil\AppData\Local\Temp\pip-install-qvy2nxxv\pycocotools_9b6be5a4cba845f5aa2f3004a9aaff41\pycocotools\_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pycocotools._mask' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\common
creating build\temp.win-amd64-3.8\Release\pycocotools
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic:\users\kukil\appdata\local\temp\pip-install-qvy2nxxv\pycocotools_9b6be5a4cba845f5aa2f3004a9aaff41\.eggs\numpy-1.22.4-py3.8-win-amd64.egg\numpy\core\include -I./common -IC:\Miniconda3\envs\yolor\include -IC:\Miniconda3\envs\yolor\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tc./common/maskApi.c /Fobuild\temp.win-amd64-3.8\Release\./common/maskApi.obj -Wno-cpp -Wno-unused-function -std=c99
cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Failed building wheel for pycocotools
Running setup.py clean for pycocotools
Failed to build pycocotools
Installing collected packages: urllib3, pyasn1, idna, charset-normalizer, zipp, six, rsa, requests, pyparsing, pyasn1-modules, oauthlib, cachetools, typing-extensions, requests-oauthlib, pytz, python-dateutil, Pillow, packaging, numpy, kiwisolver, importlib-metadata, google-auth, fonttools, cycler, werkzeug, tqdm, torch, tensorboard-plugin-wit, tensorboard-data-server, scipy, protobuf, pandas, matplotlib, markdown, grpcio, google-auth-oauthlib, Cython, absl-py, torchvision, thop, tensorboard, seaborn, PyYAML, pycocotools, opencv-python
Running setup.py install for pycocotools ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Miniconda3\envs\yolor\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\kukil\\AppData\\Local\\Temp\\pip-install-qvy2nxxv\\pycocotools_9b6be5a4cba845f5aa2f3004a9aaff41\\setup.py'"'"'; __file__='"'"'C:\\Users\\kukil\\AppData\\Local\\Temp\\pip-install-qvy2nxxv\\pycocotools_9b6be5a4cba845f5aa2f3004a9aaff41\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\kukil\AppData\Local\Temp\pip-record-c_ehz9gy\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Miniconda3\envs\yolor\Include\pycocotools'
cwd: C:\Users\kukil\AppData\Local\Temp\pip-install-qvy2nxxv\pycocotools_9b6be5a4cba845f5aa2f3004a9aaff41\
Complete output (22 lines):
running install
C:\Miniconda3\envs\yolor\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pycocotools
copying pycocotools\coco.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\cocoeval.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\mask.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\__init__.py -> build\lib.win-amd64-3.8\pycocotools
running build_ext
skipping 'pycocotools\_mask.c' Cython extension (up-to-date)
building 'pycocotools._mask' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\common
creating build\temp.win-amd64-3.8\Release\pycocotools
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Miniconda3\envs\yolor\lib\site-packages\numpy\core\include -I./common -IC:\Miniconda3\envs\yolor\include -IC:\Miniconda3\envs\yolor\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tc./common/maskApi.c /Fobuild\temp.win-amd64-3.8\Release\./common/maskApi.obj -Wno-cpp -Wno-unused-function -std=c99
cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Miniconda3\envs\yolor\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\kukil\\AppData\\Local\\Temp\\pip-install-qvy2nxxv\\pycocotools_9b6be5a4cba845f5aa2f3004a9aaff41\\setup.py'"'"'; __file__='"'"'C:\\Users\\kukil\\AppData\\Local\\Temp\\pip-install-qvy2nxxv\\pycocotools_9b6be5a4cba845f5aa2f3004a9aaff41\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\kukil\AppData\Local\Temp\pip-record-c_ehz9gy\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Miniconda3\envs\yolor\Include\pycocotools' Check the logs for full command output.
Requirements file requires torch==1.7.0. This version is outdated and is not available to download from pytorch's official website.