Exception in thread ThreadOMMSTREAMING_PRICING_0.0
Hello,
I am connected via Amazon Workspaces VDI. I am trying open platform session and make sample data retrieval as shown in below code. Even though the session is opened there is an error occurring. I get immediately this error message:
Exception in thread ThreadOMMSTREAMING_PRICING_0.0:
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\delivery\_stream\stream_connection.py", line 167, in run
self._run_websocket_listener()
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\delivery\_stream\stream_connection.py", line 275, in _run_websocket_listener
http_proxy_auth = proxy_config.auth
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\delivery\_stream\proxy_info.py", line 96, in auth
return tuple(self._proxy_user, self._proxy_pass)
TypeError: tuple expected at most 1 argument, got 2
and after some time another error message:
Exception in thread AuthManager-Thread:
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\Program Files\Python310\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\_core\session\auth_manager.py", line 213, in _do_authorize
self._refresh_token_updater.start()
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\_core\session\updater.py", line 44, in start
raise e
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\_core\session\updater.py", line 41, in start
self._do_update()
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\_core\session\refresh_token_updater.py", line 96, in _do_update
self._callback(event, message, json_content)
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\_core\session\auth_manager.py", line 301, in _refresh_token_update_handler
self._ee.emit(UpdateEvent.UPDATE_ACCESS_TOKEN, access_token)
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\_tools\_common.py", line 83, in emit
callback(*args, **kwargs)
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\_core\session\_session.py", line 265, in update_access_token
cxn.send_login_message()
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\delivery\_stream\stream_connection.py", line 349, in send_login_message
self.send_message(self.get_login_message())
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\delivery\_stream\omm_stream_connection.py", line 36, in get_login_message
self._get_socket_info()
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\delivery\_stream\stream_connection.py", line 468, in _get_socket_info
return self._listener.get_socket_info()
File "D:\Users\tsalakhu\PycharmProjects\ymr\venv\lib\site-packages\refinitiv\data\delivery\_stream\ws\ws_client.py", line 39, in get_socket_info
ip = self.ws.sock.sock.getsockname()[0]
AttributeError: 'NoneType' object has no attribute 'sock'
Could you please advise what causes the error and how to fix it?
Thanks in advance.
Tymur
Best Answer
-
Hi @raksina.samasiri ,
I have found out there was a bug in rd which is supposed to be fixed soon. Here is the link to jira https://jira.refinitiv.com/browse/EAPI-5185
0
Answers
-
Hi @tymur.salakhutdinov ,
Please let me know which version of the Refinitiv Data Python library you've used. The code below can be used.
print(rd.__version__)
The latest version is 1.1.1, could you please also try to update to the latest version and try again.
0 -
Hi @raksina.samasiri ,
I have checked the version and it is the latest one. Please see screenshot below. I have also tried different Python versions: 9 and 10. The error still persists.
0 -
Hi @tymur.salakhutdinov ,
Sorry for the issue you've been facing. However, I cannot reproduce the issue so, could you please run the "pip list" command and provide the result here? The "pip list" command will list all installed packages in your current environment.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