Hi everyone,
As I alluded to in my earlier email, I was having success in my project
with PYJD, but not with PYJS.
I'm using Windows 7 64bit, my pyjs is pulled from git and is relatively up
to date (pulled a few days ago). Python version is 2.7. I installed Pyjamas
by running "bootstrap.py" and nothing more. The pyjamas/ folder's parent is
on the system path, as is pyjamas/bin/.
When I take the following code as ProcessTrain.py
import pyjd
from pyjamas.ui.RootPanel import RootPanel
from pyjamas.ui.Label import Label
class ProcessTrain(object):
def __init__(self):
pass
if __name__ == '__main__':
pyjd.setup("./public/ProcessTrain.html")
root = RootPanel()
root.add(Label("Test"))
pyjd.run()
...and run "pyjsbuild ProcessTrain.py", I get the following output:
C:\Users\kpeters\Dropbox\WLS\pyjsprocesstrain>pyjsbuild ProcessTrain.py
Building : ProcessTrain
PYJSPATH : [
C:\Users\kpeters\Dropbox\WLS\pyjsprocesstrain
C:\Users\kpeters\Dropbox\WLS\pyjamas\library
C:\Users\kpeters\Dropbox\WLS\pyjamas\addons
]
Translating :
C:\Users\kpeters\Dropbox\WLS\pyjamas\pyjs\src\pyjs\builtin\pyjslib.py
Translating : C:\Users\kpeters\Dropbox\WLS\pyjamas\pyjs\src\pyjs\lib\sys.py
Translating : C:\Users\kpeters\Dropbox\WLS\pyjamas\library\dynamic.py
Translating :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\pyjamas\__init__.py
Translating : C:\Users\kpeters\Dropbox\WLS\pyjamas\library\pyjamas\DOM.py
Translating : C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\__init__.py
Translating : C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\DOM.py
Translating : C:\Users\kpeters\Dropbox\WLS\pyjamas\library\pyjd.py
Translating : C:\Users\kpeters\Dropbox\WLS\pyjamas\library\pyjamas\Window.py
Translating : C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\Window.py
Translating :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\pyjamas\Location.py
Translating : C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\Location.py
Translating :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\pyjamas\ui\__init__.py
Translating :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\ui\__init__.py
Translating :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\pyjamas\ui\Event.py
Translating : C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\ui\Event.py
Translating [ie6] : C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\DOM.py
Translating [ie6] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\Window.py
Translating [ie6] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\Location.py
Translating [ie6] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\ui\Event.py
Translating [opera] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\DOM.py
Translating [opera] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\Window.py
Translating [opera] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\Location.py
Translating [opera] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\ui\Event.py
Translating [oldmoz] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\DOM.py
Translating [oldmoz] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\Window.py
Translating [oldmoz] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\ui\Event.py
Translating [safari] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\DOM.py
Translating [safari] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\Window.py
Translating [safari] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\ui\Event.py
Translating [mozilla] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\DOM.py
Translating [mozilla] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\Window.py
Translating [mozilla] :
C:\Users\kpeters\Dropbox\WLS\pyjamas\library\gwt\ui\Event.py
Built to : C:\Users\kpeters\Dropbox\WLS\pyjsprocesstrain\output
Running "pyjsbuild Mail.py" in the pyjamas/example/mail/ (which I just
tried again now to confirm) produces a massive amount of lines as it goes
through the required classes and compiles them. In the pyjsbuild output for
my ProcessTrain.py file, I expect to see Label being compiled (as I import
it), but I do not.
I suspect I'm doing something stupid with the PYTHONPATH. If anyone can
assist, or if more information is required, please let me know and I'll
supply it with all haste.
Kind regards,
Rob.