嘿相對較新的編譯python腳本exe。我使用cx_freeze編譯我的腳本,一旦它的內置我運行該exe文件,它給了我這個錯誤。有谷歌周圍很多,但不太確定。錯誤是:EXE錯誤與cx_freeze
Cannot import traceback module. Exception: No module named re Original Exception: No module named re
不太清楚如何去解決這個問題。我讀到可能有名爲re的模塊之間發生衝突?在python中?在cx_freeze模塊中有一個名爲re的模塊?
我的設置文件看起來像:如果運行時的工作目錄不是可執行文件所在的目錄
from cx_Freeze import setup, Executable
includes = []
includefiles = ['remindersText.pkl']
eggsacutibull = Executable(
script = "podlancer.py",
initScript = None,
base = 'Win32GUI',
targetName = "podlancer.exe",
compress = True,
copyDependentFiles = True,
appendScriptToExe = False,
appendScriptToLibrary = False,
icon = None
)
setup(
name = "Podlancer",
version = "0.1",
author = 'jono',
description = "Podlancer UI script",
options = {"build_exe": {"includes":includes, "include_files": includefiles}},
executables = [eggsacutibull]
)
這是cx_Freeze中的一個錯誤 - 它應該在下一個版本中修復,希望在下週左右發佈。 – 2013-09-16 21:44:47