Unable to import DatastreamDSWS

Traceback (most recent call last):
File "getPythonData.py", line 13, in <module>
import DatastreamDSWS as dsws
File "/home/ubuntu/.local/lib/python3.5/site-packages/DatastreamDSWS/__init__.py", line 11, in <module>
from .DS_Response import Datastream
File "/home/ubuntu/.local/lib/python3.5/site-packages/DatastreamDSWS/DS_Response.py", line 9, in <module>
import pandas as pd
File "/home/ubuntu/.local/lib/python3.5/site-packages/pandas/__init__.py", line 55, in <module>
from pandas.core.api import (
File "/home/ubuntu/.local/lib/python3.5/site-packages/pandas/core/api.py", line 5, in <module>
from pandas.core.arrays.integer import (
File "/home/ubuntu/.local/lib/python3.5/site-packages/pandas/core/arrays/__init__.py", line 1, in <module>
from .array_ import array # noqa: F401
File "/home/ubuntu/.local/lib/python3.5/site-packages/pandas/core/arrays/array_.py", line 7, in <module>
from pandas.core.dtypes.common import (
File "/home/ubuntu/.local/lib/python3.5/site-packages/pandas/core/dtypes/common.py", line 11, in <module>
from pandas.core.dtypes.dtypes import (
File "/home/ubuntu/.local/lib/python3.5/site-packages/pandas/core/dtypes/dtypes.py", line 53, in <module>
class Registry:
File "/home/ubuntu/.local/lib/python3.5/site-packages/pandas/core/dtypes/dtypes.py", line 84, in Registry
self, dtype: Union[Type[ExtensionDtype], str]
File "/usr/lib/python3.5/typing.py", line 552, in __getitem__
dict(self.__dict__), parameters, _root=True)
File "/usr/lib/python3.5/typing.py", line 512, in __new__
for t2 in all_params - {t1} if not isinstance(t2, TypeVar)):
File "/usr/lib/python3.5/typing.py", line 512, in <genexpr>
for t2 in all_params - {t1} if not isinstance(t2, TypeVar)):
File "/usr/lib/python3.5/typing.py", line 1077, in __subclasscheck__
if super().__subclasscheck__(cls):
File "/usr/lib/python3.5/abc.py", line 225, in __subclasscheck__
for scls in cls.__subclasses__():
TypeError: descriptor '__subclasses__' of 'type' object needs an argument
Best Answer
-
Hello @abbanerjee
Based a the given stack trace, I assume that you are using Python version 3.5.x.
Please note that DatastreamDSWS for Python supports Python version 3.6 and above. (see "Requirement" section in Getting Start with Python document). I suggest you upgrade the Python version that run Datastream application.
I can replicate the same kind of error messages with Python 3.5.6. If I change to newer version, I did not encounter the problem.
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
- 687 Datastream
- 1.4K DSS
- 621 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
- 254 ETA
- 557 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
- 276 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
- 669 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
- 229 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
- 48 中文论坛