Ask Your Question

python-novaclient 1:2012.1~e4-1 on wheezy

asked 2012-05-28 21:50:01 -0500

vladimir-nikolic-o gravatar image


nova client doesn't work on my Debian Wheezy. Every command gives the same error:

ERROR: printt

Here is debug output for 'nova image-list' ('glance index' shows three testing images):

nova --debug image-list

connect: (, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost:\r\nContent-Length: 114\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "adminUser", "password": "somepassword"}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: application/json header: Vary: X-Auth-Token header: Date: Mon, 28 May 2012 21:43:50 GMT header: Transfer-Encoding: chunked connect: (, 8774) send: u'GET /v2/4b52eb4c8f284725806fd7917eaa8d61/images/detail HTTP/1.1\r\nHost:\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: 7b956feb7c2a4c899f3a18918a69fbc0\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: X-Compute-Request-Id: req-3579f481-61f9-4c27-ba7b-7b323e4824ef header: Content-Type: application/json header: Content-Length: 2166 header: Date: Mon, 28 May 2012 21:43:50 GMT DEBUG (shell:394) printt Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/novaclient/", line 391, in main OpenStackComputeShell().main(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/novaclient/", line 342, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/", line 304, in do_image_list utils.print_list(image_list, ['ID', 'Name', 'Status', 'Server'], fmts) File "/usr/lib/python2.7/dist-packages/novaclient/", line 143, in print_list pt.printt(sortby=fields[0]) File "/usr/lib/pymodules/python2.7/", line 163, in __getattr__ raise AttributeError(name) AttributeError: printt ERROR: printt

I can get list of images with 'curl X-Auth-Token' on (


edit retag flag offensive close merge delete

6 answers

Sort by ยป oldest newest most voted

answered 2012-07-09 10:02:42 -0500

michael-lin gravatar image

I have the same problem as you describe.

Can you teach me how to downgrade the module? Thank a lot!

Michael Lin 20120709

edit flag offensive delete link more

answered 2012-07-09 10:04:09 -0500

michael-lin gravatar image

Sorry for one thing, the OS is Ubuntu 12.04.

Many thanks :D

edit flag offensive delete link more

answered 2012-05-29 17:36:46 -0500

When PrettyTable got updated to 0.6 it looks like it removed the "printt" function. A workaround for now is to downgrade PrettyTable to 0.5 to get the client working.

edit flag offensive delete link more

answered 2012-08-15 07:20:43 -0500

To downgrade the module, you can use the following command:

pip install prettytable==0.5 or easy_install prettytable==0.5

If it was installed system wide you may first need to sudo apt-get remove python-prettytable.

edit flag offensive delete link more

answered 2013-05-21 17:50:09 -0500

hartsock gravatar image

I now get this error from glance:

Traceback (most recent call last): File "/usr/local/bin/glance", line 5, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python2.7/dist-packages/", line 2809, in <module> parse_requirements(__requires__), Environment() File "/usr/local/lib/python2.7/dist-packages/", line 594, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: prettytable>=0.6,<0.7

edit flag offensive delete link more

answered 2013-05-21 18:26:21 -0500

hartsock gravatar image

Okay, the fix was to use pip to upgrade python-novaclient and python-glanceclient each of which then upgraded a list of dependencies and this seems stable.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-05-28 21:50:01 -0500

Seen: 185 times

Last updated: May 21 '13