-
Notifications
You must be signed in to change notification settings - Fork 94
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
Getting "KeyError: 'd'" when reading XML OData #83
Comments
@aviasd Thank you for taking the time to report this issue. Unfortunately, I do believe the service is OData V3 service which is not supported yet. I have created an experimental fix which is available on the branch: I was able to run your example without issues with pyodata from that branch. However, I didn't try to fetch any additional entity sets, so there might be more incompatibilities. If you have time and you want to help us make pyodata better, please, try to use pyodata from the experimental_v3 branch and report results here. |
@filak-sap Thank you for the quick answer and solution. The code:
This is the error:
Thank you, |
Hey @filak-sap , I found another bug: The code:
The error:
I think it has something to do with the first bug you already solved. |
Interestingly enough, Edm.DateTime allows 7 digits for microseconds while Python allows only 6 digits (which is sane because the 7th digit is hundreds of nanoseconds). For the time being, I will ignore the last 7th digit. I posted a comment to a blog post about SAP Gateway Date Time: |
@aviasd I pushed commits fixing the recent problems you found to the branch experimental_v3. I can run all your requests without exceptions. Please, keep in mind that the branch is not stable, not official and servers only the experimental purposes. |
Hey,
The purpose is to pickle or serialize it somehow so I can send it via kafka Producer. Thank you very much, |
Hi @aviasd, EntityProxy is a thin wrapper holding a cache of properties. These instances also have a reference to HTTP session. I don't think you want to pickle EntityProxy. It would be better to pickle only the downloaded properties converted to Python types. I am starting thinking about a customizable OData response de-serializer because Panda users also needs it. How do you want to de-serialize and use it? |
any progress making this solution official? |
Hi, |
I'm trying to read from this site:
http://knesset.gov.il/Odata/ParliamentInfo.svc/
The site is in XML and every table is saved in XML too.
For example:
http://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Agenda
When reading with python-pyodata, there is a key error when trying to get entities.
Code:
The exception:
Is there a way to fix this?
Thanks in advance,
The text was updated successfully, but these errors were encountered: