raffaelbdl / kuma-browser Goto Github PK
View Code? Open in Web Editor NEWAdd-on to use JPDB directly inside Anki
License: MIT License
Add-on to use JPDB directly inside Anki
License: MIT License
I had the same problem with the JPDB Anki Note Creator, so, there is a big chance that there is something wrong with my system.
Python version: 3.11.6
Anki 24.04 (429bc9e1) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22631
Traceback (most recent call last):
File "urllib3.connectionpool", line 467, in _make_request
File "urllib3.connectionpool", line 1099, in _validate_conn
File "urllib3.connection", line 653, in connect
File "urllib3.connection", line 806, in _ssl_wrap_socket_and_match_hostname
File "urllib3.util.ssl_", line 465, in ssl_wrap_socket
File "urllib3.util.ssl_", line 509, in _ssl_wrap_socket_impl
File "ssl", line 501, in wrap_socket
File "ssl", line 1074, in _create
File "ssl", line 1343, in do_handshake
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1129)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "urllib3.connectionpool", line 793, in urlopen
File "urllib3.connectionpool", line 491, in _make_request
urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:1129)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "requests.adapters", line 486, in send
File "urllib3.connectionpool", line 847, in urlopen
File "urllib3.util.retry", line 515, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='jpdb.io', port=443): Max retries exceeded with url: /textbook/9/minna-no-nihongo-i/vocabulary-list (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\pdc18\AppData\Roaming\Anki2\addons21\kuma\widget.py", line 232, in run
entries = self.get_all_entries_from_vocab_list(self.url)
File "C:\Users\pdc18\AppData\Roaming\Anki2\addons21\kuma\widget.py", line 241, in get_all_entries_from_vocab_list
jpdb_soup = load_url(vl_url)
File "C:\Users\pdc18\AppData\Roaming\Anki2\addons21\kuma\jpdb.py", line 22, in load_url
return BeautifulSoup(requests.get(url).content, "html.parser")
File "requests.api", line 73, in get
File "requests.api", line 59, in request
File "requests.sessions", line 589, in request
File "requests.sessions", line 703, in send
File "requests.adapters", line 517, in send
requests.exceptions.SSLError: HTTPSConnectionPool(host='jpdb.io', port=443): Max retries exceeded with url: /textbook/9/minna-no-nihongo-i/vocabulary-list (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
'' ['kuma', 0, 'None', '']
Beautify-Anki 20 mizmu ['1116770498', 2023-10-31T18:51, 'None', mod]
Japanese Pitch Accent ['148002038', 2023-05-07T14:01, 'None', '']
Kanji Colorizer stroke order diagrams ['1964372878', 2024-01-08T17:48, 'None', mod]
Quick Colour Changing ['2491935955', 2023-10-19T04:15, 'None', '']
Review Heatmap ['1771074083', 2022-06-30T02:43, 'None', '']
Straight Reward ['957961234', 2023-11-01T14:11, 'None', '']
===IDs of active AnkiWeb add-ons===
1116770498 148002038 1771074083 1964372878 2491935955 957961234
===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Error from the command runned direct from terminal
Creating new list minna-no-nihongo-i_vocabulary-list
Traceback (most recent call last):
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 1099, in _validate_conn
conn.connect()
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connection.py", line 653, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connection.py", line 806, in _ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\ssl_.py", line 465, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\ssl_.py", line 509, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 455, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 1042, in _create
self.do_handshake()
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 1320, in do_handshake
self._sslobj.do_handshake()
ssl.SSLEOFError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 491, in _make_request
raise new_e
urllib3.exceptions.SSLError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 847, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='jpdb.io', port=443): Max retries exceeded with url: /textbook/9/minna-no-nihongo-i/vocabulary-list (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\pdc18\Downloads\app\jpdb-anki\jpdb_anki\__main__.py", line 75, in <module>
app.run(main)
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\absl\app.py", line 308, in run
_run_main(main, args)
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\absl\app.py", line 254, in _run_main
sys.exit(main(argv))
^^^^^^^^^^
File "C:\Users\pdc18\Downloads\app\jpdb-anki\jpdb_anki\__main__.py", line 58, in main
vocab_entries = db.get_list(FLAGS.vocablist)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\Downloads\app\jpdb-anki\jpdb_anki\database.py", line 117, in get_list
vocab = get_all_vocab_entries(url)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\Downloads\app\jpdb-anki\jpdb_anki\scraping.py", line 23, in get_all_vocab_entries
jpdb = load_url(root_url)
^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\Downloads\app\jpdb-anki\jpdb_anki\scraping.py", line 8, in load_url
return BeautifulSoup(requests.get(url).content, "html.parser")
^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pdc18\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\adapters.py", line 517, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='jpdb.io', port=443): Max retries exceeded with url: /textbook/9/minna-no-nihongo-i/vocabulary-list (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)')))
I tried in linux too, had the same error... Is there any idea about what could be causing this problem?
Add comfort of life eg.
Add an update function that will
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.