![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Aug 2014
Device: none
|
![]()
I searched but only saw one other thread involving this error message. I have restarted my PC (twice), reinstalled Calibre (also twice), and tried running it w/o any other programs (although none of said programs have anything to do with cleaning/deleting temp files as far as I am aware).
I have rec'd this error message both when attempting to move files from one library to another and when trying to alter metadata en mass. Here is the latest version of said error message: Traceback (most recent call last): File "site-packages\calibre\gui2\actions\copy_to_library.py", line 111, in run File "site-packages\calibre\gui2\actions\copy_to_library.py", line 133, in doit File "site-packages\calibre\gui2\actions\copy_to_library.py", line 172, in _doit File "site-packages\calibre\db\legacy.py", line 243, in import_book File "site-packages\calibre\db\cache.py", line 1560, in add_books File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock File "site-packages\calibre\db\cache.py", line 1530, in create_book_entry File "site-packages\calibre\db\cache.py", line 1252, in set_metadata File "site-packages\calibre\db\cache.py", line 1079, in update_path File "site-packages\calibre\db\backend.py", line 1514, in update_path File "os.py", line 150, in makedirs File "os.py", line 157, in makedirs WindowsError: [Error 267] The directory name is invalid: u'E:\\Calibre Libraries\\ISBN\\Con' What did I mess up? How do I fix it if it is fixable? (Would be awesome if it was fixable without losing all of my settings/plugin settings *again*) Thank you in advance! |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,635
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
What is the name of involved libraries? Because it look like you os don't like the directories a lot.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,528
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
The issue is the use of Con as a part of a directory name. I think that is a reserved name to Windows.
|
![]() |
![]() |
![]() |
#4 |
....
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
|
It is reserved, these reserved names are DOS commands, being predominantly (as far as I am aware) those addressing external devices. So the likes of LPT, COM, etc. and CON (which is CONSOLE).
It is possible with a bit of trickery to create a directory called CON (in whatever case, upper or lower) but I doubt it would play well wit applications (I have never tried). |
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
If you try to name a file or folder 'CON' or 'con' Windows throws "The specified device name is invalid", if you try to create a book with Author or Title 'Con' in calibre it throws the 267 error - which it gets from Python.
BR Last edited by BetterRed; 04-05-2016 at 06:34 PM. |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Change the title to not be con and you should be fine -- add a suffix.
I'll add a check to the calibre file naming routines to do that automatically in the future. |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Actually I dont see how calibre could have created that directory, since book directories always contain book ids. Probably you have some other program writing to your calibre library folder.
|
![]() |
![]() |
![]() |
#9 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Looks like that is the author name, not the book title.
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I already committed a fix to ensure author name based folders are never reserved windows names.
If that is indeed an author name then the OP simply needs to change it to something other than con and he should be fine. |
![]() |
![]() |
![]() |
#11 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
FWIW : I changed an author name on a book (test) from 'Nick' to 'con', I got an 267 error and clicked OK, the metadata changed to 'con' but author folder remained as 'Nick' - that may be incongruous but as I understand calibre it's not invalid.
What surprised me was that the book file name remained 'test - Nick.docx' and 'test - Nick.epub'? Check Library returned no errors. So how did the OP change the author folder name to CON - in linux maybe? Added : After I Polished the book I had 'test - Nick.docx' and 'test - con.epub?' and the metadata.opf file had Code:
<dc:creator opf:file-as="Nick" opf:role="aut">Nick</dc:creator> <dc:contributor opf:file-as="calibre" opf:role="bkp">calibre (2.53.0) BR Last edited by BetterRed; 04-06-2016 at 02:55 AM. |
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Aug 2014
Device: none
|
Sorry for the slow replies - for whatever reason, I wasn't rec'ing emails.
As for the directories- crazy as it sounds, there is NO "con" folder. Anywhere! I moved a batch of books and attempted for another batch five minutes later and this was the result. This error is about a folder that doesn't exist. I have searched said directory, all of the other calibre libraries, and done a fulle search of my HD. No such file, folder, or directory exists. There are books/authors that contain "con" (Connor, Continuum, Pro's and Con's, etc) but nothing that is *only* "con". What am I missing here? |
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Con is a reserved name in Windows - any attempt to reference it as a file or folder name will always cause an error. It is a hangover from the MSDOS days when 'con' referred to the console device.
|
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
![]() You can actually create files this way, in the command-line window: copy con file.txt (write some stuff here) (press ctrl+z, then press enter) Result: 1 file(s) copied. So a file was copied from the your keyboard into a text file ![]() Last edited by Katsunami; 04-06-2016 at 03:51 PM. |
|
![]() |
![]() |
![]() |
#15 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() BR |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura ERROR: Error: Error communicating with device | Calibrefan | Kobo Reader | 2 | 07-02-2015 02:14 PM |
Running recipe error: Python function terminated unexpectedly (Error Code: 1) | jpassarella | Recipes | 0 | 10-05-2012 12:54 PM |
calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: | e-bookuser | Devices | 1 | 07-03-2011 04:09 PM |
ERROR: Error: Error communicating with device | JWood | Calibre | 10 | 04-20-2010 07:28 PM |
Reader's Screen Went Crazy, Now Sony Wants $267.49 | sammykrupa | Sony Reader | 16 | 01-10-2007 04:52 PM |