Closed ghost closed 7 years ago
Ok seems I needed to install 'python3-tk' package, surprise....
'python3-tk' package is not required for python 3.7. I am using python 3.7 windows system and i am facing this problem when i converted my script to .exe file ... please explain what was the problem and how to resolve it exactly. below is my setup.py file
`import cx_Freeze from cx_Freeze import * import os
os.environ['TCL_LIBRARY'] = r'C:\Users\kiran\AppData\Local\Programs\Python\Python37-32\tcl\tcl8.6' os.environ['TK_LIBRARY'] = r'C:\Users\kiran\AppData\Local\Programs\Python\Python37-32\tcl\tk8.6'
setup(name="TargetApplContactCrossCheck", options = {'build_exe':{'packages':['tkinter','time','os','cx_Oracle','selenium','openpyxl','pymsgbox','configparser','functools','itertools'], "include_files":["Credentials.cfg"]}}, executables = [Executable('TargetApplContactCrossCheck.py',)])`
And then i run this using a bat file.
python setup.py build
Please help me.
@raokiran841 Did you ever figure out how to get rid of that error when using cx_freeze?
I am using python 3+ and get the following exception:
when I try to use a native pymsgbox confirm dialog on debian with vs code:
I thought Tkinter is built in python 3+? Can anyone help me please?