Skip to content

No longer works. #36

Description

@meluvalli

First, I tried to upgrade Python. I'm now running version 3.14.6 in Windows.

Now I cannot install Requirements.

Downloading pydivert-3.1.3-py3-none-any.whl (149 kB)
Building wheels for collected packages: Brotli, curlify
  Building wheel for Brotli (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for Brotli (pyproject.toml) did not run successfully.
  ¦ exit code: 1
  ?-> [24 lines of output]
      C:\Users\owner\AppData\Local\Temp\pip-build-env-nznhjjx8\overlay\Lib\site-packages\setuptools\_distutils\dist.py:288: UserWarning: Unknown distribution option: 'test_suite'
        warnings.warn(msg)
      C:\Users\owner\AppData\Local\Temp\pip-build-env-nznhjjx8\overlay\Lib\site-packages\setuptools\dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: MIT License

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_py
      creating bin\lib.win32-cpython-314
      copying python\brotli.py -> bin\lib.win32-cpython-314
      running build_ext
      <string>:70: DeprecationWarning: dep_util is Deprecated. Use functions from setuptools instead.
      building '_brotli' 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: Failed building wheel for Brotli
  Building wheel for curlify (pyproject.toml) ... done
  Created wheel for curlify: filename=curlify-2.2.1-py3-none-any.whl size=2760 sha256=e0325382d656aa4e5ffae6c43727bbd74298b7079ebb421a8f0b20cc7a7b4263
  Stored in directory: c:\users\owner\appdata\local\pip\cache\wheels\3d\4a\cd\54a1095227301a7c0c1e9976e37a6b92f9ea969697ef415ac5
Successfully built curlify
Failed to build Brotli
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
?-> Brotli

E:\carelink-python-client>

That was a no go.
I tried to upgrade to the latest because I was originally running version 3.13.7. When I ran python3 carelink_carepartner_api_login.py, it errored with:

C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\OpenSSL\_util.py:6: UserWarning: You are using cryptography on a 32-bit Python on a 64-bit Windows Operating System. Cryptography will be significantly faster if you switch to using a 64-bit Python.
  from cryptography.hazmat.bindings.openssl.binding import Binding
field client_secret is missing from data file
performing login...
Traceback (most recent call last):
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\urllib3\connection.py", line 198, in _new_conn
    sock = connection.create_connection(
        (self._dns_host, self.port),
    ...<2 lines>...
        socket_options=self.socket_options,
    )
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\urllib3\util\connection.py", line 85, in create_connection
    raise err
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\urllib3\util\connection.py", line 73, in create_connection
    sock.connect(sa)
    ~~~~~~~~~~~~^^^^
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\urllib3\connectionpool.py", line 787, in urlopen
    response = self._make_request(
        conn,
    ...<10 lines>...
        **response_kw,
    )
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\urllib3\connectionpool.py", line 488, in _make_request
    raise new_e
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\urllib3\connectionpool.py", line 464, in _make_request
    self._validate_conn(conn)
    ~~~~~~~~~~~~~~~~~~~^^^^^^
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\urllib3\connectionpool.py", line 1093, in _validate_conn
    conn.connect()
    ~~~~~~~~~~~~^^
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\urllib3\connection.py", line 753, in connect
    self.sock = sock = self._new_conn()
                       ~~~~~~~~~~~~~~^^
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\urllib3\connection.py", line 213, in _new_conn
    raise NewConnectionError(
        self, f"Failed to establish a new connection: {e}"
    ) from e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x054ABDF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\requests\adapters.py", line 486, in send
    resp = conn.urlopen(
        method=request.method,
    ...<9 lines>...
        chunked=chunked,
    )
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\urllib3\connectionpool.py", line 841, in urlopen
    retries = retries.increment(
        method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]
    )
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\urllib3\util\retry.py", line 519, in increment
    raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='mdtlogin-ocl.medtronic.com', port=443): Max retries exceeded with url: /mmcl/connect/client/initialize (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x054ABDF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\carelink-python-client\carelink_carepartner_api_login.py", line 284, in <module>
    main(args.us)
    ~~~~^^^^^^^^^
  File "E:\carelink-python-client\carelink_carepartner_api_login.py", line 275, in main
    token_data = do_login(endpoint_config)
  File "E:\carelink-python-client\carelink_carepartner_api_login.py", line 157, in do_login
    client_init_req = requests.post(client_init_url, data=data, headers=headers)
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\requests\api.py", line 115, in post
    return request("post", url, data=data, json=json, **kwargs)
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\requests\api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\requests\sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\requests\sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "C:\Users\owner\AppData\Roaming\Python\Python313-32\site-packages\requests\adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='mdtlogin-ocl.medtronic.com', port=443): Max retries exceeded with url: /mmcl/connect/client/initialize (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x054ABDF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

E:\carelink-python-client>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions