You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was previosly using python:3.9 (latest version of 3.9) and was running the same application in both, linux and windows containers. Lately, I upgraded python version to python:3.10 and the deployment on linux seems to work fine. However, the windows version fails with the following errors. Apparently, installing building wheel for hiredis==2.0.0 is failing. Since it is a problem only occurring in windows and only on python:3.10 or later, I thought about reporting it here.
I'm also attaching the logs which seems relevant to the case.
2022-09-02T11:07:24.7599974Z Building wheel for hiredis (setup.py): started
2022-09-02T11:07:25.2148577Z Building wheel for hiredis (setup.py): finished with status 'error'
2022-09-02T11:07:25.2213660Z [91m error: subprocess-exited-with-error
2022-09-02T11:07:25.2214847Z
2022-09-02T11:07:25.2215562Z × python setup.py bdist_wheel did not run successfully.
2022-09-02T11:07:25.2223286Z │ exit code: 1
2022-09-02T11:07:25.2223687Z ╰─> [17 lines of output]
2022-09-02T11:07:25.2224453Z C:\Users\ContainerAdministrator\AppData\Local\Temp\pip-install-2aa3rzhj\hiredis_12b42ad0a7154868bba083b970b54850\setup.py:7: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
2022-09-02T11:07:25.2225511Z import sys, imp, os, glob, io
2022-09-02T11:07:25.2226125Z [0m[91m C:\Python\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
2022-09-02T11:07:25.2226698Z warnings.warn(
2022-09-02T11:07:25.2226997Z running bdist_wheel
2022-09-02T11:07:25.2227276Z running build
2022-09-02T11:07:25.2227582Z [0m[91m running build_py
2022-09-02T11:07:25.2227871Z creating build
2022-09-02T11:07:25.2228183Z creating build\lib.win-amd64-cpython-310
2022-09-02T11:07:25.2228512Z creating build\lib.win-amd64-cpython-310\hiredis
2022-09-02T11:07:25.2228917Z copying hiredis\version.py -> build\lib.win-amd64-cpython-310\hiredis
2022-09-02T11:07:25.2229348Z copying hiredis\__init__.py -> build\lib.win-amd64-cpython-310\hiredis
2022-09-02T11:07:25.2229752Z copying hiredis\hiredis.pyi -> build\lib.win-amd64-cpython-310\hiredis
2022-09-02T11:07:25.2230179Z copying hiredis\py.typed -> build\lib.win-amd64-cpython-310\hiredis
2022-09-02T11:07:25.2230641Z running build_ext
2022-09-02T11:07:25.2230915Z building 'hiredis.hiredis' extension
2022-09-02T11:07:25.2231420Z error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
2022-09-02T11:07:25.2231887Z [end of output]
2022-09-02T11:07:25.2232129Z
2022-09-02T11:07:25.2232438Z note: This error originates from a subprocess, and is likely not a problem with pip.
2022-09-02T11:07:25.2232841Z [0m[91m ERROR: Failed building wheel for hiredis
2022-09-02T11:07:25.2233192Z [0m Running setup.py clean for hiredis
2022-09-02T11:07:25.6398759Z Successfully built django-json-widget dj-rest-auth django-allauth autobahn pendulum coreschema future zope.interface
2022-09-02T11:07:25.6401551Z Failed to build hiredis
2022-09-02T11:07:26.5060991Z Installing collected packages: webencodings, twisted-iocpsupport, pywin32, pytz, pyasn1, msgpack, lark-parser, itypes, incremental, constantly, brotli, zopfli, zope.interface, XlsxWriter, wrapt, urllib3, uritemplate, tzdata, typing-extensions, txaio, tinycss2, sqlparse, six, pytzdata, pyrsistent, Pyphen, pyparsing, PyJWT, pydyf, pycparser, pyasn1-modules, psutil, prometheus-client, Pillow, oauthlib, numpy, mysqlclient, MarkupSafe, lxml, jmespath, idna, hiredis, future, fonttools, django-environ, defusedxml, charset-normalizer, certifi, attrs, async-timeout, asgiref, unittest-xml-reporting, requests, python3-openid, python-dateutil, packaging, jsonschema, Jinja2, hyperlink, html5lib, dramatiq, django-json-widget, django, deprecated, cssselect2, cffi, Automat, aioredis, weasyprint, twisted, requests-oauthlib, redis, pendulum, pandas, model-bakery, jsonfield, fmpy, djangorestframework, django-storages, django-safedelete, django-reversion, django-health-check, django_dramatiq, django-debug-toolbar, django-cors-headers, cryptography, coreschema, botocore, service-identity, s3transfer, pyopenssl, periodiq, djangorestframework-simplejwt, dj-rest-auth, coreapi, autobahn, django-allauth, boto3, django-ses, daphne, channels, channels-redis
2022-09-02T11:07:38.5715087Z Running setup.py install for hiredis: started
2022-09-02T11:07:39.1067346Z Running setup.py install for hiredis: finished with status 'error'
2022-09-02T11:07:39.1113228Z [91m error: subprocess-exited-with-error
2022-09-02T11:07:39.1116191Z
2022-09-02T11:07:39.1117389Z × [0m[91mRunning setup.py install for hiredis did not run successfully.
2022-09-02T11:07:39.1120701Z │ exit code: 1
2022-09-02T11:07:39.1121654Z ╰─> [19 lines of output]
2022-09-02T11:07:39.1122664Z [0m[91mC:\Users\ContainerAdministrator\AppData\Local\Temp\pip-install-2aa3rzhj\hiredis_12b42ad0a7154868bba083b970b54850\setup.py:7: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
2022-09-02T11:07:39.1123864Z import sys, imp, os, glob, io
2022-09-02T11:07:39.1124613Z C:\Python\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
2022-09-02T11:07:39.1125254Z warnings.warn(
2022-09-02T11:07:39.1125644Z running install
2022-09-02T11:07:39.1126281Z C:\Python\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
2022-09-02T11:07:39.1126919Z warnings.warn(
2022-09-02T11:07:39.1127264Z running build
2022-09-02T11:07:39.1127683Z running build_py
2022-09-02T11:07:39.1128059Z creating build
2022-09-02T11:07:39.1129911Z creating build\lib.win-amd64-cpython-310
2022-09-02T11:07:39.1131511Z creating build\lib.win-amd64-cpython-310\hiredis
2022-09-02T11:07:39.1132110Z copying hiredis\version.py -> build\lib.win-amd64-cpython-310\hiredis
2022-09-02T11:07:39.1134486Z copying hiredis\__init__.py -> build\lib.win-amd64-cpython-310\hiredis
2022-09-02T11:07:39.1135110Z copying hiredis\hiredis.pyi -> build\lib.win-amd64-cpython-310\hiredis
2022-09-02T11:07:39.1136454Z copying hiredis\py.typed -> build\lib.win-amd64-cpython-310\hiredis
2022-09-02T11:07:39.1138680Z running build_ext
2022-09-02T11:07:39.1139414Z building 'hiredis.hiredis' extension
2022-09-02T11:07:39.1142068Z error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
2022-09-02T11:07:39.1144092Z [end of output]
2022-09-02T11:07:39.1146703Z
2022-09-02T11:07:39.1147277Z note: This error originates from a subprocess, and is likely not a problem with pip.
2022-09-02T11:07:39.1147902Z [0m[91merror: legacy-install-failure
2022-09-02T11:07:39.1149333Z
2022-09-02T11:07:39.1150780Z × Encountered error while trying to install package.
2022-09-02T11:07:39.1152853Z ╰─> hiredis
2022-09-02T11:07:39.1153216Z
2022-09-02T11:07:39.1153645Z note: This is an issue with the package mentioned above, not pip.
2022-09-02T11:07:39.1154159Z hint: See above for output from the failure.
2022-09-02T11:07:42.8673648Z [0mThe command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; pip3 install --no-cache-dir -r /tmp/requirements.txt' returned a non-zero code: 1
2022-09-02T11:07:42.8774578Z ##[error]The process 'C:\Program Files\Docker\docker.exe' failed with exit code 1
2022-09-02T11:07:42.8857621Z ##[section]Finishing: Build an image
The text was updated successfully, but these errors were encountered:
From what I can tell, hiredis doesn't support Python 3.10 yet (it's supported in their master branch via redis/hiredis-py#117, but I don't think that's in a release yet).
I was previosly using
python:3.9
(latest version of 3.9) and was running the same application in both, linux and windows containers. Lately, I upgraded python version topython:3.10
and the deployment on linux seems to work fine. However, the windows version fails with the following errors. Apparently, installing building wheel forhiredis==2.0.0
is failing. Since it is a problem only occurring in windows and only on python:3.10 or later, I thought about reporting it here.I'm also attaching the logs which seems relevant to the case.
...
...
The text was updated successfully, but these errors were encountered: