The background behind this is that the file path is the variable passed and the functions were called through uplink from Jupyter Notebook, And I got the following error when Anvil app was run by another user:
PackageNotFoundError: Package not found at 'C:\Users*.docx’
at C:/Users//Anaconda3/lib/site-packages/docx/opc/phys_pkg.py, line 31
called from C:/Users//Anaconda3/lib/site-packages/docx/opc/pkgreader.py, line 32
called from C:/Users//Anaconda3/lib/site-packages/docx/opc/package.py, line 128
called from C:/Users/**/Anaconda3/lib/site-packages/docx/api.py, line 25
called from , line 115
Sorry I am coming back to this query because lack of alternatives.