mhammond / pywin32

Python for Windows (pywin32) Extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting licence error when trying to create pivot table in FastAPI application using win32

Divya-1477 opened this issue · comments

Hi team,

I am facing issue while creating the pivot table in FastAPI application by using the win32. Getting the below error when pt_cache = wb.PivotCaches().Create(1, ws_data.Range("A1").CurrentRegion) this line executing.

Error:
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'Microsoft Excel', 'This command is unavailable because the license to use this application has expired.', 'xlmain11.chm', 0, -2146827284), None)

Please suggest me the way to resolve this.

Actual Requiremnt: Creating the Pivot table in excel through python FastAPI application with win32