bpsmith / tia

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

After installing tia- I am still not able to connect to Bloomberg #54

Open rajuraja19 opened 5 years ago

rajuraja19 commented 5 years ago

Hi, When I run following code , I get an error. import pandas as pd import tia.bbg.datamgr as dm

File "C:\Users\raj.sharan\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3296, in run_code exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 1, in from tia.bbg import LocalTerminal

File "C:\Users\raj.sharan\AppData\Local\Continuum\anaconda3\lib\site-packages\tia\bbg__init__.py", line 1, in from tia.bbg.v3api import *

File "C:\Users\raj.sharan\AppData\Local\Continuum\anaconda3\lib\site-packages\tia\bbg\v3api.py", line 186 print 'unhandled event: %s' % evt.EventType ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('unhandled event: %s' % evt.EventType)?

I am not sure , whether I have been able to reference to local Bloomberg terminal.

Regards, RS

viphilar commented 5 years ago

You need to convert all py files under tia from version 2 to 3 using the python 2to3 command. Open a command prompt, navigate to the tia folder and run: 2to3 –w *.py

Thanks, Vikram

From: rajuraja19 [mailto:notifications@github.com] Sent: Wednesday, June 12, 2019 8:26 AM To: bpsmith/tia Cc: Subscribed Subject: [bpsmith/tia] After installing tia- I am still not able to connect to Bloomberg (#54)

This email is from an external source - exercise caution regarding links and attachments.

Hi, When I run following code , I get an error. import pandas as pd import tia.bbg.datamgr as dm

File "C:\Users\raj.sharan\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3296, in run_code exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 1, in from tia.bbg import LocalTerminal

File "C:\Users\raj.sharan\AppData\Local\Continuum\anaconda3\lib\site-packages\tia\bbginit.py", line 1, in from tia.bbg.v3api import *

File "C:\Users\raj.sharan\AppData\Local\Continuum\anaconda3\lib\site-packages\tia\bbg\v3api.py", line 186 print 'unhandled event: %s' % evt.EventType ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('unhandled event: %s' % evt.EventType)?

I am not sure , whether I have been able to reference to local Bloomberg terminal.

Regards, RS

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/bpsmith/tia/issues/54?email_source=notifications&email_token=AJUYMYXCUTQU5ZJDM5YJAMLP2A7AVA5CNFSM4HXELLA2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GY6D6AQ, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJUYMYR5T4G2BFANVD7SHYLP2A7AVANCNFSM4HXELLAQ.

dpsugasa commented 5 years ago

Or just use the forked library from Paul Mest's github. It is compatible with Python 3.

On Wed, 12 Jun 2019, 01:25 rajuraja19, notifications@github.com wrote:

Hi, When I run following code , I get an error. import pandas as pd import tia.bbg.datamgr as dm

File "C:\Users\raj.sharan\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3296, in run_code exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 1, in from tia.bbg import LocalTerminal

File "C:\Users\raj.sharan\AppData\Local\Continuum\anaconda3\lib\site-packages\tia\bbg init.py", line 1, in from tia.bbg.v3api import *

File "C:\Users\raj.sharan\AppData\Local\Continuum\anaconda3\lib\site-packages\tia\bbg\v3api.py", line 186 print 'unhandled event: %s' % evt.EventType ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('unhandled event: %s' % evt.EventType)?

I am not sure , whether I have been able to reference to local Bloomberg terminal.

Regards, RS

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bpsmith/tia/issues/54?email_source=notifications&email_token=AGL2ISBGXYHJ33OA5UOQOETP2A7ATA5CNFSM4HXELLA2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GY6D6AQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AGL2ISF2KZ7Y7YIQJB7WUD3P2A7ATANCNFSM4HXELLAQ .