OpenEnergyPlatform / open-MaStR

A collaborative software to download the energy database Marktstammdatenregister (MaStR)
https://open-mastr.readthedocs.io/en/latest/
GNU Affero General Public License v3.0
88 stars 19 forks source link

KeyError: 'geloeschteunddeaktiviertemarktakteure' #572

Closed AhmadShelbayeh closed 1 month ago

AhmadShelbayeh commented 1 month ago

Description of the issue

Hi @FlorianK13 Hey guys, I am getting a key error when downloading the Bulk data.

Code:

from open_mastr import Mastr db = Mastr() today_date = datetime.now().strftime('today') db.download(method='bulk', data=["wind", "market", "permit", "deleted_units"], date=today_date)

KeyError: 'geloeschteunddeaktiviertemarktakteure'

Context and Environment

Python 3.12.7 open_mastr: Version: 0.14.4

FlorianK13 commented 1 month ago

Looking at the official release notes, there is this newly added table since october 2024: Gesamtdatenexport: Liste der gelöschten und deaktivierten Marktakteure

AhmadShelbayeh commented 1 month ago

Hi @FlorianK13 ,

Thank you for your message. I apologize, but I am not entirely clear on how to resolve the issue at hand. Could you kindly explain what changes I need to make to the following code?

from open_mastr import Mastr db = Mastr() today_date = datetime.now().strftime('today') db.download(method='bulk', data=["wind", "market", "permit", "deleted_units"], date=today_date)

I appreciate your time and support in helping me understand this better.

FlorianK13 commented 1 month ago

I think this is actually a new bug in our code. The problem is that the dataset changes frequently and we need to update open-mastr everytime when changes occure. I hope we can work on this fast and release a bug fix to version 0.14.5 If it is released, you can download it and the error will vanish.

AhmadShelbayeh commented 1 month ago

ok thanks

nesnoj commented 1 month ago

@AhmadShelbayeh v0.14.5 has just been released and solves your problem