Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-05-2016, 03:59 PM   #1
Mashkai
Junior Member
Mashkai began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2014
Device: none
Question [Error 267]

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!
Mashkai is offline   Reply With Quote
Old 04-05-2016, 04:00 PM   #2
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
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.
Terisa de morgan is offline   Reply With Quote
Advert
Old 04-05-2016, 04:55 PM   #3
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
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.
PeterT is offline   Reply With Quote
Old 04-05-2016, 05:53 PM   #4
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
Quote:
Originally Posted by PeterT View Post
...I think that is a reserved name to Windows.
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).
AnotherCat is offline   Reply With Quote
Old 04-05-2016, 05:59 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
Quote:
Originally Posted by PeterT View Post
The issue is the use of Con as a part of a directory name. I think that is a reserved name to Windows.
CON: ring a bell
theducks is offline   Reply With Quote
Advert
Old 04-05-2016, 06:31 PM   #6
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: 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.
BetterRed is offline   Reply With Quote
Old 04-05-2016, 09:38 PM   #7
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: 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.
kovidgoyal is offline   Reply With Quote
Old 04-05-2016, 09:42 PM   #8
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: 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.
kovidgoyal is offline   Reply With Quote
Old 04-05-2016, 10:33 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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.
eschwartz is offline   Reply With Quote
Old 04-05-2016, 11:11 PM   #10
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: 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.
kovidgoyal is offline   Reply With Quote
Old 04-06-2016, 02:45 AM   #11
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: 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)
Interesting

BR

Last edited by BetterRed; 04-06-2016 at 02:55 AM.
BetterRed is offline   Reply With Quote
Old 04-06-2016, 12:22 PM   #12
Mashkai
Junior Member
Mashkai began at the beginning.
 
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?
Mashkai is offline   Reply With Quote
Old 04-06-2016, 01:20 PM   #13
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
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.
itimpi is offline   Reply With Quote
Old 04-06-2016, 03:48 PM   #14
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Quote:
Originally Posted by itimpi View Post
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.
This The 'con' file represents the keyboard.

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.
Katsunami is offline   Reply With Quote
Old 04-06-2016, 04:51 PM   #15
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: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Katsunami View Post
This The 'con' file represents the keyboard.

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
But in this instance 'con' is a directory (at author level) in a calibre library named ISBN

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:19 AM.


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