Coder Social home page Coder Social logo

Comments (9)

xxyzz avatar xxyzz commented on August 25, 2024

I should check the value returned from calibre api is not None. Looks like your Kindle is ejected?

WordDumb/send_file.py

Lines 34 to 36 in bd1c395

device_info = self.device_manager.get_current_device_information()
# /Volumes/Kindle
device_path_prefix = device_info['info'][4]['main']['prefix']

https://github.com/kovidgoyal/calibre/blob/06d82ad1c3f75722906a8ced56834ec1bc584917/src/calibre/gui2/device.py#L510-L511

https://github.com/kovidgoyal/calibre/blob/06d82ad1c3f75722906a8ced56834ec1bc584917/src/calibre/gui2/device.py#L185-L187

from worddumb.

xxyzz avatar xxyzz commented on August 25, 2024

v3.6.4 should resolve this bug.

from worddumb.

datthinh1801 avatar datthinh1801 commented on August 25, 2024

Actually, I don't think this is the case because my device is not ejected. Right after importing the error book, I can still import other books without errors.
For more information, I am trying to import the book Sprint: How to Solve Big Problems and Test New Ideas in Just Five Days into my kindle using WordDumb but it does not work and only this book has the problem.

from worddumb.

xxyzz avatar xxyzz commented on August 25, 2024

What's error on v3.6.4? Please upload the book or send it to my email if you want.

from worddumb.

datthinh1801 avatar datthinh1801 commented on August 25, 2024

Here is the book.
The error still remains on v3.6.4.

from worddumb.

xxyzz avatar xxyzz commented on August 25, 2024

Please post the error message of v3.6.4, I can't produce the error. I think it has nothing to do with the book but rather caused by something else.

from worddumb.

datthinh1801 avatar datthinh1801 commented on August 25, 2024

Actually, on v3.6.4, there is no error message; however, WordDumb still does not work with that book.

More specifically, on the previous version, WordDumb sometimes failed to import the book into my Kindle and raised that error message; in other times, it imported successfully but there was no WordWise of that book found in my Kindle.
On the new version, no error message emerges but WordDumb only imports the book into my Kindle, no WordWise (same as the latter case on the previous version).

FYI, I am using Kindle PaperWhite, maybe there is a problem with the device ?

from worddumb.

xxyzz avatar xxyzz commented on August 25, 2024

That's weird. Maybe your USB port is lose, but you said the book was sent to the device successfully. Maybe shutil.move() failed silently, but that also seems unlikely. I have no idea... My suggestion is try a different port or different machine to eliminate some possibilities.

I added shutil.copyfileobj and fsync() if shutil.move() doesn't move the file in this zip file, please try and see if it works for you.

worddumb-test.zip

from worddumb.

datthinh1801 avatar datthinh1801 commented on August 25, 2024

Hi, the new version 3.6.6 fixed the problem perfectly 👍🏻
Thank you very much!! Completely appreciate your work!!

from worddumb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.