Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'geloeschteunddeaktiviertemarktakteure' #572

Closed
AhmadShelbayeh opened this issue Oct 8, 2024 · 5 comments · Fixed by #575
Closed

KeyError: 'geloeschteunddeaktiviertemarktakteure' #572

AhmadShelbayeh opened this issue Oct 8, 2024 · 5 comments · Fixed by #575
Labels
🐛 bug Something isn't working

Comments

@AhmadShelbayeh
Copy link

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
Copy link
Member

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

@FlorianK13 FlorianK13 added the 🐛 bug Something isn't working label Oct 9, 2024
@AhmadShelbayeh
Copy link
Author

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
Copy link
Member

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
Copy link
Author

ok thanks

@nesnoj
Copy link
Collaborator

nesnoj commented Oct 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants