0

Using python-spidermonkey in the following way (following the guide) gives me the error 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'

1 Answer 1

2

I experienced the same problem and I have also found this bug report: https://launchpad.net/~pi-rho/+archive/security/+build/3866138

Installing this package on Ubuntu (12.10) worked for me: https://launchpad.net/~pi-rho/+archive/security/+build/3866138

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.