-
Notifications
You must be signed in to change notification settings - Fork 165
-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3 #11
Comments
You can use it with Python 3, you have to make few modifications to few files. I am looking at only BBG data download and for that you need to put braces around print statements in v3api.py. Also change "basestring" to "str". |
I am also interested in this working for Python 3.x can we make a plan going forwards to get this working? For Python 3.5 you also need to change iteritems to items. |
I adapted the code to python 3.4 an works pretty well for Historical data. |
how were you able to get BLPAPI to work with Python 3.5? ****scratch that, i got it to work using 3.6 |
@dpsugasa Is the code on your GH working for 3.6? did you issue a PR? |
No the code on my GH is the same as the original. I modified the files on
my PC only. I only use the library for BBG access and those files are easy
to change; just follow the recommendations in the "issues". From memory you
only need to update the files in the bbg folder. Most of the changes are
just adding parentheses to print function. One or two
items/iteritems changes also.
Let me know if I can help any further.
…On Fri, May 19, 2017 at 12:10 AM zglin ***@***.***> wrote:
@dpsugasa <https://github.com/dpsugasa> Is the code on your GH working
for 3.6? did you issue a PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AZekSOLIJogy8l0JaU0ai8LMBpMXzZYmks5r7M_dgaJpZM4JjFzb>
.
|
@dpsugasa how did you install the blpapi on python 3.6? I spoke with the help desk and they only have a experimental release for 3.5, nothing yet for 3.6. Any help would be appreciated |
the blpapi works on 3.6. If the bloomberg installer won't let you install
because you have 3.6, I would downgrade to 3.5, install the api, and then
re-upgrade to 3.6. bloomberg isn't particularly helpful with their api in
my opinion.
…On Mon, May 29, 2017 at 3:11 PM STguerin ***@***.***> wrote:
@dpsugasa <https://github.com/dpsugasa> how did you install the blpapi on
python 3.6? I spoke with the help desk and they only have a experimental
release for 3.5, nothing yet for 3.6. Any help would be appreciated
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AZekSDFTGVpMrdI1qcxP0KMP3l1qw4xwks5r-tIHgaJpZM4JjFzb>
.
|
I am working with Python 3.6. After modifications as "put braces around print statements", "basestring" to "str" and " iteritems to items", I still get this error "'dict' object has no attribute 'iteritems'". It shows error in this line "433 overrides=','.join(['%s=%s' % (k, v) for k, v in self.overrides.items()]))". Any idea? |
Make sure you have changed all the files in the BBG portion of the module;
there are 3 or 4 files if my memory serves correctly. My repo has all the
changes if you need to compare.
…On Mon, Jul 24, 2017 at 8:13 PM, wangjuestam ***@***.***> wrote:
I am working with Python 3.6. After modifications as "put braces around
print statements", "basestring" to "str" and " iteritems to items", I still
get this error "'dict' object has no attribute 'iteritems'". It shows error
in this line "433 overrides=','.join(['%s=%s' % (k, v) for k, v in
self.overrides.items()]))". Any idea?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AZekSGzBIBDUrryZlYbWKim3-OO4Sm_rks5sROzvgaJpZM4JjFzb>
.
|
Thanks! I am able to run tia on python version 3 now. |
excellent!
…On Tue, Jul 25, 2017 at 3:29 PM wangjuestam ***@***.***> wrote:
Thanks! I am able to run tia on python version 3 now.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AZekSIcbZPJYHvFRp0lx_qYdS2z_pH-_ks5sRfvWgaJpZM4JjFzb>
.
|
This does the trick nicely
But one of us nice people should fork and make an update... |
I've updated the whole project with 2to3 to be Python 3 compliant. It is NOT Python 2 compliant, however. Python 3 compatible repo:https://github.com/PaulMest/tia/ Install with
or
or put one of these into your
|
hi I am still struggling with tia installation. running on python 3.6.10 I fixed all the print and basestring issues but get this error - any idea whats going on? is it to do with the 3.6.10 version? Traceback (most recent call last): |
@pksw2016 not sure if this is still relevant to you, but overrides=','.join(['%s=%s' % (k, v) for k, v in self.overrides.items()])) |
Hey I am a big fan of this library, does someone know if there is going to be a release for python 3 at some point?
The text was updated successfully, but these errors were encountered: