import read_roi
from pathlib import Path
file_path = Path('C:\workspace\datasets\file_name.roi')
read_roi.read_roi_file( file_path ) # this is recognized as 'Nonetype' object
cause: it seems that 'read_roi_file( )' cannot read 'Path' type, and It works with string type.
Error
error message: ERROR:root:Can't read C:\workspace\datasets\file_name.roi
code
cause: it seems that 'read_roi_file( )' cannot read 'Path' type, and It works with string type.
Solution