bpsmith / tia

Toolkit for integration and analysis
BSD 3-Clause "New" or "Revised" License
408 stars 163 forks source link

Issue retrieving single security #39

Open jaross42 opened 6 years ago

jaross42 commented 6 years ago

getting the below error when i try to retrieve a single security accessor from the manager

retrieve a single security accessor from the manager

msft = mgr['MSFT US EQUITY']

ERROR:

NameError Traceback (most recent call last)

in () 1 # retrieve a single security accessor from the manager ----> 2 msft = mgr['MSFT US EQUITY'] C:\Users\Local\Continuum\Anaconda3\lib\site-packages\tia\bbg\datamgr.py in __getitem__(self, sid) 121 122 def __getitem__(self, sid): --> 123 return self.get_sid_accessor(sid) 124 125 @property C:\Users\Local\Continuum\Anaconda3\lib\site-packages\tia\bbg\datamgr.py in get_sid_accessor(self, sid, **overrides) 115 116 def get_sid_accessor(self, sid, **overrides): --> 117 if isinstance(sid, str): 118 return SidAccessor(sid, self, **overrides) 119 else: NameError: name 'basestring' is not defined
summerside182 commented 6 years ago

you are running on python 3+

tia is for python 2

jaross42 commented 6 years ago

correct i am running python 3+ however I am using the python3 updates that where posted for TIA

nwlezien commented 5 years ago

@jaross42 how did you solve this issue?