Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6574

Python - client version property is unreliable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Python Client
    • None

    Description

      In trunk (r1683751) the python clients tries to determine it's own version through pkg_resources which is a 3rd party module provided by setuptools which might not be installed.
      Even if setuptools is installed this method is unreliable. It reports a version that is installed not necessarily the version that is currently imported/running. Additionally, the behaviour of pkg_resources in case there are several versions installed is unclear.

      While there doesn't seem to be a definitive canonical way of handling versions in python there are several ways listed here. IMHO, Option 3 which is also suggested here seems like the best option.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lorenz.quack Lorenz Quack
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: