Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-30-2024, 12:19 AM   #1
Bertrand
Zealot
Bertrand began at the beginning.
 
Posts: 118
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
FileNotFoundError (Windows)

Windows 11 pro, calibre 7.4.0
The library is on an external SSD drive, and as usual, everything was working fine... until now.

For the past few days, I have this problem : "FileNotFoundError".
I drag and drop epubs in the main interface, edit metadata, and when I click Ok I have now this error.


So what can I do ?
Thanks for your help.

Spoiler:

Code:
calibre, version 7.4.0
ERREUR : Exception non gérée: <b>FileNotFoundError</b>:[WinError 3] Le chemin d’accès spécifié est introuvable: 'I:\\Calibre\\Andre Helena\\Les voyageurs du vendredi (22647)'

calibre 7.4  embedded-python: True
Windows-10-10.0.22631-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22631')
Python 3.11.5
Windows: ('10', '10.0.22631', 'SP0', 'Multiprocessor Free')
Interface language: fr
Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 9) && Action Chains (1, 19, 3) && Comments Cleaner (1, 12, 1) && Count Pages (1, 13, 4) && Diaps Editing Toolbag (0, 4, 0) && Editor Chains (1, 1, 4) && EpubCheck (0, 2, 5) && Extract ISBN (1, 6, 0) && Favourites Menu (1, 3, 0) && Find Duplicates (1, 10, 8) && Kobo Books (1, 10, 2) && Kobo Utilities (2, 16, 13) && KoboTouchExtended (3, 6, 7) && Modify ePub (1, 8, 2) && Open With (1, 8, 1) && Quality Check (1, 13, 8) && SmartEject (2, 5, 0) && View Manager (1, 10, 2) && Walk Search History (1, 5, 3)
Traceback (most recent call last):
  File "calibre\utils\copy_files.py", line 286, in copy_tree
  File "shutil.py", line 759, in rmtree
  File "shutil.py", line 603, in _rmtree_unsafe
  File "shutil.py", line 600, in _rmtree_unsafe
FileNotFoundError: [WinError 3] Le chemin d’accès spécifié est introuvable: 'I:\\Calibre\\Andre Helena\\Les voyageurs du vendredi (22647)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre\gui2\metadata\single.py", line 637, in accept
  File "calibre\gui2\metadata\single.py", line 620, in apply_changes
  File "calibre\gui2\metadata\basic_widgets.py", line 429, in commit
  File "calibre\db\legacy.py", line 920, in func
  File "calibre\db\cache.py", line 88, in call_func_with_lock
  File "calibre\db\cache.py", line 1645, in set_field
  File "calibre\db\cache.py", line 1659, in update_path
  File "calibre\db\backend.py", line 1975, in update_path
  File "calibre\utils\copy_files.py", line 290, in copy_tree
  File "shutil.py", line 759, in rmtree
  File "shutil.py", line 603, in _rmtree_unsafe
  File "shutil.py", line 600, in _rmtree_unsafe
FileNotFoundError: [WinError 3] Le chemin d’accès spécifié est introuvable: 'I:\\Calibre\\Andre Helena\\Les voyageurs du vendredi (22647)'
Bertrand is offline   Reply With Quote
Old 01-30-2024, 01:29 AM   #2
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's a strange error, it indicates some other program is modifying data in the calibre library folder at the same time as calibre. Try excluding the folder from and file sync and/or antivirus programs.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-31-2024, 03:07 AM   #3
Bertrand
Zealot
Bertrand began at the beginning.
 
Posts: 118
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
Thanks Kovid.

All calibre files/folders were already excluded from the antivirus and I have no sync programs running.

Just out of curiosity, I copied the library to another external drive, and the same thing happened.
Then I copied it to the C drive... and it works.

So, for now, let's say my problem is partially (because I don't understand why it happened so suddenly) solved. I will continue to investigate, I can't see/find anything running on my computer doing this thing to my library.
Bertrand is offline   Reply With Quote
Old 01-31-2024, 07:53 AM   #4
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,164
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Is the external drive the same format as the internal? It needs to be NTFS for Windows and whatever the native is on Linux (often Ext4) or Mac (depends on OS age). Using FAT32 or exFAT might not work.

