For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 1

Get attribute Error when making request

When running the python API on my local machine I get the following error when I try to make a request:
AttributeError: 'Logger' object has no attribute 'trace'

Code:

from refinitiv.dataplatform import eikon as ek

ek.set_app_key('my key') # no bad response

ek.get_news_headlines() # or any other request produces the error.


Suggestions?

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
Accepted
38.1k 71 35 53

@p.pfeiffer

I got the same issue when using refinitiv-dataplatform 1.0.0a7.post1 and 1.0.0a7.

You may need to use 1.0.0a6 or below.

pip install refinitiv-dataplatform==1.0.0.a6
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

That worked! Thanks!

Upvotes
9.7k 49 38 60

Hi @p.pfeiffer,

This is likely related to your environment as everything seems to fail.

Did you try running the exact same 3 commands in CodeBook? Please try that to ensure you can at least see some results.

In addition, try turning on logging before your call to get data, i.e.

ek.set_log_level(4)

This should provide some greater details and where it is failing.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
11.5k 16 7 10

Hello @p.pfeiffer

Did you check the steps in Eikon Data API(Python) Troubleshooting article yet? Hope this and my colleague suggestion help you.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea