Skip to content

pip install stability-sdk not workin python 3.11.1 Windows 10 #162

@CodingDude81

Description

@CodingDude81

C:\Users\titan>where python
C:\Program Files\Python311\python.exe
C:\Users\titan\AppData\Local\Microsoft\WindowsApps\python.exe

C:\Users\titan>pip install stability-sdk
Defaulting to user installation because normal site-packages is not writeable
Collecting stability-sdk
Using cached stability_sdk-0.3.1-py3-none-any.whl (47 kB)
Requirement already satisfied: Pillow in c:\users\titan\appdata\roaming\python\python311\site-packages (from stability-sdk) (9.3.0)
Collecting grpcio==1.48.1
Using cached grpcio-1.48.1.tar.gz (22.0 MB)
Preparing metadata (setup.py) ... done
Collecting grpcio-tools==1.48.1
Using cached grpcio-tools-1.48.1.tar.gz (2.2 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: python-dotenv in c:\users\titan\appdata\roaming\python\python311\site-packages (from stability-sdk) (0.21.0)
Requirement already satisfied: protobuf==3.19.5 in c:\users\titan\appdata\roaming\python\python311\site-packages (from stability-sdk) (3.19.5)
Requirement already satisfied: six>=1.5.2 in c:\users\titan\appdata\roaming\python\python311\site-packages (from grpcio==1.48.1->stability-sdk) (1.16.0)
Requirement already satisfied: setuptools in c:\program files\python311\lib\site-packages (from grpcio-tools==1.48.1->stability-sdk) (65.5.0)
Installing collected packages: grpcio, grpcio-tools, stability-sdk
DEPRECATION: grpcio is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
Running setup.py install for grpcio ... error
error: subprocess-exited-with-error

× Running setup.py install for grpcio did not run successfully.
│ exit code: 1
╰─> [193 lines of output]
ASM Builds for BoringSSL currently not supported on: win-amd64
Found cython-generated files...
running install
C:\Program Files\Python311\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
running build_project_metadata
creating python_build
creating python_build\lib.win-amd64-cpython-311
creating python_build\lib.win-amd64-cpython-311\grpc
copying src\python\grpcio\grpc_auth.py -> python_build\lib.win-amd64-cpython-311\grpc
copying src\python\grpcio\grpc_channel.py -> python_build\lib.win-amd64-cpython-311\grpc
copying src\python\grpcio\grpc_common.py -> python_build\lib.win-amd64-cpython-311\grpc
copying src\python\grpcio\grpc_compression.py -> python_build\lib.win-amd64-cpython-311\grpc
copying src\python\grpcio\grpc_grpcio_metadata.py -> python_build\lib.win-amd64-cpython-311\grpc
copying src\python\grpcio\grpc_interceptor.py -> python_build\lib.win-amd64-cpython-311\grpc
copying src\python\grpcio\grpc_plugin_wrapping.py -> python_build\lib.win-amd64-cpython-311\grpc
copying src\python\grpcio\grpc_runtime_protos.py -> python_build\lib.win-amd64-cpython-311\grpc
copying src\python\grpcio\grpc_server.py -> python_build\lib.win-amd64-cpython-311\grpc
copying src\python\grpcio\grpc_simple_stubs.py -> python_build\lib.win-amd64-cpython-311\grpc
copying src\python\grpcio\grpc_utilities.py -> python_build\lib.win-amd64-cpython-311\grpc
copying src\python\grpcio\grpc_init_.py -> python_build\lib.win-amd64-cpython-311\grpc
creating python_build\lib.win-amd64-cpython-311\grpc\aio
copying src\python\grpcio\grpc\aio_base_call.py -> python_build\lib.win-amd64-cpython-311\grpc\aio
copying src\python\grpcio\grpc\aio_base_channel.py -> python_build\lib.win-amd64-cpython-311\grpc\aio
copying src\python\grpcio\grpc\aio_base_server.py -> python_build\lib.win-amd64-cpython-311\grpc\aio
copying src\python\grpcio\grpc\aio_call.py -> python_build\lib.win-amd64-cpython-311\grpc\aio
copying src\python\grpcio\grpc\aio_channel.py -> python_build\lib.win-amd64-cpython-311\grpc\aio
copying src\python\grpcio\grpc\aio_interceptor.py -> python_build\lib.win-amd64-cpython-311\grpc\aio
copying src\python\grpcio\grpc\aio_metadata.py -> python_build\lib.win-amd64-cpython-311\grpc\aio
copying src\python\grpcio\grpc\aio_server.py -> python_build\lib.win-amd64-cpython-311\grpc\aio
copying src\python\grpcio\grpc\aio_typing.py -> python_build\lib.win-amd64-cpython-311\grpc\aio
copying src\python\grpcio\grpc\aio_utils.py -> python_build\lib.win-amd64-cpython-311\grpc\aio
copying src\python\grpcio\grpc\aio_init_.py -> python_build\lib.win-amd64-cpython-311\grpc\aio
creating python_build\lib.win-amd64-cpython-311\grpc\beta
copying src\python\grpcio\grpc\beta\implementations.py -> python_build\lib.win-amd64-cpython-311\grpc\beta
copying src\python\grpcio\grpc\beta\interfaces.py -> python_build\lib.win-amd64-cpython-311\grpc\beta
copying src\python\grpcio\grpc\beta\utilities.py -> python_build\lib.win-amd64-cpython-311\grpc\beta
copying src\python\grpcio\grpc\beta_client_adaptations.py -> python_build\lib.win-amd64-cpython-311\grpc\beta
copying src\python\grpcio\grpc\beta_metadata.py -> python_build\lib.win-amd64-cpython-311\grpc\beta
copying src\python\grpcio\grpc\beta_server_adaptations.py -> python_build\lib.win-amd64-cpython-311\grpc\beta
copying src\python\grpcio\grpc\beta_init_.py -> python_build\lib.win-amd64-cpython-311\grpc\beta
creating python_build\lib.win-amd64-cpython-311\grpc\experimental
copying src\python\grpcio\grpc\experimental\gevent.py -> python_build\lib.win-amd64-cpython-311\grpc\experimental
copying src\python\grpcio\grpc\experimental\session_cache.py -> python_build\lib.win-amd64-cpython-311\grpc\experimental
copying src\python\grpcio\grpc\experimental_init_.py -> python_build\lib.win-amd64-cpython-311\grpc\experimental
creating python_build\lib.win-amd64-cpython-311\grpc\framework
copying src\python\grpcio\grpc\framework_init_.py -> python_build\lib.win-amd64-cpython-311\grpc\framework
creating python_build\lib.win-amd64-cpython-311\grpc_cython
copying src\python\grpcio\grpc_cython_init_.py -> python_build\lib.win-amd64-cpython-311\grpc_cython
creating python_build\lib.win-amd64-cpython-311\grpc\experimental\aio
copying src\python\grpcio\grpc\experimental\aio_init_.py -> python_build\lib.win-amd64-cpython-311\grpc\experimental\aio
creating python_build\lib.win-amd64-cpython-311\grpc\framework\common
copying src\python\grpcio\grpc\framework\common\cardinality.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\common
copying src\python\grpcio\grpc\framework\common\style.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\common
copying src\python\grpcio\grpc\framework\common_init_.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\common
creating python_build\lib.win-amd64-cpython-311\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\abandonment.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\callable_util.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\future.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\logging_pool.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\stream.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\stream_util.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation_init_.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\foundation
creating python_build\lib.win-amd64-cpython-311\grpc\framework\interfaces
copying src\python\grpcio\grpc\framework\interfaces_init_.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\interfaces
creating python_build\lib.win-amd64-cpython-311\grpc\framework\interfaces\base
copying src\python\grpcio\grpc\framework\interfaces\base\base.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\interfaces\base
copying src\python\grpcio\grpc\framework\interfaces\base\utilities.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\interfaces\base
copying src\python\grpcio\grpc\framework\interfaces\base_init_.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\interfaces\base
creating python_build\lib.win-amd64-cpython-311\grpc\framework\interfaces\face
copying src\python\grpcio\grpc\framework\interfaces\face\face.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\interfaces\face
copying src\python\grpcio\grpc\framework\interfaces\face\utilities.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\interfaces\face
copying src\python\grpcio\grpc\framework\interfaces\face_init_.py -> python_build\lib.win-amd64-cpython-311\grpc\framework\interfaces\face
creating python_build\lib.win-amd64-cpython-311\grpc_cython_cygrpc
copying src\python\grpcio\grpc_cython_cygrpc_init_.py -> python_build\lib.win-amd64-cpython-311\grpc_cython_cygrpc
creating python_build\lib.win-amd64-cpython-311\grpc_cython_credentials
copying src\python\grpcio\grpc_cython_credentials\roots.pem -> python_build\lib.win-amd64-cpython-311\grpc_cython_credentials
running build_ext
Non-fatal exception:Traceback (most recent call last):
File "C:\Users\titan\AppData\Local\Temp\pip-install-a_0xzawx\grpcio_b8ad5a08d1734751b7cb37db4eb2844a\src\python\grpcio\commands.py", line 231, in compiler_ok_with_extra_std
cc_test = subprocess.Popen(['cc', '-x', 'c', '-std=c++14', '-'],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\subprocess.py", line 1024, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\Python311\Lib\subprocess.py", line 1493, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable

  Found cython-generated files...
  building 'grpc._cython.cygrpc' extension
  Traceback (most recent call last):
    File "C:\Users\titan\AppData\Local\Temp\pip-install-a_0xzawx\grpcio_b8ad5a08d1734751b7cb37db4eb2844a\src\python\grpcio\commands.py", line 280, in build_extensions
      build_ext.build_ext.build_extensions(self)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 466, in build_extensions
      self._build_extensions_serial()
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 492, in _build_extensions_serial
      self.build_extension(ext)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension
      _build_ext.build_extension(self, ext)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 547, in build_extension
      objects = self.compiler.compile(
                ^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 344, in compile
      self.initialize()
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 253, in initialize
      vc_env = _get_vc_env(plat_spec)
               ^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\msvc.py", line 214, in msvc14_get_vc_env
      return _msvc14_get_vc_env(plat_spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\msvc.py", line 168, in _msvc14_get_vc_env
      raise distutils.errors.DistutilsPlatformError(
  distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\titan\AppData\Local\Temp\pip-install-a_0xzawx\grpcio_b8ad5a08d1734751b7cb37db4eb2844a\setup.py", line 541, in <module>
      setuptools.setup(
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\__init__.py", line 87, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
      dist.run_commands()
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
      self.run_command(cmd)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\command\install.py", line 68, in run
      return orig.install.run(self)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\command\install.py", line 698, in run
      self.run_command('build')
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
      self.distribution.run_command(command)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
      self.run_command(cmd_name)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
      self.distribution.run_command(command)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\command\build_ext.py", line 84, in run
      _build_ext.run(self)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 346, in run
      self.build_extensions()
    File "C:\Users\titan\AppData\Local\Temp\pip-install-a_0xzawx\grpcio_b8ad5a08d1734751b7cb37db4eb2844a\src\python\grpcio\commands.py", line 283, in build_extensions
      support.diagnose_build_ext_error(self, error, formatted_exception)
    File "C:\Users\titan\AppData\Local\Temp\pip-install-a_0xzawx\grpcio_b8ad5a08d1734751b7cb37db4eb2844a\src\python\grpcio\support.py", line 110, in diagnose_build_ext_error
      raise commands.CommandError(
  commands.CommandError:

  We could not diagnose your build failure. If you are unable to proceed, please file an issue at http://www.github.com/grpc/grpc with `[Python install]` in the title; please attach the whole log (including everything that may have appeared above the Python backtrace).

  Traceback (most recent call last):
    File "C:\Users\titan\AppData\Local\Temp\pip-install-a_0xzawx\grpcio_b8ad5a08d1734751b7cb37db4eb2844a\src\python\grpcio\commands.py", line 280, in build_extensions
      build_ext.build_ext.build_extensions(self)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 466, in build_extensions
      self._build_extensions_serial()
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 492, in _build_extensions_serial
      self.build_extension(ext)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension
      _build_ext.build_extension(self, ext)
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 547, in build_extension
      objects = self.compiler.compile(
                ^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 344, in compile
      self.initialize()
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 253, in initialize
      vc_env = _get_vc_env(plat_spec)
               ^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\msvc.py", line 214, in msvc14_get_vc_env
      return _msvc14_get_vc_env(plat_spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Program Files\Python311\Lib\site-packages\setuptools\msvc.py", line 168, in _msvc14_get_vc_env
      raise distutils.errors.DistutilsPlatformError(
  distutils.errors.DistutilsPlatformError: 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.
╰─> grpcio

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

C:\Users\titan>

Getting these errors when trying to pip install the package. Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions