pyjs install on windows=========================[1] install python 2.7.6, pywin32-218[2] extract pyjs.zip downloaded from github into c:\pytest\pyjsroot[3]c:\>cd pytest\virtualenv-1.11.4c:\pytest\virtualenv-1.11.4>c:\python276\python.exe virtualenv.py c:\pytest\pyjsroot\mypyNew python executable in c:\pytest\pyjsroot\mypy\Scripts\python.exeInstalling setuptools, pip...done.[4]cd c:\pytest\pyjsrootmypy\Scripts\pip.exe install c:\pytest\pyjsroot[5]cd c:\pytest\pyjsrootmypy\Scripts\pip.exe install c:\pytest\comtypes-1.0.0pyjs build examples=====================[6] --this failed:cd c:\pytest\pyjsrootmypy\Scripts\python.exe examples\helloworld[7] --this works:cd c:\pytest\pyjsroot\examples\helloworld..\..\mypy\Scripts\pyjsbuild.exe Hello.py[8] --how to run pyjd?
Running "pyjsbuild hello.py" gets the error below. Github version
564cf5f of Mar 20 works well.
564cf5f
Building: hello
PYJSPATH: ['/home/iton/Desktop/night',
'/usr/lib/python2.7/site-packages/pyjs-0.8.2-py2.7.egg/pyjswidgets',
'/usr/lib/python2.7/site-packages/pyjs-0.8.2-py2.7.egg/pyjswaddons',
'/usr/share/pyjamas/library',
'/usr/share/pyjamas/addons']
Traceback (most recent call last):
File "/usr/bin/pyjsbuild", line 21, in <module>
pyjs.browser.build_script()
File "/usr/lib/python2.7/site-packages/pyjs-0.8.2-py2.7.egg/pyjs/browser.py", line 524, in build_script
runtime_options, args)
File "/usr/lib/python2.7/site-packages/pyjs-0.8.2-py2.7.egg/pyjs/browser.py", line 448, in build
l()
File "/usr/lib/python2.7/site-packages/pyjs-0.8.2-py2.7.egg/pyjs/linker.py", line 267, in __call__
except translator.TranslationError( e ):
NameError: global name 'e' is not defined
(mypy)aluminum:pyjs steve$ python ./examples/helloworld
Building: Hello
PYJSPATH: ['/Users/steve/Development/pyjs/examples/helloworld',
'/Users/steve/Development/pyjs/mypy/lib/python2.7/site-packages/pyjswidgets',
'/Users/steve/Development/pyjs/mypy/lib/python2.7/site-packages/pyjswaddons']
Traceback (most recent call last):
File "/Users/steve/Development/pyjs/mypy/bin/pyjsbuild", line 9, in <module>
load_entry_point('pyjs==0.8.2', 'console_scripts', 'pyjsbuild')()
File "/Users/steve/Development/pyjs/mypy/lib/python2.7/site-packages/pyjs/browser.py", line 524, in build_script
runtime_options, args)
File "/Users/steve/Development/pyjs/mypy/lib/python2.7/site-packages/pyjs/browser.py", line 448, in build
l()
File "/Users/steve/Development/pyjs/mypy/lib/python2.7/site-packages/pyjs/linker.py", line 267, in __call__
except translator.TranslationError( e ):
NameError: global name 'e' is not defined