Arfrever Frehtes Taifersar Arahesis created LIBCLOUD-355:
------------------------------------------------------------

             Summary: Errors with Python 3
                 Key: LIBCLOUD-355
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-355
             Project: Libcloud
          Issue Type: Bug
            Reporter: Arfrever Frehtes Taifersar Arahesis


Libcloud 0.13.0 has 6 errors with Python 3.2.5 and 17 errors with recent 
snapshot of Python 3.3. (6 errors with Python 3.3 are identical to errors with 
Python 3.2.5.)

Example error with Python 3.2.5 and 3.3:
{code}
======================================================================
ERROR: test_delete_container_not_empty 
(libcloud.test.storage.test_local.LocalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/apache-libcloud-0.13.0/libcloud/test/storage/test_local.py", line 
218, in test_delete_container_not_empty
    obj = container.upload_object(tmppath, 'test')
  File "/tmp/apache-libcloud-0.13.0/libcloud/storage/base.py", line 139, in 
upload_object
    file_path, self, object_name, extra=extra, **kwargs)
  File "/tmp/apache-libcloud-0.13.0/libcloud/storage/drivers/local.py", line 
445, in upload_object
    return self._make_object(container, object_name)
  File "/tmp/apache-libcloud-0.13.0/libcloud/storage/drivers/local.py", line 
178, in _make_object
    data_hash.update(str(stat.st_mtime))
TypeError: Unicode-objects must be encoded before hashing
{code}

Example error with Python 3.3:
{code}
======================================================================
ERROR: test_create_node_clone 
(libcloud.test.compute.test_vcloud.VCloud_1_5_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/apache-libcloud-0.13.0/libcloud/test/compute/test_vcloud.py", line 
122, in test_create_node_clone
    image = self.driver.list_nodes()[0]
  File "/tmp/apache-libcloud-0.13.0/libcloud/compute/drivers/vcloud.py", line 
550, in list_nodes
    return self.ex_list_nodes()
  File "/tmp/apache-libcloud-0.13.0/libcloud/compute/drivers/vcloud.py", line 
585, in ex_list_nodes
    headers={'Content-Type': 'application/vnd.vmware.vcloud.vApp+xml'}
  File "/tmp/apache-libcloud-0.13.0/libcloud/compute/drivers/vcloud.py", line 
315, in request
    return super(VCloudConnection, self).request(*args, **kwargs)
  File "/tmp/apache-libcloud-0.13.0/libcloud/common/base.py", line 624, in 
request
    headers=headers)
  File "/tmp/apache-libcloud-0.13.0/libcloud/test/compute/test_vcloud.py", line 
430, in request
    raw)
  File "/tmp/apache-libcloud-0.13.0/libcloud/test/__init__.py", line 182, in 
request
    status, body, headers, reason = meth(method, url, body, headers)
  File "/tmp/apache-libcloud-0.13.0/libcloud/test/compute/test_vcloud.py", line 
551, in _api_vApp_vapp_access_to_resource_forbidden
    raise 
Exception(ET.fromstring(self.fixtures.load('api_vApp_vapp_access_to_resource_forbidden.xml')))
Exception: <Element '{http://www.vmware.com/vcloud/v1.5}Error' at 
0x7f925fd43b50>
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to