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

Isodate 0.7.2 breaks zeep #1431

Closed
santiagoblancov opened this issue Oct 11, 2024 · 1 comment
Closed

Isodate 0.7.2 breaks zeep #1431

santiagoblancov opened this issue Oct 11, 2024 · 1 comment

Comments

@santiagoblancov
Copy link

santiagoblancov commented Oct 11, 2024

  1. The version of zeep: 4.2.1 (the latest right now)
  2. The WSDL you are using: Below, in the script.
  3. Runnable example script:
from zeep import Client
WS_ENDPOINT = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl'
Client(wsdl=WS_ENDPOINT)
client.service.checkVat("FR", 64899439566)

BOOM!

Error during xml -> python translation
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/zeep/xsd/types/simple.py", line 79, in parse_xmlelement
    return self.pythonvalue(xmlelement.text)
  File "/usr/local/lib/python3.8/site-packages/zeep/xsd/types/builtins.py", line 44, in _wrapper
    return func(self, re.sub(r"[\n\r\t ]", " ", value).strip())
  File "/usr/local/lib/python3.8/site-packages/zeep/xsd/types/builtins.py", line 213, in pythonvalue
    return isodate.parse_date(value)
  File "/usr/local/lib/python3.8/site-packages/isodate/isodates.py", line 193, in parse_date
    raise ISO8601Error("Unrecognised ISO 8601 date format: %r" % datestring)
isodate.isoerror.ISO8601Error: Unrecognised ISO 8601 date format: '2024-10-11+02:00'

The problem is the 0.7.2 version of isodate, with 0.6.1 works fine.

@mvantellingen
Copy link
Owner

Should be fixed in main (next release)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants