必須要筆電上另外install python26,wxpython,pyserial,py2exe
其中我用python IDLE按F5來執行的時候發生了以下不知道是怎麼回事的錯誤訊息
明明CODE都沒改過阿 = =
IDLE 2.6 >>> =========== RESTART ========== >>> Traceback (most recent call last): File "C:\Python26\wxTerminal.py", line 332, inapp = MyApp(0) File "C:\Python26\lib\site-packages\wx-3.0-msw\wx\_core.py", line 8631, in __init__ self._BootstrapApp() File "C:\Python26\lib\site-packages\wx-3.0-msw\wx\_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "C:\Python26\wxTerminal.py", line 323, in OnInit wx.InitAllImageHandlers() File "C:\Python26\lib\site-packages\wx-3.0-msw\wx\_core.py", line 99, in deprecated_func wxPyDeprecationWarning, stacklevel=2) File "C:\Python26\lib\warnings.py", line 29, in _show_warning file.write(formatwarning(message, category, filename, lineno, line)) TypeError: idle_formatwarning_subproc() takes exactly 4 arguments (5 given) >>>
後來google了一下,用cmd進入python26的資料夾,在執行python xxxxxx.py就可以執行了
有可能是因為少設了環境變數?
anyway 還是可以用py2exex來產生給win32 的 exe檔
沒有留言:
張貼留言