You mention C, so probably Windows.
Quoth is offline   Reply With Quote
Old 01-31-2024, 10:00 AM   #5
Bertrand
Zealot
Bertrand began at the beginning.
 
Posts: 118
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
Yes, they are all NTFS.
Bertrand is offline   Reply With Quote
Advert
Old 01-31-2024, 01:55 PM   #6
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,164
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by Bertrand View Post
Yes, they are all NTFS.
That's good, though adds to the mystery!

Maybe it's file ownership or permissions?
Quoth is offline   Reply With Quote
Old 01-31-2024, 02:35 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Bertrand View Post
Windows 11 pro, calibre 7.4.0
The library is on an external SSD drive, and as usual, everything was working fine... until now.
Were there any recent updates to software?

Best place to look is the Control Panel. Yes it's still there, look in Programs and Features and sort on the "Installed on" column.

Quote:
Originally Posted by Bertrand View Post
Yes, they are all NTFS.
Do you use a 3rd party file manager, or shell extensions that provide file management tools?

If so do whatever is needed to disable them — e.g. remove from startup, disable in Task Manager, uninstall etc — then restart and try to run calibre.

Shell extensions, including those that come with some 3rd party file managers have been known to burrow through Safe Mode walls.

BR

Last edited by BetterRed; 01-31-2024 at 02:52 PM.
BetterRed is offline   Reply With Quote
Old 01-31-2024, 05:25 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Reboot the computer in Safe Mode and try your library that's not working. If it works, something you have installed is the problem.
JSWolf is offline   Reply With Quote
Old 02-01-2024, 03:48 AM   #9
Bertrand
Zealot
Bertrand began at the beginning.
 
Posts: 118
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
Thank you all for all the suggestions.

I don't have a 3rd party file manager, but I have a few shell extensions...
Safe Mode sounds like a good idea to begin, I never think of doing that.

I'll try all this as soon as I can spare the time.

Thanks again.
Bertrand is offline   Reply With Quote
Old 02-03-2024, 02:14 PM   #10
alumoi
Enthusiast
alumoi began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Jan 2012
Device: kindle
A little late to the party, but what's with all those strange characters in the file name?
alumoi is offline   Reply With Quote
Old 02-03-2024, 04:36 PM   #11
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,164
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by alumoi View Post
A little late to the party, but what's with all those strange characters in the file name?
This?
Quote:
FileNotFoundError: [WinError 3] Le chemin d’accès spécifié est introuvable: 'I:\\Calibre\\Andre Helena\\Les voyageurs du vendredi (22647)'
Something broke in error message. the file is I:\Calibre\Andre Helena\Les voyageurs du vendredi (22647)
Introuvable means impossible to find 'I:\Calibre\Andre Helena\Les voyageurs du vendredi (22647)'

the \\ is escaping \

Last edited by Quoth; 02-03-2024 at 04:40 PM.
Quoth is offline   Reply With Quote
Old 02-17-2024, 12:17 AM   #12
Bertrand
Zealot
Bertrand began at the beginning.
 
Posts: 118
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
Some news.

What did i do ? Nothing.

Last Sunday, I wanted to take a closer look at my problem.
I made a copy of my library and moved it back to my external drive.

Surprise: everything was working again. No more error messages.
It's been a week now and everything's working normally.

Case closed (for now...), mystery unsolved.
Bertrand is offline   Reply With Quote
Old 02-17-2024, 11:02 AM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Bertrand View Post
Some news.

What did i do ? Nothing.

Last Sunday, I wanted to take a closer look at my problem.
I made a copy of my library and moved it back to my external drive.

Surprise: everything was working again. No more error messages.
It's been a week now and everything's working normally.

Case closed (for now...), mystery unsolved.
Maybe it was a corrupt database.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
subprocess.Popen get FileNotFoundError but works fine in debug mode xxyzz Development 2 01-01-2021 08:50 PM
Windows Calibre - normal Windows vs 64bit Windows midnightmaze Calibre 8 05-30-2015 07:16 AM
Copying Library to Windows from Linux (or other Windows installation) grumbles Calibre 10 01-08-2015 02:45 PM
Moving Calibre Library from Windows 7 to Windows 8 - json code issue DramaQueenLucy Devices 14 11-12-2013 11:47 AM


All times are GMT -4. The time now is 02:46 PM.


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