error when renaming a similar filename in the files browser from the editor

Bug #1664027 reported by erkfuizfeuadjfjzefzfuzeff on 2017-02-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Dear Calibre,

I use Windows 7 64 bit, Calibre 2.76.0.

I edit an existing epub, already containing files. (e.g. Voor.xhtml)

I add a new file from the menu called "voor.xhtml". Calibre doesn't complain because it's different from the other filename called "Voor.xhtml".

When I rename voor.xhtml to e.g. voor2.xhtml, an error wil occur as soon I press enter to make the change effective.

calibre, version 2.76.0
ERROR: Failed to rename files: Failed to rename files, click Show details for more information.

Traceback (most recent call last):
  File "site-packages\calibre\gui2\tweak_book\job.py", line 35, in run
  File "site-packages\calibre\ebooks\oeb\polish\replace.py", line 205, in rename_files
  File "site-packages\calibre\ebooks\oeb\polish\replace.py", line 125, in replace_links
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 422, in replace_links
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 569, in parsed
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 536, in parse
IOError: [Errno 2] No such file or directory: u'C:\\Users\\Alex\\AppData\\Local\\Temp\\calibre_ir81bw\\ixkuob\\00003-g7wtsg\\Voor.xhtml'

I admit, using a similar name is asking for trouble, I only discovered this too late. There are probably are other problems when using similar filenames.

Which menu were you adding the new file from? File->New file or
File->Import or something else?

 status incomplete

Changed in calibre:
status: New → Incomplete

From File -> "new file" in the menu.

2017-02-12 17:08 GMT+01:00 Kovid Goyal <email address hidden>:

> Which menu were you adding the new file from? File->New file or
> File->Import or something else?
>
> status incomplete
>
> ** Changed in: calibre
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1664027
>
> Title:
> error when renaming a similar filename in the files browser from the
> editor
>
> Status in calibre:
> Incomplete
>
> Bug description:
> Dear Calibre,
>
> I use Windows 7 64 bit, Calibre 2.76.0.
>
> I edit an existing epub, already containing files. (e.g. Voor.xhtml)
>
> I add a new file from the menu called "voor.xhtml". Calibre doesn't
> complain because it's different from the other filename called
> "Voor.xhtml".
>
> When I rename voor.xhtml to e.g. voor2.xhtml, an error wil occur as
> soon I press enter to make the change effective.
>
> calibre, version 2.76.0
> ERROR: Failed to rename files: Failed to rename files, click Show
> details for more information.
>
> Traceback (most recent call last):
> File "site-packages\calibre\gui2\tweak_book\job.py", line 35, in run
> File "site-packages\calibre\ebooks\oeb\polish\replace.py", line 205,
> in rename_files
> File "site-packages\calibre\ebooks\oeb\polish\replace.py", line 125,
> in replace_links
> File "site-packages\calibre\ebooks\oeb\polish\container.py", line
> 422, in replace_links
> File "site-packages\calibre\ebooks\oeb\polish\container.py", line
> 569, in parsed
> File "site-packages\calibre\ebooks\oeb\polish\container.py", line
> 536, in parse
> IOError: [Errno 2] No such file or directory:
> u'C:\\Users\\Alex\\AppData\\Local\\Temp\\calibre_ir81bw\\
> ixkuob\\00003-g7wtsg\\Voor.xhtml'
>
>
> I admit, using a similar name is asking for trouble, I only discovered
> this too late. There are probably are other problems when using similar
> filenames.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/calibre/+bug/1664027/+subscriptions
>

What information do you need to change the status "incomplete"? I apologise
for not mentioning "new file" in the menu.

2017-02-12 17:08 GMT+01:00 Kovid Goyal <email address hidden>:

