Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-11-2008, 03:14 PM   #211
Gromit
MacOS 10.5.4
Gromit began at the beginning.
 
Gromit's Avatar
 
Posts: 4
Karma: 10
Join Date: Sep 2008
Device: Sony Reader
B11 is loading fine, seeing the UK Sony Reader but

fails to convert to RTF with following error

argument 1 must be string or read-only buffer, not None
Detailed traceback:
Traceback (most recent call last):
File "/Users/Steve/Downloads/calibre.app/Contents/Resources/main.py", line 947, in convert_single
File "/Users/Steve/Downloads/calibre.app/Contents/Resources/main.py", line 926, in convert_single_others
TypeError: argument 1 must be string or read-only buffer, not None
Gromit is offline   Reply With Quote
Old 09-11-2008, 03:57 PM   #212
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,388
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Looks like that RTF file is missing in the library. Try adding it again.

Quote:
Originally Posted by Gromit View Post
B11 is loading fine, seeing the UK Sony Reader but

fails to convert to RTF with following error

argument 1 must be string or read-only buffer, not None
Detailed traceback:
Traceback (most recent call last):
File "/Users/Steve/Downloads/calibre.app/Contents/Resources/main.py", line 947, in convert_single
File "/Users/Steve/Downloads/calibre.app/Contents/Resources/main.py", line 926, in convert_single_others
TypeError: argument 1 must be string or read-only buffer, not None
kovidgoyal is offline   Reply With Quote
Advert
Old 09-11-2008, 05: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,388
Karma: 27756918
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
Old 09-11-2008, 06:16 PM   #214
mdavidson
Junior Member
mdavidson began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2008
Device: Sony PRS-505 (UK)
Thanks, the ulimit fixed it
mdavidson is offline   Reply With Quote
Old 09-11-2008, 11:19 PM   #215
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,388
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
released b12 which fixes the windows crash and a couple of minor regressions.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-12-2008, 09:53 AM   #216
birch01
Member
birch01 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Aug 2008
Device: sony prs500
Problem with beta 12

I installed beta, 12, tried to do a batch edit. After that tried to add a book and my whole library got deleted.

I restarted the program, now when I try to add a new book I get this error:

'NoneType' object is unsubscriptable
Detailed traceback:
Traceback (most recent call last):
File "", line 469, in add_books
File "", line 503, in _add_books
File "library.pyz/calibre.gui2.library", line 145, in add_books
File "library.pyz/calibre.library.database2", line 715, in add_books
File "library.pyz/calibre.library.database2", line 440, in set_path
File "library.pyz/calibre.library.database2", line 521, in formats
TypeError: 'NoneType' object is unsubscriptable
birch01 is offline   Reply With Quote
Old 09-12-2008, 11:07 AM   #217
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,388
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by birch01 View Post
I installed beta, 12, tried to do a batch edit. After that tried to add a book and my whole library got deleted.

I restarted the program, now when I try to add a new book I get this error:

'NoneType' object is unsubscriptable
Detailed traceback:
Traceback (most recent call last):
File "", line 469, in add_books
File "", line 503, in _add_books
File "library.pyz/calibre.gui2.library", line 145, in add_books
File "library.pyz/calibre.library.database2", line 715, in add_books
File "library.pyz/calibre.library.database2", line 440, in set_path
File "library.pyz/calibre.library.database2", line 521, in formats
TypeError: 'NoneType' object is unsubscriptable
Hmm that's strange. I don't see why adding a book should delete your library. Delete the ebooks folder and the folder ~/.config/calibre to reset everything. add a few books and then try adding that one again. Does it happen again?
kovidgoyal is offline   Reply With Quote
Old 09-12-2008, 11:49 AM   #218
birch01
Member
birch01 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Aug 2008
Device: sony prs500
I tried deleting the .confiig/calibre and adding a book, can't do it. Then I uninstalled it from /opt/calibre and installed the latest stable again, added a few books. Closed the stable and installed b12 over it. Started it from console and here's the output:

Upgrading database from version: 1
Upgrading database from version: 2
Upgrading database from version: 3
Upgrading database from version: 4
Upgrading database from version: 5
Upgrading database from version: 6
Upgrading database from version: 7
Upgrading database from version: 8
Upgrading database from version: 9
Upgrading database from version: 10
Upgrading database from version: 11
Traceback (most recent call last):
File "library.pyz/calibre.gui2.library", line 184, in sort
File "library.pyz/calibre.library.database2", line 229, in refresh
IndexError: list index out of range
Traceback (most recent call last):
File "library.pyz/calibre.gui2.library", line 184, in sort
File "library.pyz/calibre.library.database2", line 229, in refresh
IndexError: list index out of range

When I try to add a new book I get this error:

Traceback (most recent call last):
File "<string>", line 469, in add_books
File "<string>", line 503, in _add_books
File "library.pyz/calibre.gui2.library", line 145, in add_books
File "library.pyz/calibre.library.database2", line 715, in add_books
File "library.pyz/calibre.library.database2", line 440, in set_path
File "library.pyz/calibre.library.database2", line 521, in formats
TypeError: 'NoneType' object is unsubscriptable

