calebgroom / clb

Command-line tool for Rackspace Cloud Load Balancers
BSD 3-Clause "New" or "Revised" License
30 stars 10 forks source link

Breaks with prettytable==0.6.0 #24

Closed joeshaw closed 12 years ago

joeshaw commented 12 years ago

Looks like the API of prettytable was changed between 0.5.0 and 0.6.0. Running clb now fails with:

   $ clb list
    Traceback (most recent call last):
      File "/Users/joeshaw/src/rackspace/bin/clb", line 917, in <module>
        CloudloadbalancersShell().main(sys.argv[1:])
      File "/Users/joeshaw/src/rackspace/bin/clb", line 196, in main
        args.func(args)
      File "/Users/joeshaw/src/rackspace/bin/clb", line 320, in do_list
        print_list2(fields, rows, args.batch, args.delimiter)
      File "/Users/joeshaw/src/rackspace/bin/clb", line 889, in print_list2
        pt.printt()
      File "/Users/joeshaw/src/rackspace/lib/python2.7/site-packages/prettytable.py", line 163, in __getattr__
        raise AttributeError(name)
    AttributeError: printt

Things work if I uninstall 0.6.0 and install 0.5.0, so a workaround could be to explicitly require "prettytable==0.5.0" in setup.py.

joeshaw commented 12 years ago

pull request #25 fixed this.