-
-
Notifications
You must be signed in to change notification settings - Fork 601
Description
Specification
-
pywebview version: 5.1
-
operating system: Windows 11 Pro 23H2
-
web renderer: WinForms / Chromium / Bottle v0.12.25
-
pip status:
Package - Version
bottle - 0.12.25
cffi - 1.16.0
clr-loader - 0.2.6
pip - 23.2.1
proxy-tools - 0.1.0
pycparser - 2.22
pyserial - 3.5
pythonnet - 3.0.3
pywebview - 5.1
pywin32 - 306
typing_extensions - 4.12.2
Description
I have a problem that I can`t access any python function from JavaScript side.
JavaScript Error:
TypeError: pywebview.api.xyz is not a function
Terminal Output:
[pywebview] unhashable type: 'ConfigParser'
Traceback (most recent call last):
File "C:\Users\GitLab.venv\Lib\site-packages\webview\util.py", line 188, in inject_pywebview
func_list = generate_func()
^^^^^^^^^^^^^^^
File "C:\Users\GitLab.venv\Lib\site-packages\webview\util.py", line 176, in generate_func
functions = get_functions(window._js_api)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\GitLab.venv\Lib\site-packages\webview\util.py", line 171, in get_functions
get_functions(attr, full_name, functions)
File "C:\Users\GitLab.venv\Lib\site-packages\webview\util.py", line 154, in get_functions
if obj in exposed_objects:
^^^^^^^^^^^^^^^^^^^^^^
TypeError: unhashable type: 'ConfigParser'
I am using the python configparser.ConfigParser object in one of my functions in Python.
Thank you very much!
Practicalities
-
YES I am willing to work on this issue myself.
-
NO I am not prepared to support this issue financially.