Skip to content

Isodate 0.7.2 breaks zeep #1431

@santiagoblancov

Description

@santiagoblancov
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions