View Single Post
Old 04-04-2025, 04:48 PM   #3235
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by SusB View Post
I have had a similar problem since I installed version 8.0 of Calibre. After version 8.xx, books could be transferred and appeared in both the device section of Calibre and on my Kobo. The only problem was that when attempting to open a book in the device section of Calibre, I received the following message:

calibre, version 8.2.1
ERROR: Error: Error communicating with device

stat: path should be string, bytes, os.PathLike or integer, not BufferedReader

Traceback (most recent call last):
File "calibre\gui2\device.py", line 111, in run
File "calibre\gui2\device.py", line 713, in _view_book
File "calibre\devices\kobo\driver.py", line 765, in get_file
File "shutil.py", line 235, in copyfile
File "shutil.py", line 212, in _samefile
File "genericpath.py", line 100, in samefile
TypeError: stat: path should be string, bytes, os.PathLike or integer, not BufferedReader

The solution was to do what DNSB suggested in post #3226 above. I removed the checkmark from the "Use Kobo viewer for EPUB books" in the KoboTouch driver and this disabled the sending of keypub.epub. Calibre now just sends epubs to the device section of Calibre and to my Kobo so that I can now open the books in the device section as well as in Kobo.
When you send books to your Kobo, are you have author directories created? If so, that could be the problem. Plig in your Kobo tot he USB. Create a directory call books. Then remove the author directories from the template in Kobo Touch. replace it with books. It could be maybe an author name is using an extended character and causing the problem.
JSWolf is offline   Reply With Quote