Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: issubclass() arg 1 must be a class #88

Open
ygaitonde opened this issue Dec 28, 2022 · 2 comments
Open

TypeError: issubclass() arg 1 must be a class #88

ygaitonde opened this issue Dec 28, 2022 · 2 comments

Comments

@ygaitonde
Copy link

Describe the bug
I'm running the script in the normal fashion: kindle2notion INTEGRATION_KEY DATABASE_ID FILE_LOC.

To Reproduce
kindle2notion INTEGRATION_KEY DATABASE_ID FILE_LOC.

Expected behaviour
The program uploads my clippings to Notion.

Screenshots

Initiating transfer...

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/bin/kindle2notion", line 33, in <module>
    sys.exit(load_entry_point('kindle2notion==1.0.1', 'console_scripts', 'kindle2notion')())
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/kindle2notion/__main__.py", line 44, in main
    export_to_notion(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/kindle2notion/exporting.py", line 36, in export_to_notion
    message = _add_book_to_notion(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/kindle2notion/exporting.py", line 97, in _add_book_to_notion
    notion.databases.query(notion_database_id)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/notional/session.py", line 356, in query
    if issubclass(target, ConnectedPage):
TypeError: issubclass() arg 1 must be a class

Desktop (please complete the following information):

  • OS: MacOS

Additional context
Here's a link to my clippings.

@tobiasfamos
Copy link

I have the same error. Also on MacOS, on a Kindle Oasis, Firmware Version 5.15.1

@Mahaprasad003
Copy link

Same error. Any fix yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants