raise ConnectionError("Could not start a blpapi.session")
See original GitHub issueI have installed pdblp
pip install -e pdblp
I am on Ubuntu 16.04
My code
import pdblp
con = pdblp.BCon(debug=True, port=8194)
con.start()
con.bdh('SPY US Equity', 'PX_LAST','20150629', '20150630')
I got
python t15.py
08JAN2018_11:28:53.155 12856:140190920144640 WARN blpapi_platformtransporttcp.cpp:137 blpapi.session.transporttcp.{1}.localhost:8194 127.0.0.1:8194, session pool state=Failed
08JAN2018_11:28:53.155 12856:140190920144640 WARN blpapi_platformcontroller.cpp:508 blpapi.session.platformcontroller.{1} Platform failed 1 consecutive connect attempts, stopped trying to reconnect. { PlatformId=0 }
INFO:root:Failed to start session.
Traceback (most recent call last):
File “t15.py”, line 4, in <module>
con.start()
File “/home/milenko/pdblp/pdblp/pdblp.py”, line 81, in start
raise ConnectionError(“Could not start a blpapi.session”)
ConnectionError: Could not start a blpapi.session
Why?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
This library is a wrapper on top of the python bloomberg API,
blpapi
which handles the communication with the Bloomberg Service. This error is telling you that you cannot connect to the Bloomberg Service. You will need to make sure you are running a Bloomberg Professional Terminal on the machine you are attempting to connect from. This should also work with B-PIPE although I have not tested this.ok,thanks.
On 8 January 2018 at 19:14, Matthew Gilbert notifications@github.com wrote: