我正在尝试使用Android SDK附带的JetCreator python应用程序为Android创建声音文件。我尝试使用随Android SDK android-sdk-r12-windows.zip提供的JetCreator演示尝试播放midi片段时出错。它尝试使用Windows XP和Windows 7.首先我安装了python 2.7和wxPython2.8-win32-> unicode-2.8.12.1-py27.exe,并且能够运行hello world wx程序。接下来我运行JetCreator.py,gui启动,我选择一些mdi段来播放(并点击播放按钮),我收到此错误:
Unhandled exception in thread started by <bound method JetCreator.PlaySegs of <_
_main__.JetCreator; proxy of <Swig Object of type 'wxFrame *' at 0x1ca9378> >>
Traceback (most recent call last):
File "C:\_tools\Android\android-sdk-windows\tools\Jet\JetCreator\JetCreator.py
", line 1230, in PlaySegs
jet_file = CreateTempJetFile(self.jet_file)
File "C:\_tools\Android\android-sdk-windows\tools\Jet\JetCreator\JetUtils.py",
line 759, in CreateTempJetFile
jet_file = copy.deepcopy(org_jet_file)
File "C:\Python27\lib\copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "C:\Python27\lib\copy.py", line 344, in _reconstruct
state = deepcopy(state, memo)
File "C:\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
File "C:\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "C:\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
File "C:\Python27\lib\copy.py", line 298, in _deepcopy_inst
state = deepcopy(state, memo)
File "C:\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
File "C:\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "C:\Python27\lib\copy.py", line 174, in deepcopy
y = copier(memo)
TypeError: cannot deepcopy this pattern object
我不想修复JetCreator.py,但是我的配置有问题吗?
谢谢, 保罗
答案 0 :(得分:1)
所以我不确定你是否还在寻找答案,但是当我看到你和我使用的相同版本的Python和WXPython有同样的错误时我认为它必须有一些东西从2008年开始,不再支持程序构建版本的事实。我花了一些时间挖掘但最终找到了两个原始程序,现在一切都运行得很好。
Python 2.5.4 http://www.python.org/download/releases/2.5.4/
WXPython 2.8.7.1 http://sourceforge.net/projects/wxpython/files/wxPython/2.8.7.1/wxPython2.8-win32-unicode-2.8.7.1-py25.exe/download
我不知道为什么谷歌没有更新程序以兼容当前支持的这些程序版本,但是现在这对我有用了!