Hello all,
I've been just starting to try to use the Lightstreamer client in Python 3.9 in the Spyder IDE, and I get an error on import.
The only line of code I run is:
from lightstreamer_client import *
and I get the following output:
Traceback (most recent call last):
Cell In[1], line 1
from lightstreamer_client import *
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\__init__.py:1
from .com_lightstreamer_client import *
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:16034
com_lightstreamer_internal_EventDispatcher.executor = com_lightstreamer_internal_EventDispatcher.createExecutor()
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:2318 in createExecutor
return hx_concurrent_executor_Executor.create(1)
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:1902 in create
return hx_concurrent_executor_ThreadPoolExecutor(maxConcurrent,autostart)
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:1978 in __init__
super().__init__()
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:1887 in __init__
super().__init__()
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:1781 in __init__
haxe_Log.trace((("[" + Std.string(self)) + "] instantiated."),_hx_AnonObject({'fileName': "hx/concurrent/Service.hx", 'lineNumber': 56, 'className': "hx.concurrent.ServiceBase", 'methodName': "new"}))
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:2316 in _hx_local_0
python_Lib.printString((("" + Std.string(haxe_Log.formatOutput(v,infos))) + HxOverrides.stringOrNull(python_Lib.lineEnd)))
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:1687 in printString
python_lib_Sys.stdout.buffer.write(_hx_str.encode("utf-8", "strict"))
AttributeError: 'TTYOutStream' object has no attribute 'buffer'
from lightstreamer import *
import lightstreamer_client
Traceback (most recent call last):
Cell In[3], line 1
import lightstreamer_client
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\__init__.py:1
from .com_lightstreamer_client import *
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:16034
com_lightstreamer_internal_EventDispatcher.executor = com_lightstreamer_internal_EventDispatcher.createExecutor()
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:2318 in createExecutor
return hx_concurrent_executor_Executor.create(1)
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:1902 in create
return hx_concurrent_executor_ThreadPoolExecutor(maxConcurrent,autostart)
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:1978 in __init__
super().__init__()
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:1887 in __init__
super().__init__()
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:1781 in __init__
haxe_Log.trace((("[" + Std.string(self)) + "] instantiated."),_hx_AnonObject({'fileName': "hx/concurrent/Service.hx", 'lineNumber': 56, 'className': "hx.concurrent.ServiceBase", 'methodName': "new"}))
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:2316 in _hx_local_0
python_Lib.printString((("" + Std.string(haxe_Log.formatOutput(v,infos))) + HxOverrides.stringOrNull(python_Lib.lineEnd)))
File ~\anaconda3\envs\Economic\lib\site-packages\lightstreamer_client\com_lightstreamer_client.py:1687 in printString
python_lib_Sys.stdout.buffer.write(_hx_str.encode("utf-8", "strict"))
AttributeError: 'TTYOutStream' object has no attribute 'buffer'