Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 1 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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
icon clock
10 |1500

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

Upvote
Accepted
78.8k 250 52 74

@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 512.0 KiB each and 1.0 MiB total.

That worked! Thanks!

Upvotes
17.1k 80 39 63

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 512.0 KiB each and 1.0 MiB total.

Upvotes
24.6k 54 17 14

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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