Oct-01-2019, 12:17 AM
I have a not too complicated python code that I have used pretty much every day until last week. It just reads an Excel file and lets me pick items and calculate a total (plus some other things). It sat in a folder on my desktop, and double clicking would bring up the application window every time.
Then I had to go on a trip and I moved the folder it was in temporarily off the desktop (last week). Today I restored the code tot he desktop, but double clicking it does not do anything. So I opened the code in Pythin IDLE and when I run it from there it suddenly generates error messages.
In 3.7 I receive the following error message:
File "C:\Users\Mike_b\Desktop\ProductSearch\Product_search.py", line 439, in <module>
App()
File "C:\Users\Mike_b\Desktop\ProductSearch\Product_search.py", line 152, in __init__
self.Types = sorted(tuple(self.productTypes))
TypeError: '<' not supported between instances of 'int' and 'str'
Again, the only thing I did was move the code to a different folder, then back to where it was before.
What could be the reason the code does not run anymore?
Thanks for your help.
Then I had to go on a trip and I moved the folder it was in temporarily off the desktop (last week). Today I restored the code tot he desktop, but double clicking it does not do anything. So I opened the code in Pythin IDLE and when I run it from there it suddenly generates error messages.
In 3.7 I receive the following error message:
File "C:\Users\Mike_b\Desktop\ProductSearch\Product_search.py", line 439, in <module>
App()
File "C:\Users\Mike_b\Desktop\ProductSearch\Product_search.py", line 152, in __init__
self.Types = sorted(tuple(self.productTypes))
TypeError: '<' not supported between instances of 'int' and 'str'
Again, the only thing I did was move the code to a different folder, then back to where it was before.
What could be the reason the code does not run anymore?
Thanks for your help.