lvzon / kindle-clippings

A Python-script to extract and organise highlights and notes from the "My Clippings.txt" file on a Kindle e-reader.
GNU General Public License v3.0
69 stars 21 forks source link

Error - Can you help, please? :) #1

Open nathanwinklepleck opened 3 years ago

nathanwinklepleck commented 3 years ago

This is a great idea and I'm excited to use it! But getting the following error when I plug in my Kindle and try to import the My Clippings.txt file from the Kindle folder.


Python 3.9.1 (v3.9.1:1e5d33e9b9, Dec 7 2020, 12:44:01) [Clang 12.0.0 (clang-1200.0.32.27)] on darwin Type "help", "copyright", "credits" or "license()" for more information.

= RESTART: /Users/nathanwinklepleck/Downloads/kindle-clippings-master/extract-kindle-clippings.py Traceback (most recent call last): File "/Users/nathanwinklepleck/Downloads/kindle-clippings-master/extract-kindle-clippings.py", line 28, in from dateutil.parser import parse ModuleNotFoundError: No module named 'dateutil'

lvzon commented 3 years ago

It seems you're missing the dateutil module for Python. I'm not sure what kind of system you're on (MacOS perhaps?), but you can try typing the following in a command shell: sudo pip3 install dateutil

Sanabria commented 2 years ago

In my case, I had installed python3 via homebrew and it did not recognize the dateutil module (even that it was installed).

Updating the correct path to python3 in line 1 of extract-kindle-clippings.py (in my case #!/opt/homebrew/bin/python3) fixed the issue!