View Single Post
Old 09-11-2008, 06:56 PM   #213
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,666
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by mdavidson View Post
Unhandled exception with fetch news:

Mac OSX 10.5.4, calibre b11

Fetching news fails with the following (tried BBC and NASA, both gave same error):
unpack requires a string argument of length 6

Detailed traceback:
Traceback (most recent call last):
File "calibre/gui2/__init__.pyo", line 130, in dispatch
File "/Applications/calibre.app/Contents/Resources/main.py", line 785, in news_fetched
File "/Applications/calibre.app/Contents/Resources/main.py", line 481, in _add_books
File "calibre/ebooks/metadata/meta.pyo", line 75, in get_metadata
File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/lrf/meta.py", line 223, in get_metadata
File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/lrf/meta.py", line 440, in __init__
File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/lrf/meta.py", line 64, in __get__
File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/lrf/meta.py", line 312, in restore_pos
File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/lrf/meta.py", line 472, in unpack
File "struct.pyo", line 87, in unpack
error: unpack requires a string argument of length 6
There is a bug in the www library calibre uses that causes it to not close open connections. Try increasing the number of allowed file open handles. At a terminal:

Code:
ulimit -n 2000 && calibre
kovidgoyal is offline   Reply With Quote