09-02-2024, 05:44 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2024
Device: Tolino shine 3
|
"FileNotFoundError" Calibre doesn't start
Hello guys,
i wanted to start calibre today after maybe 3(?) weeks of not using it. But it didn't start. I tryed uninstalling and reinstalling it, but nothing changed. On reddit i read, that deleting the folders with calibre in /appdata/local and /appdata/roaming. I uninstalled calibre, did that, restarted the pc and than reinstall. Again nothing is happening. calibre-debug -g gave me this message: Traceback (most recent call last): File "runpy.py", line 198, in _run_module_as_main File "runpy.py", line 88, in _run_code File "site.py", line 83, in <module> File "site.py", line 78, in main File "site.py", line 49, in run_entry_point File "importlib\__init__.py", line 126, in import_module File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "bypy-importer.py", line 279, in exec_module File "calibre\__init__.py", line 23, in <module> File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "bypy-importer.py", line 279, in exec_module File "calibre\constants.py", line 424, in <module> File "calibre\constants.py", line 174, in cache_dir File "calibre\constants.py", line 131, in _get_cache_dir File "os.py", line 215, in makedirs File "os.py", line 225, in makedirs FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden: 'C:\\Users\\wolfg\\AppData\\Roaming\\calibre' Why does calibre not creat this folders anew ? And how can I force it to do so? Friendly greetings |
09-02-2024, 11:44 PM | #2 |
creator of calibre
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That is the system call to create those folders that is failing. Make sure
C:\Users\wolfg\AppData\Roaming exists and has correct permissions |
09-03-2024, 01:32 PM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2024
Device: Tolino shine 3
|
The folder exist, but what permission for the folder do you mean? Every other program can write new folders in there. And if I manually create the missing folders it wants to acces the file "global-atomic-_h7f0zqn".
I am really clueless, but thanks for the quick reply |
09-03-2024, 11:03 PM | #4 |
creator of calibre
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Then you have something on your computer interfering with calibre, reboot in safe mode and it will likely work, to confirm.
|
09-04-2024, 08:49 AM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2024
Device: Tolino shine 3
|
It worked in save mode and the missing folders are finally back, but when I start it in regular mode, I get the message:
"calibre, version 7.17.0 FEHLER: Kann keinen temporären Ordner erzeugen: Kann keinen temporären Ordner erzeugen, Calibre kann nicht gestartet werden "Details anzeigen" anklicken für weitere Informationen." "ERROR: Cannot create a temporary folder: Cannot create a temporary folder, Calibre cannot be started “Click on ‘Show details’ for more information.” Traceback (most recent call last): File "calibre\gui2\__init__.py", line 1223, in __init__ File "calibre\ptempfile.py", line 122, in base_dir File "tempfile.py", line 368, in mkdtemp FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden: 'C:\\Users\\wolfg\\AppData\\Local\\Temp\\calibre_2 581d9cm' I followed the instructions in this post, but with no effect. https://www.mobileread.com/forums/sh...d.php?t=178552 After I changed the temp directory, it first seemed to be working, but than I got this message: calibre, version 7.17.0 FEHLER: Contacting calibre failed: Failed to contact running instance of calibre, try restarting calibre Failed to connect to Listener at: \\.\pipe\CalibreGUI-wolfgx with error: QLocalSocket::connectToServer: Invalid name b'launched:["calibre.exe"]' So i tryed to reinstall again and now I'm back to: calibre, version 7.17.0 FEHLER: Fehler beim Starten: There was an error during calibre startup. Parts of calibre may not function. Click "Show details" to learn more. Traceback (most recent call last): File "calibre\gui2\main.py", line 250, in start_gui File "calibre\gui2\ui.py", line 350, in initialize File "calibre\gui2\init.py", line 87, in init_library_view_mixin File "calibre\utils\config_base.py", line 500, in __setitem__ File "calibre\utils\config_base.py", line 514, in set File "calibre\utils\config_base.py", line 449, in set File "calibre\utils\config_base.py", line 386, in commit_data File "tempfile.py", line 563, in NamedTemporaryFile File "tempfile.py", line 560, in opener File "tempfile.py", line 256, in _mkstemp_inner FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\wolfg\\AppData\\Roaming\\calibre\\glob al-atomic-x8rsspfa' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre\gui2\main.py", line 307, in initialize_db_stage2 File "calibre\gui2\main.py", line 249, in start_gui File "calibre\utils\config.py", line 415, in __exit__ File "calibre\utils\config.py", line 408, in commit File "calibre\utils\config_base.py", line 386, in commit_data File "tempfile.py", line 563, in NamedTemporaryFile File "tempfile.py", line 560, in opener File "tempfile.py", line 256, in _mkstemp_inner FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\wolfg\\AppData\\Roaming\\calibre\\gui-atomic-e7ox30op' I tryed Safe Mode again and it still works there. But in regular mode I´m stuck with this message. It seems that another program/utility/service somehow blocks calibre from working corectly, but I can't find the right one. And the last changes I made on my PC since the last time calibre was working, were setting up a Ubuntu USB boot drive and the installation of the ecosia browser, which I have already uninstalled. But I don't have to use calibre that much, for now I can use it in safe mode and I won't reset my windows just for that. If you have more input I would be glad, but it`s not urgent. Thanks for your help |
09-04-2024, 10:57 AM | #6 | ||
Wizard
Posts: 2,126
Karma: 8796706
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
How to change File and Folder permissions in Windows 11/10 Quote:
bernie Quote:
|
||
09-04-2024, 12:39 PM | #7 |
Resident Curmudgeon
Posts: 76,421
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
@LittleZombie if you have an antivirus program running turn it off and see if calibre works. That is usually the problem.
If that's not the problem, turn off everything that starts with your system one-by-one until you find which program is causing the problem.You do have to reboot between turning off a program from starting. |
09-04-2024, 02:11 PM | #8 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2024
Device: Tolino shine 3
|
@JSWolf
I already tried that. But now I did it again and somehow this time it worked. And after turning everything on again it still works. Don't ask me why, but thanks. Best regards |
Tags |
calibre, filenotfounderror |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Start "edit book" plugin in Calibre 5 | wolf123 | Development | 6 | 02-05-2021 09:06 AM |
How to define the "Start" or "Beginning" page in Calibre | paul_01 | Conversion | 5 | 08-12-2016 07:58 AM |
"invalid start byte" when trying to open a azw3 file with calibre | berlineirn06 | Conversion | 4 | 12-26-2012 02:44 PM |
Using Calibre to make doc -> mobi files. Problems with "start reading" section. | Stodder | Calibre | 0 | 07-03-2011 11:32 AM |
A little newb help? Launch Calibre via batch file with "Start in tray" modifier | jphphotography | Calibre | 7 | 01-04-2011 12:49 PM |