![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Aug 2013
Device: none
|
File name too long
What can I do about a PDF that has a very long author list embedded in it? Calibre 0.9.42 tries to import it and gives up with the following error:
calibre, version 0.9.42 ERROR: Unhandled exception: <b>IOError</b>:[Errno 36] File name too long: u'/home/dtalmage/Calibre Library/Brent Rickenbach, Peter Griffin, Jason Rush, John Flanagan, Brian Adamson, Joseph P. Macker/Adaptive Data Delivery Over Disadvantaged, Dynamic Networks (85)/Adaptive Data Delivery Over Disadvantaged, Dynamic Networks - Brent Rickenbach, Peter Griffin, Jason Rush, John Flanagan, Brian Adamson, Joseph P. Macker.pdf' Traceback (most recent call last): File "site-packages/calibre/gui2/auto_add.py", line 198, in add_to_db File "site-packages/calibre/gui2/library/models.py", line 276, in add_books File "site-packages/calibre/library/database2.py", line 3520, in add_books File "site-packages/calibre/library/database2.py", line 1557, in add_format File "site-packages/calibre/startup.py", line 165, in local_open IOError: [Errno 36] File name too long: u'/home/dtalmage/Calibre Library/Brent Rickenbach, Peter Griffin, Jason Rush, John Flanagan, Brian Adamson, Joseph P. Macker/Adaptive Data Delivery Over Disadvantaged, Dynamic Networks (85)/Adaptive Data Delivery Over Disadvantaged, Dynamic Networks - Brent Rickenbach, Peter Griffin, Jason Rush, John Flanagan, Brian Adamson, Joseph P. Macker.pdf' The name of the file I'm trying to import is "RickenbackerEtAl-AdaptiveDataDelivery.pdf". |
![]() |
![]() |
![]() |
#2 | |
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
|
Quote:
Commas that should be & signs to separate the authors in the metadata so 'Brent' as 42 middle names ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Handy Elephant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
|
Perhaps the file will be added correctly if you disable reading metadata from inside the file? Worth a shot... Preferences, Add.
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,793
Karma: 30548723
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
Disabling read metadata from file should work as from what I can see the author name is long enough to hit calibre 180 character directory limit.
Apart from that I would recommend keeping your calibre library in the root folder of your drive. Instead of where calibre makes it by default in your My documents folder. |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's not a calibre limit, that's a filesystem limit. Judging by the fact that the filenames are using forward slashes, you are on some unix like OS. Which means you have put your calibre library on some network filesystem or some external disk with a windows filesystem on it, dont do that. Move your calibre library to a OS native filesystem and your problems will go away.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Aug 2013
Device: none
|
Thanks to all of you for your advice. I disabled the reading of metadata during import. Then Calibre was able to import my PDF. I have no way to change the medata in the PDF.
Following kovidgoyal's suggestion, I looked into the maximum file name length for ext4, the filesystem I'm using on my Linux box. It's a local filesystem. The upper limit is 255 ASCII characters. However, my home directory is encrypted using eCryptfs and that has an upper limit of 143 ASCII characters. The file name as proposed by Calibre has 158 ASCII characters. Mystery solved! |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Potential problems with long file names | GeoffR | Kobo Reader | 13 | 03-25-2013 05:25 AM |
File Names to long? | JTAL604622 | Calibre | 5 | 08-31-2011 03:21 AM |
Need help converting file which is too long to be HTML | ficbot | Workshop | 8 | 04-06-2010 11:45 PM |
How long should it take an emailed file to arrive on the Kindle 2? | anthonymoody | Amazon Kindle | 11 | 03-06-2009 08:49 AM |