Comments (9)
Nice tool! Same error from here (Windows 10), I tried the temporary solution but give the same error after the next warning:
I fixed with this temporary solution: #63 (comment)
I have the same problem. Fixed it with this command:
pip install git+https://github.com/jamalex/notion-py.git@refs/pull/352/merge
and rerunpython -m kindle2notion 'notion_token' 'notion_table_id' 'clipping_file_path'
Reference: jamalex/notion-py#352 (comment)
C:\Windows\system32>pip install git+jamalex/notion-py.git@refs#352 (merge) Collecting git+jamalex/notion-py.git@refs#352 (merge) Cloning jamalex/notion-py.git (to revision refs/pull/352/merge) to c:\users\danie\appdata\local\temp\pip-req-build-8_bv7o4t Running command git clone --filter=blob:none -q jamalex/notion-py.git 'C:\Users\danie\AppData\Local\Temp\pip-req-build-8_bv7o4t' WARNING: Did not find branch or tag 'refs/pull/352/merge', assuming revision or ref. Running command git fetch -q jamalex/notion-py.git refs/pull/352/merge Running command git checkout -q 017de43af765e232f6ba4403c5fa3513e614c955 Resolved jamalex/notion-py.git to commit 017de43af765e232f6ba4403c5fa3513e614c955 Preparing metadata (setup.py) ... done
Got it working by directly installing the fork (instead of the ref to the PR):
# in a pipenv (in my case)
pip install kindle2notion
pip install git+https://github.com/wsykala/notion-py.git
python -m kindle2notion .....
from kindle2notion.
I had the same issue. Running on Mac OS Big Sur, MacBook Pro M1, Python 3.10. Traceback:
Traceback (most recent call last):
File "/usr/local/bin/kindle2notion", line 8, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1134, in __call__
return self.main(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1059, in main
rv = self.invoke(ctx)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1401, 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 767, in invoke
return __callback(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/kindle2notion/__main__.py", line 26, in main
export_to_notion(books, enable_highlight_date, enable_book_cover, notion_token, notion_table_id)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/kindle2notion/exporting.py", line 29, in export_to_notion
message = _add_book_to_notion(title, author, highlight_count, aggregated_text_from_highlights, last_date,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/kindle2notion/exporting.py", line 60, in _add_book_to_notion
notion_collection_view_rows = notion_collection_view.collection.get_rows()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/notion/collection.py", line 180, in get_rows
return self.query(**kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/notion/collection.py", line 177, in query
return CollectionQuery(self, self._get_a_collection_view(), **kwargs).execute()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/notion/collection.py", line 322, in execute
self._client.query_collection(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/notion/client.py", line 243, in query_collection
return self._store.call_query_collection(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/notion/store.py", line 338, in call_query_collection
response = self._client.post("queryCollection", data).json()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/notion/client.py", line 209, in post
raise HTTPError(
requests.exceptions.HTTPError: Invalid input.
from kindle2notion.
Same problem for me as well.
OS: Windows 10
File "C:\Users\Vinlite\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\notion\collection.py", line 385, in execute
self._client.query_collection(
File "C:\Users\Vinlite\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\notion\client.py", line 294, in query_collection
return self._store.call_query_collection(*args, **kwargs)
File "C:\Users\Vinlite\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\notion\store.py", line 344, in call_query_collection
response = self._client.post("queryCollection", data).json()
File "C:\Users\Vinlite\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\notion\client.py", line 260, in post
raise HTTPError(
requests.exceptions.HTTPError: Invalid input.
from kindle2notion.
I fixed with this temporary solution: #63 (comment)
I have the same problem. Fixed it with this command:
pip install git+https://github.com/jamalex/notion-py.git@refs/pull/352/merge
and rerunpython -m kindle2notion 'notion_token' 'notion_table_id' 'clipping_file_path'
Reference: jamalex/notion-py#352 (comment)
from kindle2notion.
I fixed with this temporary solution: #63 (comment)
I have the same problem. Fixed it with this command:
pip install git+https://github.com/jamalex/notion-py.git@refs/pull/352/merge
and rerun python -m kindle2notion 'notion_token' 'notion_table_id' 'clipping_file_path'
Reference: jamalex/notion-py#352 (comment)
I tried this but got this error instead:
ERROR: Command errored out with exit status 1:
command: git version
cwd: None
Complete output (2 lines):
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
WARNING: Discarding git+https://github.com/jamalex/notion-py.git@refs/pull/352/merge. Command errored out with exit status 1: git version Check the logs for full command output.
ERROR: Command errored out with exit status 1: git version Check the logs for full command output.
What should I do?
from kindle2notion.
@benooirj Maybe your xcode commandline tools needs to be updated.
You could try this command: xcode-select --install
https://stackoverflow.com/a/52522566/4381022
from kindle2notion.
Nice tool! Same error from here (Windows 10), I tried the temporary solution but give the same error after the next warning:
I fixed with this temporary solution: #63 (comment)
I have the same problem. Fixed it with this command:
pip install git+https://github.com/jamalex/notion-py.git@refs/pull/352/merge
and rerunpython -m kindle2notion 'notion_token' 'notion_table_id' 'clipping_file_path'
Reference: jamalex/notion-py#352 (comment)
C:\Windows\system32>pip install git+https://github.com/jamalex/notion-py.git@refs/pull/352/merge
Collecting git+https://github.com/jamalex/notion-py.git@refs/pull/352/merge
Cloning https://github.com/jamalex/notion-py.git (to revision refs/pull/352/merge) to c:\users\danie\appdata\local\temp\pip-req-build-8_bv7o4t
Running command git clone --filter=blob:none -q https://github.com/jamalex/notion-py.git 'C:\Users\danie\AppData\Local\Temp\pip-req-build-8_bv7o4t'
WARNING: Did not find branch or tag 'refs/pull/352/merge', assuming revision or ref.
Running command git fetch -q https://github.com/jamalex/notion-py.git refs/pull/352/merge
Running command git checkout -q 017de43af765e232f6ba4403c5fa3513e614c955
Resolved https://github.com/jamalex/notion-py.git to commit 017de43af765e232f6ba4403c5fa3513e614c955
Preparing metadata (setup.py) ... done
from kindle2notion.
Same error here and the temp fix didn't resolve it. Mac OS Big Sur, MacBook Pro M1, Python 3.93
from kindle2notion.
Hi, just got around to this- please update to the latest version (1.0.0) and try again. The setup is a little different too so please go through the README file and docs. Latest solution does away with notion-py and the code is built upon the official API (python wrapper is notional which is based on notion-sdk-py.
from kindle2notion.
Related Issues (20)
- 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.