Closed m-jankowski closed 4 months ago
@m-jankowski Thanks for your report, I will try to reproduce the error.
I have the same error.
I can reproduce the error, there is a new table coming from BNetzA. @chrwm Seems like we really need to fix the tests now for an urgent new release.
The fix is merged on develop and will be included in the next release, v0.14.3 #513
Hi @FlorianK13, do you have an update on when the new Version will be available?
Hi @kknappmann, We are in the process of releasing, see #513. If everything works fine, it might be on pypi this afternoon.
New release is on pypi, it should work now!
Hi @FlorianK13 I now get the following error:
Line: db.download(data="solar")
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/open_mastr/mastr.py", line 231, in download write_mastr_xml_to_database(File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/open_mastr/xml_download/utils_write_to_database.py", line 34, in write_mastr_xml_to_database if is_table_relevant( ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/open_mastr/xml_download/utils_write_to_database.py", line 76, in is_table_relevant tablename_mapping[xml_tablename]["class"] is not None
KeyError: 'einheitenaenderungnetzbetreiberzuordnungen'
Do you encounter this too?
Hi @kknappmann which version of open-mastr do you have installed? You can run pip install --upgrade open-mastr
to get version 0.14.3 which should have the bugfix included.
I did and am on version 0.14.3 but encounter this error anyway, see my screenshot
@kknappmann On version 0.14.3 I can parse the new table to my sqlite database. Can you try to delete the existing database that you have (or rename it) so that a new database is initiated?
that worked, thanks!
Description of the issue
Since the update of the Martkstammdatenregister on April 18 (release notes: https://www.marktstammdatenregister.de/MaStRHilfe/subpages/releasenotes.html) the open-mastr bulk download("bulk") results in an error. It probably has to do with the "Öffentliche Daten: Neuer Menüpunkt "Änderung der Netzbetreiberzuordnung" - Übersicht der Einheiten mit geänderter Netzbetreiberzuordnung" change of the MaStR.
Error message:
Steps to Reproduce
Context and Environment
Workflow checklist