alpha-xone / xbbg

An intuitive Bloomberg API
https://xbbg.readthedocs.io/
Apache License 2.0
244 stars 51 forks source link

I am getting a failed error... #56

Closed rmfkdehd closed 2 years ago

rmfkdehd commented 2 years ago

My folder structure is as follows.... The problem seems to be caused by the dll location... I'm not sure.

error

My code is simple.

from xbbg import blp

blp.bdp(tickers='NVDA US Equity', flds=['Security_Name', 'GICS_Sector_Name'])

My operating system is ubuntu 20.04. As for other information, I do not use anaconda, and I installed all necessary libraries using the pip install command without using the sudo command. (xbbg was also installed with pip install.)

Below is the error log.

20DEC2021_20:35:27.697 9050:139884534699776 WARN apicm_apiconnector.cpp:395 ApiConnector::socketConnectorCallback localhost: Failed to connect to 127.0.0.1:8194, status=1, error 8 connect event failed 

20DEC2021_20:35:27.697 9050:139884534699776 WARN blpapi_platformtransporttcp.cpp:151 blpapi.session.transporttcp.{1}.<localhost:8194> { platformId=0 } 127.0.0.1, session pool state=Failed 

20DEC2021_20:35:30.698 9050:139884534699776 WARN apicm_apiconnector.cpp:395 ApiConnector::socketConnectorCallback localhost: Failed to connect to 127.0.0.1:8194, status=1, error 8 connect event failed 

20DEC2021_20:35:30.698 9050:139884534699776 WARN blpapi_platformtransporttcp.cpp:151 blpapi.session.transporttcp.{1}.<localhost:8194> { platformId=0 } 127.0.0.1, session pool state=Failed 

20DEC2021_20:35:33.699 9050:139884534699776 WARN apicm_apiconnector.cpp:395 ApiConnector::socketConnectorCallback localhost: Failed to connect to 127.0.0.1:8194, status=1, error 8 connect event failed 

20DEC2021_20:35:33.699 9050:139884534699776 WARN blpapi_platformtransporttcp.cpp:151 blpapi.session.transporttcp.{1}.<localhost:8194> { platformId=0 } 127.0.0.1, session pool state=Failed 

20DEC2021_20:35:33.699 9050:139884534699776 WARN blpapi_platformcontroller.cpp:634 blpapi.session.platformcontroller.{1} Platform failed 3 consecutive connect attempts, stopped trying to reconnect. { PlatformId=0 }  

20DEC2021_20:35:33.699 9050:139884516685568 ERROR blpapi_sessionimpl.cpp:2445 blpapi.session.{1} Failed to start session: Failed to connect 
alpha-xone commented 2 years ago

Try to put them in C:\blp\DAPI - if the folder does not exist, locate your Bloomberg installation path first.

rmfkdehd commented 2 years ago

Wait Do I need to install Bloomberg? I will check if Bloomberg is installed on Ubuntu.

rmfkdehd commented 2 years ago

I found a link to install bloomberg on ubuntu, but got a 404 error. Probably Bloomberg doesn't seem to support Ubuntu. maybe this is right? Can't even xbbg run on ubuntu?

alpha-xone commented 2 years ago

No idea on this, sorry