You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i don't know why i'm having a hard time while trying to add a vertical span to my chart, not sure if i missed something or it's a bug (win11pro/python3.10/lightweight-charts 2.1)
here's the error i'm getting :
(py310) PS C:\Users\zed\Desktop\new_project> python .\tv.py
Exception in thread Thread-2 (loop):
Traceback (most recent call last):
File "C:\Users\zed.conda\envs\py310\lib\site-packages\lightweight_charts\chart.py", line 89, in loop
window.evaluate_js(arg)
File "C:\Users\zed.conda\envs\py310\lib\site-packages\webview\window.py", line 48, in wrapper
return function(self, *args, **kwargs)
File "C:\Users\zed.conda\envs\py310\lib\site-packages\webview\window.py", line 459, in evaluate_js
raise JavascriptException(result)
webview.errors.JavascriptException: {'name': 'ReferenceError', 'stack': 'ReferenceError: calculateTrendLine is not defined\n at eval (eval at (:4:29), :7019:29)\n at :4:29', 'message': 'calculateTrendLine is not defined'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\zed.conda\envs\py310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\zed.conda\envs\py310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\zed.conda\envs\py310\lib\site-packages\lightweight_charts\chart.py", line 94, in loop
raise JavascriptException(f"\n\nscript -> '{arg}',\nerror -> {msg['name']}[{msg['line']}:{msg['column']}]\n{msg['message']}")
KeyError: 'line'
Question
i don't know why i'm having a hard time while trying to add a vertical span to my chart, not sure if i missed something or it's a bug (win11pro/python3.10/lightweight-charts 2.1)
here's the error i'm getting :
(py310) PS C:\Users\zed\Desktop\new_project> python .\tv.py
Exception in thread Thread-2 (loop):
Traceback (most recent call last):
File "C:\Users\zed.conda\envs\py310\lib\site-packages\lightweight_charts\chart.py", line 89, in loop
window.evaluate_js(arg)
File "C:\Users\zed.conda\envs\py310\lib\site-packages\webview\window.py", line 48, in wrapper
return function(self, *args, **kwargs)
File "C:\Users\zed.conda\envs\py310\lib\site-packages\webview\window.py", line 459, in evaluate_js
raise JavascriptException(result)
webview.errors.JavascriptException: {'name': 'ReferenceError', 'stack': 'ReferenceError: calculateTrendLine is not defined\n at eval (eval at (:4:29), :7019:29)\n at :4:29', 'message': 'calculateTrendLine is not defined'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\zed.conda\envs\py310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\zed.conda\envs\py310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\zed.conda\envs\py310\lib\site-packages\lightweight_charts\chart.py", line 94, in loop
raise JavascriptException(f"\n\nscript -> '{arg}',\nerror -> {msg['name']}[{msg['line']}:{msg['column']}]\n{msg['message']}")
KeyError: 'line'
Code example
The text was updated successfully, but these errors were encountered: