All the arguments you passed to the function look like they do not represent the file names you have in mind.
"C:\input files\sample data\rps.lp" will use the special characters '\i', '\s', and '\r', you will have to escape the backslashes in case you you have backslashes in string arguments.
"C:/input files/sample data/rps.lp" does not look like a valid file system path.
Can you try any of this:
mdl.export_as_lp(r"C:\input files\sample data\rps.lp")
mdl.export_as_lp("C:\\input files\\sample data\\rps.lp")
Please also read the definition of string literals in Python.
#CPLEXOptimizers#DecisionOptimization