Trying to drag and drop a file from winrar

Bug #1942129 reported by Andrew Barker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

edit: sorry, brainfart. Title should be winRAR not winzip. It was a zip file. Just edited the title.

When I drag an ebook file from Winrar to Calibre, Calibre tries to identify the file as the mouse cursor enters the window BEFORE the drop event has occurred, but Winrar doesn't extract the file to the temporary location until AFTER the drop event has occurred.

Calibre throws an error as soon as the mouse cursor enters the Calibre window because it can't find the file because the file doesn't exist yet.

calibre, version 5.26.0
ERROR: Unhandled exception: <b>FileNotFoundError</b>:[WinError 3] The system cannot find the path specified: '[ DevCourseWeb.com ] Dive Into Algorithms - A Pythonic Adventure for the Intrepid Beginner (AZW3)/~Get Your Course Here !/[ DevCourseWeb.com ] st1718500688.azw3'

calibre 5.26 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Traceback (most recent call last):
  File "calibre\gui2\book_details.py", line 945, in dragEnterEvent
  File "calibre\gui2\dnd.py", line 206, in dnd_has_extension
  File "calibre\gui2\dnd.py", line 206, in <listcomp>
  File "calibre\gui2\dnd.py", line 172, in path_from_qurl
FileNotFoundError: [WinError 3] The system cannot find the path specified: '[ DevCourseWeb.com ] Dive Into Algorithms - A Pythonic Adventure for the Intrepid Beginner (AZW3)/~Get Your Course Here !/[ DevCourseWeb.com ] st1718500688.azw3'

Revision history for this message
Andrew Barker (alacritous) wrote (last edit ):

It finds the file just fine if I extract the file to a folder and then drag and drop it into Calibre.

edit: It finds it fine with or without the path embedded in the zip file.

description: updated
description: updated
summary: - Trying to drag and drop a file from winzip
+ Trying to drag and drop a file from winrar
description: updated
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 alternate 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