Comments (10)
@paperboi
I stumbled upon the same thing.
Please update the minimum python version described in Setup.py.
setup.py
python_requires='>=3.9',
from kindle2notion.
@paperboi
I stumbled upon the same thing.
Please update the minimum python version described in Setup.py.setup.py
python_requires='>=3.9',
Noted. Will address it in the next commit and release.
from kindle2notion.
I found your answer to other issue and upgraded Python to 3.9.
Now I have the following issue:
Traceback (most recent call last):
File "D:\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\Python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "D:\Python39\lib\site-packages\kindle2notion_main.py", line 31, in
main()
File "D:\Python39\lib\site-packages\click\core.py", line 1134, in call
return self.main(*args, **kwargs)
File "D:\Python39\lib\site-packages\click\core.py", line 1059, in main
rv = self.invoke(ctx)
File "D:\Python39\lib\site-packages\click\core.py", line 1401, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\Python39\lib\site-packages\click\core.py", line 767, in invoke
return _callback(*args, **kwargs)
File "D:\Python39\lib\site-packages\kindle2notion_main.py", line 25, in main
books = parse_raw_clippings_text(all_clippings)
File "D:\Python39\lib\site-packages\kindle2notion\parsing.py", line 18, in parse_raw_clippings_text
author, title = _parse_author_and_title(raw_clipping_list)
File "D:\Python39\lib\site-packages\kindle2notion\parsing.py", line 36, in _parse_author_and_title
author, title = _deal_with_exceptions_in_author_name(author, title)
File "D:\Python39\lib\site-packages\kindle2notion\parsing.py", line 79, in _deal_with_exceptions_in_author_name
last_name, first_name = author.split(', ')
ValueError: too many values to unpack (expected 2)
Any help? Thanks.
from kindle2notion.
I found your answer to other issue and upgraded Python to 3.9.
Now I have the following issue:
Traceback (most recent call last):
File "D:\Python39\lib\runpy.py", line 197, in _run_module_as_main
return run_code(code, main_globals, None,
File "D:\Python39\lib\runpy.py", line 87, in run_code exec(code, run_globals) File "D:\Python39\lib\site-packages\kindle2notion__main.py", line 31, in
main()
File "D:\Python39\lib\site-packages\click\core.py", line 1134, in call
return self.main(*args, **kwargs)
File "D:\Python39\lib\site-packages\click\core.py", line 1059, in main
rv = self.invoke(ctx)
File "D:\Python39\lib\site-packages\click\core.py", line 1401, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\Python39\lib\site-packages\click\core.py", line 767, in invoke
return callback(*args, **kwargs) File "D:\Python39\lib\site-packages\kindle2notion__main.py", line 25, in main
books = parse_raw_clippings_text(all_clippings)
File "D:\Python39\lib\site-packages\kindle2notion\parsing.py", line 18, in parse_raw_clippings_text
author, title = _parse_author_and_title(raw_clipping_list)
File "D:\Python39\lib\site-packages\kindle2notion\parsing.py", line 36, in _parse_author_and_title
author, title = _deal_with_exceptions_in_author_name(author, title)
File "D:\Python39\lib\site-packages\kindle2notion\parsing.py", line 79, in _deal_with_exceptions_in_author_name
last_name, first_name = author.split(', ')
ValueError: too many values to unpack (expected 2)Any help? Thanks.
Hi, can you try posting the last book that appeared in your output before this error showed up? It may something to do with a book not having an author listed at all.
from kindle2notion.
I have the same problem and I have no books showing on my output. (is there a "verbose" option I should be using to get this info?)
Many books in my Clippings file don't follow a "Last, First" author structure.
e.g.: Legion Skin Deep (Brandon Sanderson)
(this is the first line of my clippings file)
Hope that helps.
from kindle2notion.
I have the same problem and I have no books showing on my output. (is there a "verbose" option I should be using to get this info?)
Many books in my Clippings file don't follow a "Last, First" author structure.
e.g.: Legion Skin Deep (Brandon Sanderson)
(this is the first line of my clippings file)Hope that helps.
I realized I haven't fully taken into account of the non-ASCII characters that sometimes appear when reading the clippings file in UTF-8 encoding. I assume this error came up because of it. Found a solution to this- will post a new release soon and update you here.
from kindle2notion.
I found your answer to other issue and upgraded Python to 3.9.
Now I have the following issue:
Traceback (most recent call last):
File "D:\Python39\lib\runpy.py", line 197, in _run_module_as_main
return run_code(code, main_globals, None,
File "D:\Python39\lib\runpy.py", line 87, in run_code exec(code, run_globals) File "D:\Python39\lib\site-packages\kindle2notion__main.py", line 31, in
main()
File "D:\Python39\lib\site-packages\click\core.py", line 1134, in call
return self.main(*args, **kwargs)
File "D:\Python39\lib\site-packages\click\core.py", line 1059, in main
rv = self.invoke(ctx)
File "D:\Python39\lib\site-packages\click\core.py", line 1401, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\Python39\lib\site-packages\click\core.py", line 767, in invoke
return **callback(*args, kwargs) File "D:\Python39\lib\site-packages\kindle2notion__main.py", line 25, in main
books = parse_raw_clippings_text(all_clippings)
File "D:\Python39\lib\site-packages\kindle2notion\parsing.py", line 18, in parse_raw_clippings_text
author, title = _parse_author_and_title(raw_clipping_list)
File "D:\Python39\lib\site-packages\kindle2notion\parsing.py", line 36, in _parse_author_and_title
author, title = _deal_with_exceptions_in_author_name(author, title)
File "D:\Python39\lib\site-packages\kindle2notion\parsing.py", line 79, in _deal_with_exceptions_in_author_name
last_name, first_name = author.split(', ')
ValueError: too many values to unpack (expected 2)
Any help? Thanks.Hi, can you try posting the last book that appeared in your output before this error showed up? It may something to do with a book not having an author listed at all.
Hi man, thanks for the reply.
No books appeared in Notion and the first book has the author (Cabane, Olivia Fox).
Thanks again.
from kindle2notion.
Hi, can you update to the new release and run the commands again? It should work now.
pip install kindle2notion==0.1.3
from kindle2notion.
Works like a charm, thank you! Will buy you a coffee for this, thanks!
from kindle2notion.
@madzic Glad to hear that! Thanks a lot!
from kindle2notion.
Related Issues (20)
- raise HTTPError( requests.exceptions.HTTPError: Invalid input. HOT 9
- I keep getting the following IndexError: list index out of range HOT 2
- requests.exceptions.HTTPError: Invalid input. HOT 2
- Can't install kindle2notion. setuptools not available in the build environment. HOT 5
- I keep getting this error "raise HTTPError( requests.exceptions.HTTPError: Something went wrong." HOT 1
- "from more_itertools import grouper" needs to commented on the packages. HOT 1
- ENHANCEMENT: Create and maintain JSON object of books and clippings to reduce API calls and update only those clippings that are modified each time. HOT 1
- APIResponseError: API token is invalid HOT 3
- Update docs to reflect the new Notion API integration token setup
- AttributeError: 'NoneType' object has no attribute 'strftime' HOT 4
- Unable to sync clippings with many highlights HOT 1
- TypeError: issubclass() arg 1 must be a class HOT 2
- 'ascii' codec can't encode character '\u2019' in position 217: ordinal not in range(128) HOT 1
- Error when trying to export. HOT 4
- ValueError: invalid literal for int() with base 10: '60.0' HOT 1
- Client error '400 Bad Request' with body.children[0].paragraph.rich_text[16].text.content.length should be ≤ `2000`, instead was `2001`.
- Unsure if My input format is correct: 401 Client Error HOT 1
- Need to update the documentation about how to share database with integration
- Add support for exported notes form Kindle app
- ValueError: time data '' does not match format '%A, %d %B %Y %I:%M:%S %p' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kindle2notion.