Python 2.6.1 (r261:67515, Mar 27 2009, 23:42:53)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyjamas import Window
Traceback (most recent call last):
File "
ImportError: No module named pyjamas
I then appended /usr/share/pyjamas to the PYTHONPATH and got a little further...
>>> from pyjamas import Window
Traceback (most recent call last):
File "
File "/usr/share/pyjamas/library/pyjamas/__init__.py", line 1, in
import DOM
File "/usr/share/pyjamas/library/DOM.py", line 15, in
from __pyjamas__ import JS
ImportError: cannot import name JS
But it still won't work. I don't think it's supposed to work in the interactive python environment... Maybe it is - but I tried to run pyjsbuild on a test.py file that just imported the Window class from pyjamas and ran it. That ran successfully and created the proper output.
Note: pyjsbuild was looking for files in /usr/local/share/pyjamas/builder , but these files were all installed to /usr/share/pyjamas/builder. So I create a symbolic link under /usr/local/share that pointed to /usr/share. Don't know if it was the right thing to do or not... This will be yet another system change to make for hosting if this needs to be done.
Next step: Run real test apps through Pyjamas to see if it's correct. Hoping for now that it is.
No comments:
Post a Comment