What can I do? I can't try to replicate the bug till I can add books again.
birch01 is offline   Reply With Quote
Old 09-12-2008, 11:58 AM   #219
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,388
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to delete ~/.config/calibre *and* the folder you chose for your ebooks.
kovidgoyal is offline   Reply With Quote
Old 09-12-2008, 01:06 PM   #220
birch01
Member
birch01 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Aug 2008
Device: sony prs500
Quote:
Originally Posted by kovidgoyal View Post
You need to delete ~/.config/calibre *and* the folder you chose for your ebooks.
Ok, I did that. And when I started it again I got:

Upgrading database to version 2...
link hasn't been detected!
link hasn't been detected!
Traceback (most recent call last):
File "<string>", line 1360, in <module>
File "<string>", line 1350, in main
File "<string>", line 234, in __init__
File "library.pyz/calibre.library.database2", line 809, in migrate_old
File "library.pyz/calibre.library.database2", line 440, in set_path
File "library.pyz/calibre.library.database2", line 521, in formats
TypeError: 'NoneType' object is unsubscriptable

I have no idea what could be causing this. Will let you know if I happen to somehow get it to work.
birch01 is offline   Reply With Quote
Old 09-12-2008, 01:19 PM   #221
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,388
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'll upload b13 in a couple of hours that will fix that particular error, though it seems like there's some other underlying problem.
kovidgoyal is offline   Reply With Quote
Old 09-12-2008, 03:05 PM   #222
jpenglish
Member
jpenglish began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2008
Location: Austin, TX
Device: Adobe DE, MS Reader, Mobipocket Reader, Sony 505
ePUB Support?

Hi, Kovid...

I'm not yet seeing any support for conversion to epub in build 12 of the current beta. Is this forthcoming?

----------------jpe
jpenglish is offline   Reply With Quote
Old 09-12-2008, 03:44 PM   #223
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,388
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Not until after this beta series is done. I want to release 0.4.84 and then a relatively stable 0.5.0 for people that don't like to upgrade often

The code's mostly there. It just needs integration and testing.
kovidgoyal is offline   Reply With Quote
Old 09-12-2008, 09:05 PM   #224
bluesnews
Enthusiast
bluesnews began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Nov 2007
Device: sony 505
With the B13, I get the following error when I try to add books:

Bad tag ID F1 at 270310
Detailed traceback:
Traceback (most recent call last):
File "main.py", line 448, in add_books
File "main.py", line 460, in _add_books
File "calibre\ebooks\metadata\meta.pyo", line 72, in get_metadata
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\meta. py", line 233, in get_metadata
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\meta. py", line 312, in restore_pos
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\meta. py", line 567, in get_cover
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\meta. py", line 545, in get_objects_by_type
File "calibre\ebooks\lrf\tags.pyo", line 190, in __init__
LRFParseError: Bad tag ID F1 at 270310


I am on Vista 32
bluesnews is offline   Reply With Quote
Old 09-12-2008, 09:35 PM   #225
bluesnews
Enthusiast
bluesnews began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Nov 2007
Device: sony 505
Trying to figure out if I did anything wrong regarding the previous post,
I've deleted all the books in the library and tried to add them recursively from a backup.

I've previously used the "save to disk" function in 4.83 and in b13, I am trying to add them recursively (one book for directory) and I get the following error:

unpack requires a string argument of length 2
Detailed traceback:
Traceback (most recent call last):
File "main.py", line 438, in add_recursive_single
File "main.py", line 419, in add_recursive
File "calibre\library\database.pyo", line 1549, in recursive_import
File "calibre\library\database.pyo", line 1531, in import_book_directory
File "calibre\ebooks\metadata\meta.pyo", line 46, in metadata_from_formats
File "calibre\ebooks\metadata\meta.pyo", line 75, in get_metadata
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\meta. py", line 233, in get_metadata
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\meta. py", line 312, in restore_pos
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\meta. py", line 567, in get_cover
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\meta. py", line 545, in get_objects_by_type
File "calibre\ebooks\lrf\tags.pyo", line 188, in __init__
File "struct.pyo", line 87, in unpack
error: unpack requires a string argument of length 2

The LRF files all open in the sony reader software.

Thanks in advance
bluesnews is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Beta testers wanted mtravellerh PocketBook 47 09-15-2010 04:22 PM
Testers wanted for 'series' custom columns chaley Calibre 15 06-26-2010 08:43 AM
DjVu plugin for DR1000 (testers wanted) luite iRex 42 02-13-2010 02:19 PM
Need some testers for eBook Creator spaze ePub 2 09-03-2009 05:42 AM
Palm OS Beta Testers required for NewsRaider MatYadabyte Reading and Management 1 09-05-2005 05:40 PM


All times are GMT -4. The time now is 12:15 PM.


MobileRead.com is a privately owned, operated and funded community.