The error doesn’t seem to be related to PyTorch, does it?
Anyway, note that you are calling self.fileCopyLocalRepository(requiredImgFiles) in processStart, while the posted fileCopyLocalRepository method isn’t defines as a class method.
Maybe you are calling the class method with the same name?