Skip to content Skip to sidebar Skip to footer

Unexpected Keyword Argument 'codec' In XMLConverter

Below error message: device = XMLConverter(rsrcmgr, retstr, laparams=laparams, codec=codec) TypeError: __init__() got an unexpected keyword argument 'codec' Original Code: rsrcmgr

Solution 1:

As suspected by chris, this issue is due to version mismatch. 2019 version of pdfminer doesn't have keyword codec in the method. So I installed the older version of pdfminer 20181108 which is used in my project as well. Now the code runs without any error


Post a Comment for "Unexpected Keyword Argument 'codec' In XMLConverter"