Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue retrieving single security #39

Open
jaross42 opened this issue Dec 7, 2017 · 3 comments
Open

Issue retrieving single security #39

jaross42 opened this issue Dec 7, 2017 · 3 comments

Comments

@jaross42
Copy link

jaross42 commented Dec 7, 2017

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
Copy link
Contributor

you are running on python 3+

tia is for python 2

@jaross42
Copy link
Author

jaross42 commented Dec 7, 2017

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

@nwlezien
Copy link

@jaross42 how did you solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants