kosciak / pywo

PyWO - Python Window Organizer
GNU General Public License v3.0
1 stars 0 forks source link

"TypeError: 'float' object is not iterable" when run with --sections or --help-more #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

$ pywo --sections
Xlib.protocol.request.QueryExtension
Traceback (most recent call last):
  File "/usr/bin/pywo", line 9, in <module>
    load_entry_point('PyWO==0.3.0', 'console_scripts', 'pywo')()
  File "/usr/lib/python2.7/site-packages/pywo/main.py", line 113, in run
    print '\n'.join(commandline.get_section_descriptions(config))
  File "/usr/lib/python2.7/site-packages/pywo/commandline.py", line 199, in get_section_descriptions
    ', '.join(['%.2f' % size for size in data.size.height]), 
TypeError: 'float' object is not iterable

$ pywo --help-more
Xlib.protocol.request.QueryExtension
Traceback (most recent call last):
  File "/usr/bin/pywo", line 9, in <module>
    load_entry_point('PyWO==0.3.0', 'console_scripts', 'pywo')()
  File "/usr/lib/python2.7/site-packages/pywo/main.py", line 109, in run
    commandline.print_help_more(config)
  File "/usr/lib/python2.7/site-packages/pywo/commandline.py", line 210, in print_help_more
    section_descriptions = get_section_descriptions(config)
  File "/usr/lib/python2.7/site-packages/pywo/commandline.py", line 199, in get_section_descriptions
    ', '.join(['%.2f' % size for size in data.size.height]), 
TypeError: 'float' object is not iterable

What version of the product are you using?

pywo svn r202
python 2.7.2
python-xlib 0.15rc1

Original issue reported on code.google.com by mindless...@gmail.com on 4 Mar 2012 at 3:49