1

我在 fedora19 上安装睡衣作为 yum install pajamas

我执行了以下文件

你好.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

如何解决这个问题?

4

1 回答 1

1

可能它被最后两次提交破坏了。由两次提交后移,构建正在运行。

git clone https://github.com/pyjs/pyjs
cd pyjs
git checkout 564cf5f

工作版本是 2014 年 3 月 20 日。

于 2014-04-30T07:11:00.430 回答