Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 08-15-2013, 03:55 PM   #1
talmage
Junior Member
talmage began at the beginning.
 
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".
talmage is offline   Reply With Quote
Old 08-15-2013, 07:48 PM   #2
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 talmage View Post
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".
See the Red?
Commas that should be & signs to separate the authors in the metadata so 'Brent' as 42 middle names
theducks is offline   Reply With Quote
Advert
Old 08-15-2013, 08:17 PM   #3
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
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.
Adoby is offline   Reply With Quote
Old 08-15-2013, 09:04 PM   #4
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
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.
Dopedangel is offline   Reply With Quote
Old 08-15-2013, 11:37 PM   #5
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
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-16-2013, 03:06 PM   #6
talmage
Junior Member
talmage began at the beginning.
 
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!
talmage is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 11:38 AM.


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