01-21-2015, 02:54 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jan 2015
Device: Kindle Paperwhite
|
IOError: [Errno 22] invalid mode ('w') or filename
Hi there! I've been using Calibre for years now, and I totally love it. I added a couple of new books to my library last night, then closed the app. Just now I plugged my Kindle Paperwhite into my computer and tried to open the app, but was greeted with the following error:
calibre, version 2.15.0 ERROR: Unhandled exception: <b>IOError</b>:[Errno 22] invalid mode ('w') or filename: u'/Volumes/JetDrive/Google JetDrive/Books/Calibre Library/calibre_test_case_sensitivity.txt' calibre 2.15 isfrozen: True is64bit: True Darwin-14.0.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '14.0.0', 'Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64') Python 2.7.8 OSX: ('10.10.1', ('', '', ''), 'x86_64') Successfully initialized third party plugins: Find Duplicates && Kindle Collections Traceback (most recent call last): File "site-packages/calibre/gui2/dialogs/choose_library.py", line 132, in accept File "site-packages/calibre/gui2/dialogs/choose_library.py", line 107, in perform_action File "site-packages/calibre/gui2/actions/choose_library.py", line 586, in choose_library_callback File "site-packages/calibre/gui2/ui.py", line 630, in library_moved File "site-packages/calibre/db/legacy.py", line 70, in __init__ File "site-packages/calibre/db/legacy.py", line 44, in create_backend File "site-packages/calibre/db/backend.py", line 349, in __init__ File "site-packages/calibre/utils/filenames.py", line 115, in is_case_sensitive IOError: [Errno 22] invalid mode ('w') or filename: u'/Volumes/JetDrive/Google JetDrive/Books/Calibre Library/calibre_test_case_sensitivity.txt' Can someone please tell me if there is a way to fix this? I'll admit I don't know what the above message means, but I'm good at following directions! I really appreciate the help! |
01-21-2015, 10:44 PM | #2 |
creator of calibre
Posts: 44,566
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Move your calibre library out of JetDrive, which I assume is some kind of networked drive, see http://manual.calibre-ebook.com/faq....rked-drive-nas
|
Advert | |
|
02-09-2015, 03:05 PM | #3 |
Enthusiast
Posts: 38
Karma: 120648
Join Date: Jan 2015
Device: PC
|
I have an IO error too. It occurs intermittently when I page to a new chapter in my Calibre reader. When this happens, everything locks up and I have to close my reader and reopen it to continue reading. I copied the error message to my clipboard. Here what I got:
calibre, version 2.19.0 ERROR: Unhandled exception: <b>IOError</b>:[Errno 2] No such file or directory: u'C:\\Users\\TWHAN_~1\\AppData\\Local\\Temp\\calib re_lmglh9\\fueox2_ebook_iter\\OEBPS\\Essi_97816121 94097_epub_c05_r1.htm' calibre 2.19 isfrozen: True is64bit: False Windows-8-6.2.9200 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '8', '6.2.9200') Python 2.7.9 Windows: ('8', '6.2.9200', '', 'Multiprocessor Free') Successfully initialized third party plugins: Overdrive Link Traceback (most recent call last): File "site-packages\calibre\gui2\viewer\documentview.py", line 1273, in keyPressEvent File "site-packages\calibre\gui2\viewer\documentview.py", line 1300, in handle_key_press File "site-packages\calibre\gui2\viewer\documentview.py", line 1284, in paged_col_scroll File "site-packages\calibre\gui2\viewer\main.py", line 930, in next_document File "site-packages\calibre\gui2\viewer\main.py", line 679, in load_path File "site-packages\calibre\gui2\viewer\documentview.py", line 890, in load_path File "site-packages\calibre\ebooks\oeb\display\webview.py", line 44, in load_html IOError: [Errno 2] No such file or directory: u'C:\\Users\\TWHAN_~1\\AppData\\Local\\Temp\\calib re_lmglh9\\fueox2_ebook_iter\\OEBPS\\Essi_97816121 94097_epub_c05_r1.htm' Any help to remedy this would be greatly appreciated. |
02-09-2015, 04:19 PM | #4 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Try setting the environment "CALIBRE_TEMP_DIR" -- occasionally people report similar problems which are due to the permissions on the TEMP folder. If you set a calibre temp folder, say, in the parent folder of your library folder, this should get resolved.
See: http://manual.calibre-ebook.com/cust...ment-variables Alternatively -- your antivirus might be messing around with calibre's attempts to write temporary files. Make sure calibre is excluded from your antivirus's real-time scanning. |
02-13-2015, 07:16 AM | #5 |
Enthusiast
Posts: 38
Karma: 120648
Join Date: Jan 2015
Device: PC
|
I'll try excluding Calibre2 programs from my virus scans.
|
Advert | |
|
02-17-2015, 06:29 PM | #6 |
Enthusiast
Posts: 38
Karma: 120648
Join Date: Jan 2015
Device: PC
|
I tried excluding the Calibre app folders from my virus scan. Didn't help.
How do I go about setting the environment "CALIBRE_TEMP_DIR"? |
02-17-2015, 10:15 PM | #7 |
null operator (he/him)
Posts: 21,008
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@TWHanson1 - same as any other similar environment variable.
Create a directory such as %systemdrive%\CalibreTemp Then set CALIBRE_TEMP_DIR as a user variable to that directory, either using the SetX - Set environment variables command, or via Control Panel->System->Advanced Settings->Environment Settings BR |
Tags |
errno 22, invalid mode, ioerror |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Errno 22] invalid mode ('wb') or filename: u' | taratears | Devices | 2 | 08-29-2013 02:05 PM |
IOError: [Errno 22] Invalid argument | jkcoder | Calibre | 5 | 09-25-2010 10:28 AM |
IOError: [Errno 13] Permission denied | s3ntient | Calibre | 3 | 02-20-2010 03:01 PM |
IOError errno 5? | codemac | Calibre | 11 | 10-22-2009 03:36 PM |
rtf2lrf shows IOError: [Errno 2] if special characters in filename | xixix | Sony Reader | 9 | 03-07-2008 02:44 AM |