Why do I face with the memory error?
Here is the code:
rd.open_session()
data = rd.get_history(universe=['4295856055', '4295856249', '4295856359', '4295856557', '4295857081'],
fields=['TR.F.EPSDilExclExordItemsNormTot(Period=LTM)'],
interval='1D', start='2005-01-01', end='2022-04-20')
rd.close_session()
When I launch it in Jupyter Notebook, it shows the following error:
MemoryError: Unable to allocate 26.7 GiB for an array with shape (3587076645,) and data type int64
I am sure that 26.7 GiB is more than this dataset produces.
How can I resolve this issue?
Best Answer
-
Hello @alekseenkova.marina
Sorry for the late reply. I checked the https://community.developers.refinitiv.com/questions/93467/how-coud-i-retrieve-nda-rawnda-date-and-nda-rawnda.html post and I found the RD-Library expert suggested you test with the refinitiv-data version 1.0.0b9.
I tried this issue with the suggested version 1.0.0b9, and the code works fine on my side.
I also tested the code in this first post, version 1.0.0b9 also works fine too.
0
Answers
-
Hello @alekseenkova.marina
I can replicate the issue with the given code and the refinitiv-data library version 1.0.0b13. However, once I updated the library to the latest version (1.0.0b16 - as of July 2022), the code works fine.
What is the version of the refinitiv-data library in your environment? You can check with the following command:
pip show refinitiv-data
You can upgrade the library with the following command:
pip install refinitiv-data --upgrade
1 -
@wasin.w, I cannot upgrade the version because the newest one produces errors. Please read the thread here: https://community.developers.refinitiv.com/questions/93467/how-coud-i-retrieve-nda-rawnda-date-and-nda-rawnda.html Your colleague advised me to downdgrade it.
0 -
Then I tried the code in this https://community.developers.refinitiv.com/questions/95879/why-do-i-face-with-the-following-error-nat-not-fou.html post with version 1.0.0b9.
I cannot replicate the same issues with refinitiv-data version 1.0.0b9.
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 370 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