Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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.