Scripts works fine on source file with using Anaconda alongside with Python 3.4. When i cxfreeze (v 4.3.4) it with following setup file:
from cx_Freeze import setup, Executable
setup(executables=[Executable("main.py", base="Win32GUI")],
version='0.2')
I got following error on the server:
DBOps.py", line 54, in executemany
"C:UsersuserAnaconda3libsite-packagesMySQLdbcursors.py", line
286, in executemany File
"FileC:UsersuserAnaconda3libsite-packagesMySQLdbcursors.py", line 127, in _warning_check File "c:Python64-bit3.4libwarnings.py",
line 15, in showwarning AttributeError: 'NoneType' object has no attribute 'write'
I thougth different python versions installed on my system might result this problem, removed them by using installer. Nothing changed. Same error on both server and lochal machines. The errorneous part seems like "c:Python64-bit3.4libwarnings.py", since there is no such directory path neither on my system or on server.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…