Giter Site home page Giter Site logo

Comments (10)

yoshihiko-k avatar yoshihiko-k commented on May 18, 2024 1

@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 avatar paperboi commented on May 18, 2024 1

@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.

madzic avatar madzic commented on May 18, 2024

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.

paperboi avatar paperboi commented on May 18, 2024

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.

crisdias avatar crisdias commented on May 18, 2024

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.

paperboi avatar paperboi commented on May 18, 2024

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.

madzic avatar madzic commented on May 18, 2024

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.

paperboi avatar paperboi commented on May 18, 2024

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.

madzic avatar madzic commented on May 18, 2024

Works like a charm, thank you! Will buy you a coffee for this, thanks!

from kindle2notion.

paperboi avatar paperboi commented on May 18, 2024

@madzic Glad to hear that! Thanks a lot!

from kindle2notion.

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.