I have a working script at hand, while it runs on the Spyder IDE and python shell, when I just run it by double clicking, it closes right away. To understand the problem, I ran it through the cmd prompt and encountered the following:
Traceback (most recent call last):
File "C:\Users\Cheese\Desktop\demografik-proje\demo-form-v-0-1-3.py", line 314, in <module>
mainMenu(q_list, xtr_q_list)
File "C:\Users\Cheese\Desktop\demografik-proje\demo-form-v-0-1-3.py", line 152, in mainMenu
patient_admin = input("Testi uygulayan ki\u015fi: ") #the person who administrated the test
File "C:\Program Files\Python35\lib\encodings\cp850.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character '\u015f' in position 18: character maps to <undefined>
This question has been asked many times before, but why I'm asking is, this script works fine in some computers, just by double-clicking, yet doesn't work on mine, for instance. From what I gathered, could it be related to the fact that my computer is in English, yet the computers that were able to run were in Turkish?
Also since program has many Turkish strings, I'd rather not fiddle with every individual string and rather put a thing on the top or something. I'm even up for setting up a batch file to run the script in UTF8. Or if I could freeze it in such a way that it recognizes UTF8(this would be preferred)? Also, I just checked, and the program works fine if all the turkish chars are removed. As expected.
If it's any help, Spyder still runs Python 3.5.1, I have 3.5.2 installed and when I just type "python" on command prompt, Python 3.5.2 runs just fine.
Following is the code, if it's any assistance:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Block o' Code
"""
patient_admin = input("Testi uygulayan kişi: ") #the person who administrated the test
#gets input for all the data program needs
print("=======================================")
"""
More block o' code
"""