EPUB download from Project Gutenberg not recognized, errors copying to itself

Bug #1366240 reported by brandon s allbery kf8nh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

A user in #calibre on FreeNode encountered an error trying to download an ebook from Project Gutenberg. In attempting to reproduce it, I encountered a different problem. (The user has been encouraged to file their own bug report.)

Calibre 2.2, OS X.

Steps to reproduce:

Get books > Stores > Project Gutenberg

selected random, then first book (in this case, H. G. Wells, _The History of Mr. Polly_

select EPUB (no images)

Dialog appears: "File is not a supported ebook type. Save to disk?"

saved to Downloads folder

Error dialog appears:

Starting job: Downloading /Users/allbery/Downloads/pg7308.epub_session_id=2583674364f99285ce3d36ee0ae895fd7032d.epub_session_id=2583674364f99285ce3d36ee0ae895fd7032d156
Job: "Downloading /Users/allbery/Downloads/pg7308.epub_session_id=2583674364f99285ce3d36ee0ae895fd7032d.epub_session_id=2583674364f99285ce3d36ee0ae895fd7032d156" failed with error:
Traceback (most recent call last):
  File "site-packages/calibre/gui2/threaded_jobs.py", line 83, in start_work
  File "site-packages/calibre/gui2/ebook_download.py", line 61, in __call__
Error: `/Users/allbery/Downloads/pg7308.epub_session_id=2583674364f99285ce3d36ee0ae895fd7032d.epub_session_id=2583674364f99285ce3d36ee0ae895fd7032d156` and `/Users/allbery/Downloads/pg7308.epub_session_id=2583674364f99285ce3d36ee0ae895fd7032d.epub_session_id=2583674364f99285ce3d36ee0ae895fd7032d156` are the same file

Called with args: (<calibre.gui2.ui.Main object at 0x111d3dc30>, u'/var/folders/gb/pxbs0gjd6bbbwj3jg90m_j7h0000gn/T/calibre_2.2.0_tmp_Ds6Pws/ggFWh8.txt', u'http://www.gutenberg.org/cache/epub/7308/pg7308.epub?session_id=2583674364f99285ce3d36ee0ae895fd7032d156', u'/Users/allbery/Downloads/pg7308.epub_session_id=2583674364f99285ce3d36ee0ae895fd7032d.epub_session_id=2583674364f99285ce3d36ee0ae895fd7032d156', u'/Users/allbery/Downloads/pg7308.epub_session_id=2583674364f99285ce3d36ee0ae895fd7032d.epub_session_id=2583674364f99285ce3d36ee0ae895fd7032d156', False, []) {u'notifications': <Queue.Queue instance at 0x113a38c68>, u'abort': <threading._Event object at 0x11d8f5a10>, u'log': <calibre.utils.logging.GUILog object at 0x11d8f5ad0>}

File is not present in Downloads folder when the error dialog is shown.

Additional information: On third attempt to reproduce (having had to close the store dialog for the error dialog to allow copying), there was no response from the GUI on attempting to reopen the store dialog.

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.