> Which menu were you adding the new file from? File->New file or
> File->Import or something else?
>
> status incomplete
>
> ** Changed in: calibre
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1664027
>
> Title:
> error when renaming a similar filename in the files browser from the
> editor
>
> Status in calibre:
> Incomplete
>
> Bug description:
> Dear Calibre,
>
> I use Windows 7 64 bit, Calibre 2.76.0.
>
> I edit an existing epub, already containing files. (e.g. Voor.xhtml)
>
> I add a new file from the menu called "voor.xhtml". Calibre doesn't
> complain because it's different from the other filename called
> "Voor.xhtml".
>
> When I rename voor.xhtml to e.g. voor2.xhtml, an error wil occur as
> soon I press enter to make the change effective.
>
> calibre, version 2.76.0
> ERROR: Failed to rename files: Failed to rename files, click Show
> details for more information.
>
> Traceback (most recent call last):
> File "site-packages\calibre\gui2\tweak_book\job.py", line 35, in run
> File "site-packages\calibre\ebooks\oeb\polish\replace.py", line 205,
> in rename_files
> File "site-packages\calibre\ebooks\oeb\polish\replace.py", line 125,
> in replace_links
> File "site-packages\calibre\ebooks\oeb\polish\container.py", line
> 422, in replace_links
> File "site-packages\calibre\ebooks\oeb\polish\container.py", line
> 569, in parsed
> File "site-packages\calibre\ebooks\oeb\polish\container.py", line
> 536, in parse
> IOError: [Errno 2] No such file or directory:
> u'C:\\Users\\Alex\\AppData\\Local\\Temp\\calibre_ir81bw\\
> ixkuob\\00003-g7wtsg\\Voor.xhtml'
>
>
> I admit, using a similar name is asking for trouble, I only discovered
> this too late. There are probably are other problems when using similar
> filenames.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/calibre/+bug/1664027/+subscriptions
>

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

 status fixreleased

Changed in calibre:
status: Incomplete → Fix Released

Thank you! I love Calibre!

2017-02-13 12:12 GMT+01:00 Kovid Goyal <email address hidden>:

> Fixed in branch master. The fix will be in the next release. calibre is
> usually released every Friday.
>
> status fixreleased
>
> ** Changed in: calibre
> Status: Incomplete => Fix Released
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1664027
>
> Title:
> error when renaming a similar filename in the files browser from the
> editor
>
> Status in calibre:
> Fix Released
>
> Bug description:
> Dear Calibre,
>
> I use Windows 7 64 bit, Calibre 2.76.0.
>
> I edit an existing epub, already containing files. (e.g. Voor.xhtml)
>
> I add a new file from the menu called "voor.xhtml". Calibre doesn't
> complain because it's different from the other filename called
> "Voor.xhtml".
>
> When I rename voor.xhtml to e.g. voor2.xhtml, an error wil occur as
> soon I press enter to make the change effective.
>
> calibre, version 2.76.0
> ERROR: Failed to rename files: Failed to rename files, click Show
> details for more information.
>
> Traceback (most recent call last):
> File "site-packages\calibre\gui2\tweak_book\job.py", line 35, in run
> File "site-packages\calibre\ebooks\oeb\polish\replace.py", line 205,
> in rename_files
> File "site-packages\calibre\ebooks\oeb\polish\replace.py", line 125,
> in replace_links
> File "site-packages\calibre\ebooks\oeb\polish\container.py", line
> 422, in replace_links
> File "site-packages\calibre\ebooks\oeb\polish\container.py", line
> 569, in parsed
> File "site-packages\calibre\ebooks\oeb\polish\container.py", line
> 536, in parse
> IOError: [Errno 2] No such file or directory:
> u'C:\\Users\\Alex\\AppData\\Local\\Temp\\calibre_ir81bw\\
> ixkuob\\00003-g7wtsg\\Voor.xhtml'
>
>
> I admit, using a similar name is asking for trouble, I only discovered
> this too late. There are probably are other problems when using similar
> filenames.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/calibre/+bug/1664027/+subscriptions
>

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers