Serial port not access using pyhton

I am running my python based snap application on my host. I have install pyserial module on it. I want to transfer some data over serial using ttyUSB0, but got below error message in snap log

raise SerialException(“Could not configure port: {}”.format(msg)) 2021-10-28T08:42:48Z testapp.testapp[101781]: serial.serialutil.SerialException: Could not configure port: (5, ‘Input/output error’)

Is anything need to configure while creating snap? or i am missing anything