Skip to content

Failing to install. Cannot install hiredis #150

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

Closed
Marseel-E opened this issue Mar 12, 2022 · 1 comment
Closed

Failing to install. Cannot install hiredis #150

Marseel-E opened this issue Mar 12, 2022 · 1 comment

Comments

@Marseel-E
Copy link

Collecting redis-om
  Using cached redis_om-0.0.20-py3-none-any.whl (74 kB)
Requirement already satisfied: redis<5.0.0,>=3.5.3 in c:\users\marsel\appdata\local\programs\python\python310\lib\site-packages (from redis-om) (4.1.4)
Collecting hiredis<3.0.0,>=2.0.0
  Using cached hiredis-2.0.0.tar.gz (75 kB)
  Preparing metadata (setup.py) ... done
Collecting python-dotenv<0.20.0,>=0.19.1
  Downloading python_dotenv-0.19.2-py2.py3-none-any.whl (17 kB)
Collecting click<9.0.0,>=8.0.1
  Using cached click-8.0.4-py3-none-any.whl (97 kB)
Collecting cleo==1.0.0a4
  Using cached cleo-1.0.0a4-py3-none-any.whl (77 kB)
Collecting types-six<2.0.0,>=1.16.1
  Using cached types_six-1.16.12-py3-none-any.whl (13 kB)
Collecting typing-extensions<5.0.0,>=4.0.0
  Using cached typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Collecting pptree<4.0,>=3.1
  Using cached pptree-3.1.tar.gz (3.0 kB)
  Preparing metadata (setup.py) ... done
Collecting aioredis<3.0.0,>=2.0.0
  Using cached aioredis-2.0.1-py3-none-any.whl (71 kB)
Collecting python-ulid<2.0.0,>=1.0.3
  Using cached python_ulid-1.1.0-py3-none-any.whl (9.4 kB)
Collecting types-redis<5.0.0,>=3.5.9
  Using cached types_redis-4.1.17-py3-none-any.whl (34 kB)
Collecting six<2.0.0,>=1.16.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pydantic<2.0.0,>=1.8.2
  Using cached pydantic-1.9.0-cp310-cp310-win_amd64.whl (2.1 MB)
Collecting crashtest<0.4.0,>=0.3.1
  Using cached crashtest-0.3.1-py3-none-any.whl (7.0 kB)
Collecting pylev<2.0.0,>=1.3.0
  Using cached pylev-1.4.0-py2.py3-none-any.whl (6.1 kB)
Requirement already satisfied: async-timeout in c:\users\marsel\appdata\local\programs\python\python310\lib\site-packages (from aioredis<3.0.0,>=2.0.0->redis-om) (4.0.2)
Collecting colorama
  Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: deprecated>=1.2.3 in c:\users\marsel\appdata\local\programs\python\python310\lib\site-packages (from redis<5.0.0,>=3.5.3->redis-om) (1.2.13)
Requirement already satisfied: packaging>=20.4 in c:\users\marsel\appdata\local\programs\python\python310\lib\site-packages (from redis<5.0.0,>=3.5.3->redis-om) (21.3)
Requirement already satisfied: wrapt<2,>=1.10 in c:\users\marsel\appdata\local\programs\python\python310\lib\site-packages (from deprecated>=1.2.3->redis<5.0.0,>=3.5.3->redis-om) (1.14.0)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\users\marsel\appdata\local\programs\python\python310\lib\site-packages (from packaging>=20.4->redis<5.0.0,>=3.5.3->redis-om) (3.0.7)
Using legacy 'setup.py install' for hiredis, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pptree, since package 'wheel' is not installed.
Installing collected packages: types-six, types-redis, pylev, pptree, typing-extensions, six, python-ulid, python-dotenv, hiredis, crashtest, colorama, pydantic, click, cleo, aioredis, redis-om
  Running setup.py install for pptree ... done
  Running setup.py install for hiredis ... error
  error: subprocess-exited-with-error

  × Running setup.py install for hiredis did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      C:\Users\Marsel\AppData\Local\Temp\pip-install-m8i9djzv\hiredis_6638e88d8f894ca2b3c269c6cc0a04ca\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
        import sys, imp, os, glob, io
      C:\Users\Marsel\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.10
      creating build\lib.win-amd64-3.10\hiredis
      copying hiredis\version.py -> build\lib.win-amd64-3.10\hiredis
      copying hiredis\__init__.py -> build\lib.win-amd64-3.10\hiredis
      copying hiredis\hiredis.pyi -> build\lib.win-amd64-3.10\hiredis
      copying hiredis\py.typed -> build\lib.win-amd64-3.10\hiredis
      running build_ext
      building 'hiredis.hiredis' extension
      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/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> hiredis

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
@simonprickett
Copy link
Contributor

This looks like an issue with hiredis rather than redis-om-python. It looks like you're missing C++ build tools:

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/

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