bpsmith / tia

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

importing tia.bbg.datamanager......SyntaxError: Missing parentheses in call to 'print' #26

Closed MichJim closed 7 years ago

MichJim commented 7 years ago

I type

import pandas as pd import tia.bbg.datamgr as dm

and get the error above

Full error message below What should I do?

Traceback (most recent call last):

File "/Users/michaelspencer/miniconda3/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2862, in run_code exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 2, in import tia.bbg.datamgr as dm

File "/Users/michaelspencer/miniconda3/lib/python3.6/site-packages/tia/bbg/init.py", line 1, in from tia.bbg.v3api import *

File "/Users/michaelspencer/miniconda3/lib/python3.6/site-packages/tia/bbg/v3api.py", line 186 print 'unhandled event: %s' % evt.EventType ^ SyntaxError: Missing parentheses in call to 'print'

STguerin commented 7 years ago

you should try to run it on python 2.7 instead of python 3

MichJim commented 7 years ago

thanks

MichJim commented 7 years ago

changed my python to 2.7, installed tia in the new environment and now get


ImportError Traceback (most recent call last)

in () 1 import pandas as pd ----> 2 import tia.bbg.datamgr as dm ImportError: No module named tia.bbg.datamgr
MichJim commented 7 years ago

Looks like tia not installed properly