Skip to content

Commit 55cb3e2

Browse files
committed
Bump to version 3.9.2.
1 parent 4732f70 commit 55cb3e2

File tree

11 files changed

+1262
-889
lines changed

11 files changed

+1262
-889
lines changed

PKG-INFO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Metadata-Version: 1.0
1+
Metadata-Version: 1.1
22
Name: blpapi
3-
Version: 3.9.0
3+
Version: 3.9.2
44
Summary: Python SDK for Bloomberg BLPAPI (<=3.9)
55
Home-page: http://www.bloomberglabs.com/api/
66
Author: Bloomberg L.P.

blpapi/__init__.py

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
11
# __init__.py
22

3+
try:
4+
from .internals import CorrelationId
5+
except ImportError as error:
6+
# The most likely reason for a failure here is a failure to locate the
7+
# shared object for the C++ library. Provide a meaningful error message.
8+
import platform
9+
s = platform.system()
10+
if s == 'Windows':
11+
env = 'PATH'
12+
elif s == 'Darwin':
13+
env = 'DYLD_LIBRARY_PATH'
14+
else:
15+
env = 'LD_LIBRARY_PATH'
316

17+
msg = """%s
418
5-
from .internals import CorrelationId
19+
Could not open the C++ SDK library.
20+
21+
Download and install the latest C++ SDK from:
22+
23+
http://www.bloomberg.com/professional/api-library
24+
25+
If the C++ SDK is already installed, please ensure that the path to the library
26+
was added to %s before entering the interpreter.
27+
28+
""" % (str(error), env)
29+
raise ImportError(msg)
630

731
from .abstractsession import AbstractSession
832
from .constant import Constant, ConstantList
@@ -27,6 +51,7 @@
2751
from .topic import Topic
2852
from .topiclist import TopicList
2953

54+
3055
__copyright__ = """
3156
Copyright 2012. Bloomberg Finance L.P.
3257

0 commit comments

Comments
 (0)