0

以下列方式(按照指南)使用 python-spidermonkey 会给我错误AttributeError: 'spidermonkey.Context' object has not attribute 'eval_script'

>>> import spidermonkey
>>> rt = spidermonkey.Runtime()
>>> cx = rt.new_context()
>>> cx.eval_script("1 + 2") + 3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  AttributeError: 'spidermonkey.Context' object has no attribute 'eval_script'
4

1 回答 1

2

我遇到了同样的问题,我还发现了这个错误报告: https ://launchpad.net/~pi-rho/+archive/security/+build/3866138

在 Ubuntu (12.10) 上安装这个包对我有用: https ://launchpad.net/~pi-rho/+archive/security/+build/3866138

于 2013-08-30T14:59:08.070 回答