Indeed this question is asked many times, but could not find anything to solve my problem. I have many modules in my python project and it works fine, however on creating executable of that project i get error:
AttributeError: 'QString' object has no attribute 'find'
input = self.builselcom.currentText()
tofind = ".bt2"
You need to convert the user input to string. It should work by just adding
input = str(self.builselcom.currentText()). Hope this is helpful.