我在fedora19上安装了睡衣,因为yum安装了睡衣
我执行的以下文件
hello.py
from pyjamas.ui.RootPanel import RootPanel
from pyjamas.ui.Label import Label
l = Label('Hello pyjs')
RootPanel().add(l)当我构建js文件时
pyjsbuild hello.py我收到以下错误
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如何解决这个问题?
发布于 2014-04-30 15:11:00
它可能被最后两次提交破坏了。向后移动了两次提交,构建正在工作。
git clone https://github.com/pyjs/pyjs
cd pyjs
git checkout 564cf5f工作版本是在2014年3月20日。
https://stackoverflow.com/questions/22894816
复制相似问题