[zanata-bugs] [Bug 706815] New: zanata-python-client does not handle version in format x.y.z

bugzilla at redhat.com bugzilla at redhat.com
Mon May 23 06:13:41 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: zanata-python-client does not handle version in format x.y.z

https://bugzilla.redhat.com/show_bug.cgi?id=706815

           Summary: zanata-python-client does not handle version in format
                    x.y.z
           Product: Zanata
           Version: 1.3
          Platform: Unspecified
        OS/Version: All
            Status: NEW
          Severity: urgent
          Priority: unspecified
         Component: Component-PythonClient
        AssignedTo: zanata-dev-internal at redhat.com
        ReportedBy: dchen at redhat.com
         QAContact: dchen at redhat.com
                CC: zanata-bugs at redhat.com, zanata-dev-internal at redhat.com
   Estimated Hours: 0.0
    Classification: Other
      Story Points: ---


Description of problem:

It seems like zanata-python-client pass version with string.atof(version).
However, if version is in format x.y.z (e.g. 1.3.1), the zanata-python-client
fail with error like:

Traceback (most recent call last):
  File "/usr/bin/zanata", line 26, in <module>
    client.run()
  File "/usr/lib/python2.6/site-packages/zanataclient/zanata.py", line 1483, in
run
    self._create_iteration(command_args)
  File "/usr/lib/python2.6/site-packages/zanataclient/zanata.py", line 387, in
_create_iteration
    version_number = string.atof(version)
  File "/usr/lib64/python2.6/string.py", line 388, in atof
    return _float(s)
ValueError: invalid literal for float(): 1.3.1


Version-Release number of selected component (if applicable):
zanata-python-client


How reproducible:
Always

Steps to Reproduce:
1. Assume zanata.xml exists.
2. zanata version create 1 --url=<zanataServerUrl>

Actual results:
  File "/usr/lib/python2.6/site-packages/zanataclient/zanata.py", line 387, in
_create_iteration
    version_number = string.atof(version)
  File "/usr/lib64/python2.6/string.py", line 388, in atof
    return _float(s)
ValueError: invalid literal for float(): 1.3.1


Expected results:
Proceed without error

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the zanata-bugs mailing list