Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by p.pfeiffer · Jan 14 at 05:33 PM · python apipython api eikon

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?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by jirapongse.phuriphanvichai · Jan 15 at 05:09 AM

@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
Comment
p.pfeiffer

People who like this

1 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
p.pfeiffer · Jan 15 at 07:11 AM 0
Share

That worked! Thanks!

avatar image
REFINITIV
Answer by nick.zincone.1 · Jan 14 at 07:01 PM

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.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Answer by wasin.waeosri · Jan 15 at 04:35 AM

Hello @p.pfeiffer

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

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

EIKON API PYTHON AUTOMATION

Historical company guidance data

Selecting data from Index constituents that have increased dividends over last 5 years

Find or calculate intraday volatility.

EikonError: Error code 408 | UDF timeout occured. The operation was canceled.

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges