codereverser / casparser

Parser for Consolidated Account Statements (CAS) generated from CAMS/Karvy/Kfintech
MIT License
138 stars 63 forks source link

HeaderParseError: Error parsing CAS header #56

Closed rahuliitg closed 2 years ago

rahuliitg commented 2 years ago

HeaderParseError Traceback (most recent call last)

in () ----> 1 json_str = data = casparser.read_cas_pdf("33220217220210621ZFBF290265631DC70CPIMBCP130542292.pdf", "abcd1234") 2 frames /usr/local/lib/python3.7/dist-packages/casparser/process.py in parse_header(text) 17 if m: 18 return m.groupdict() ---> 19 raise HeaderParseError("Error parsing CAS header") 20 21 HeaderParseError: Error parsing CAS header Code: json_str = data = casparser.read_cas_pdf("33220217220210621ZFBF290265631DC70CPIMBCP130542292.pdf", "xyz")
codereverser commented 2 years ago

Looks like you are using an older version of the package. Can you please try with a newer python version? latest versions of casparser needs minimum python 3.8

codereverser commented 2 years ago

python<3.8 versions are not supported