stefaan-
As I just posted on the pyjs group (with a stupid typo :)):
pyjs was installed from git.
1) hulahop doesn't work.
2) error message when running the following:
['/home/lwapnitsky/workspace/pyjamas/eclipse_build.py', '-d', '-I
/home/lwapnitsky/workspace/pyjamas', 'test.py']
Traceback (most recent call last):
File "/home/lwapnitsky/workspace/pyjamas/eclipse_build.py", line 109,
in <module>
_run_translator()
File "/home/lwapnitsky/workspace/pyjamas/eclipse_build.py", line 89,
in _run_translator
pyjs = _return_pyjs()
File "/home/lwapnitsky/workspace/pyjamas/eclipse_build.py", line 83,
in _return_pyjs
import pyjs.browser
File "/usr/local/lib/python2.7/dist-packages/pyjs/browser.py", line
8, in <module>
from pyjs import linker
File "/usr/local/lib/python2.7/dist-packages/pyjs/linker.py", line 7,
in <module>
from pyjs import translator
File "/usr/local/lib/python2.7/dist-packages/pyjs/translator.py",
line 15, in <module>
from translator_proto import *
File
"/usr/local/lib/python2.7/dist-packages/pyjs/translator_proto.py", line
37, in <module>
import pycompiler as compiler
ImportError: No module named pycompiler
Shouldn't pycompiler just be compiler?
On 5/30/2012 11:43 AM, stefaan wrote:
> Are there any good alternatives to using pyjamas/pyjs or learning
JavaScript from scratch?
What problems are you having? I've been using a recent version of
pyjamas without problem.
(Of course with the recent "hijack" of the project by some disgruntled
people there may be other reasons to look for alternatives :) )
As I found out by trial and error, the explanation in the web2py book
refers to pyjamas 0.5-something and the view shown there is outdated.
Here's the summary of how I got it to work:
* Put the YourAppName.py in the static folder of your web2py application
* After compiling the YourAppName.py file to YourAppName.js, in the
output folder, you will find a YourAppName.html file, which contains
the boilerplate code required in your web2py view (this is a one-time
copy paste operation from generated code to your web2py view).
The boilerplate code no longer exactly matches the code as shown in
the web2py book.
One thing that took me a while to figure out was the importance of
including the exact
<meta name="pygwt:module" content="YourAppName">
tag, with the correct values for the name and content attribute as
found in the output/YourAppName.html file.
Without this tag, the pyjamas application would refuse to start.