Android JetCreator 深拷贝错误
我在尝试使用JetCreator这个Python应用程序,它是Android SDK的一部分,用来为Android创建声音文件。可是,当我用Android SDK里提供的JetCreator演示程序播放一个midi片段时,出现了错误。我在Windows XP和Windows 7上都试过。首先,我安装了Python 2.7和wxPython2.8-win32->unicode-2.8.12.1-py27.exe,并且能够运行hello world的wx程序。接着,我运行了JetCreator.py,界面启动后,我选择了一些midi片段来播放(然后点击播放按钮),结果出现了这个错误:
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,但我的配置可能有什么问题吗?
谢谢,
保罗
1 个回答
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
我不知道为什么谷歌没有更新这个程序,让它能和现在支持的版本兼容,但目前这是我找到的解决办法!