Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-979

Typing module change makes SDK uninstallable by default on Python 3.5/3.6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Critical
    • None
    • 2.5.12
    • docs, library
    • None
    • 1

    Description

      Raised this as PYCBC, but the outcome might be a docs change, just needed somewhere to capture it.

      A few days ago, a new version of the typing module was released that prevented installations on versions 3.5 or older - https://github.com/python/typing/commit/0b0e24801f8ec5322ee84d27024cae1805449396, as part of typing 3.7.4.2.

      This is problematic for us, as the SDK conditionally installs this dependency if the version of python is lower than 3.7.
      This makes the SDK uninstallable by default on Python 3.5 and 3.6, due to dependency mismatch.

      The workaround is to install typing == 3.7.4.1 before installing the Couchbase SDK, as the dependency in the SDK will be satisfied by 3.7.4.1, which accepts any version but will default to latest.

      The Python team have acknowledged this breaking change as a problem in https://github.com/python/typing/issues/739, so looks like the Python core team will probably revert it.
      Until then though we may have users who cannot install the SDK, so we probably need to cover this prominently in the release notes or something

      We may also want to consider some kind of 'future proofing' in this area for the SDK going forward.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ingenthr Matt Ingenthron
            matt.carabine Matt Carabine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty