bpsmith / tia

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

Issue with tia.bbg LocalTerminal #4

Open ikemblem opened 8 years ago

ikemblem commented 8 years ago

With the new commit in August, when using the statement, "from tia.bbg import LocalTerminal", a error is thrown. Its a great package and any help would be greatly appreciated.

File "C:\Anaconda3\lib\site-packages\tia\bbg\v3api.py", line 176 print 'unhandled event: %s' % evt.EventType ^ SyntaxError: Missing parentheses in call to 'print'

rhtoth commented 8 years ago

It appears you are using python 3 while tia.bbg supports python 2.7.

However, I was able to use the script "2to3" to convert all the code to support python 3.

shivaramkrs commented 7 years ago

You can use it with Python 3, you have to make few modifications to few files. I am looking at only BBG data download and for that you need to put braces around print statements in v3api.py. Also change "basestring" to "str".