Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 02-12-2015, 02:10 PM   #1
mclien
42, the answer
mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.
 
Posts: 124
Karma: 17798
Join Date: Sep 2011
Location: Germany
Device: Pocketbook 603
Pyrus mini detected, but transfer error

I'm running debian wheezy with calibre 2.19
My just delivered trekstore Pyrus mini is detected flawlessly ("connected Trekstore").
But when I try to tranfser a book to the device I get an error:
Code:
[Errno 17] File exists: '/media/TREKSTOR/Ebooks'

Traceback (most recent call last):
  File "site-packages/calibre/gui2/device.py", line 87, in run
  File "site-packages/calibre/gui2/device.py", line 584, in _upload_books
  File "site-packages/calibre/devices/usbms/driver.py", line 267, in upload_books
  File "site-packages/calibre/devices/usbms/device.py", line 1073, in create_upload_path
  File "os.py", line 157, in makedirs
OSError: [Errno 17] File exists: '/media/TREKSTOR/Ebooks'
Should I delete the Ebooks file on the device before transfering to make it work?
mclien is offline   Reply With Quote
Old 02-12-2015, 02:14 PM   #2
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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Yes, because it appears that the Pyrus Mini uses that location as the root folder for books.
eschwartz is offline   Reply With Quote
Advert
Old 02-13-2015, 01:30 PM   #3
mclien
42, the answer
mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.
 
Posts: 124
Karma: 17798
Join Date: Sep 2011
Location: Germany
Device: Pocketbook 603
So you say calibre wants to create a file with the name Ebooks, which it can't bacause there is a folder on the Pyrus which is named eBooks??
Does that mean calibre is unable to distinguish upper/lowercase, even tought the OS(GNU/Linux) can??
mclien is offline   Reply With Quote
Old 02-13-2015, 01:35 PM   #4
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,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by mclien View Post
So you say calibre wants to create a file with the name Ebooks, which it can't bacause there is a folder on the Pyrus which is named eBooks??
Does that mean calibre is unable to distinguish upper/lowercase, even tought the OS(GNU/Linux) can??
Does the Paris by any chance use a FAT based file system for storing books? Only checking because FAT based systems ignore case.
itimpi is offline   Reply With Quote
Old 02-13-2015, 02:04 PM   #5
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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by mclien View Post
So you say calibre wants to create a file with the name Ebooks, which it can't bacause there is a folder on the Pyrus which is named eBooks??
Does that mean calibre is unable to distinguish upper/lowercase, even tought the OS(GNU/Linux) can??
It appears that calibre wants to create a folder called "Ebooks" which it cannot do because there is already a file of the same name and case.

Since calibre is performing a bog-standard python os.makedirs call, I would venture to say there is no special secret sauce designed for confusing filenames... though it is possible that as itimpi said, there is a file with a different case but same name, in which case the traditional FAT storage system might throw complaints.

Either way, what is a file called ebooks/Ebooks/eBooks/eBoOKs/anything else doing there in the first place?
eschwartz is offline   Reply With Quote
Advert
Old 02-13-2015, 05:24 PM   #6
mclien
42, the answer
mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.
 
Posts: 124
Karma: 17798
Join Date: Sep 2011
Location: Germany
Device: Pocketbook 603
@itimpi:
right you are vfat-filesystem on the Pyrus

@eschwartz:
case aside: in the first place the folder* on the divice exists and the in the second place calibre wants to create a file with the name. Whatfor I have no idea. What and if at all folder is then used for books I have no idea, too.

*
Code:
ls -l /media/TREKSTOR/
...
-rw-r--r-- 1 foo users  292 Feb 13 19:24 driveinfo.calibre
drwx------ 2 foo users 4096 Feb 12 20:12 eBooks
defenitly folder in the first place.

So if calibre wants the create a folder, then it's complaining it is already there and therfor throws an error. Could it be, that calibre noticed the case diference and then gets stuck becaus ethe filesystem on the device don't?

Last edited by mclien; 02-13-2015 at 05:31 PM.
mclien is offline   Reply With Quote
Old 02-13-2015, 10:15 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: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That error indicates that your system is mounting the vfat partition with broken options.

The stat() call for /media/TREKSTOR/Ebooks is failling indicating it does not exist, and then the mkdir() call is failing indicating it does exist.

In other words, stat() is case sensitive, but mkdir is not. That is just wrong.

Either delete the folder and let calibre create is for you or rename it to have the case calibre expects. Or better yet fix your system to use the correct mount options for vfat.

EDIT: Just for completeness, it will likely be some mixture of the shortname and iocharset/utf8 mount options. Here are the options from my system for vfat devices. (rw,nosuid,nodev,noexec,relatime,uid=1000,gid=1000 ,fmask=0022,dmask=0077,codepage=437,iocharset=iso8 859-1,shortname=mixed,showexec,utf8,flush,errors=remou nt-ro,uhelper=udisks2)

Last edited by kovidgoyal; 02-13-2015 at 10:22 PM.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trekstor Pyrus Mini pdurrant News 159 07-24-2015 05:13 AM
Trekstor Pyrus not detected MiniLove Devices 3 01-23-2014 11:43 AM
Sell For sale, Trekstor Pyrus Mini in UK. WigglePig Flea Market 2 07-10-2013 06:43 PM
TrekStor Pyrus mini 4.3 Zoll medard Andere Lesegeräte 1 01-25-2013 11:58 PM
Trekstor Pyrus is not detected on Windows Dukan Devices 6 01-25-2013 11:07 AM


All times are GMT -4. The time now is 08:14 AM.


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