开发者

i can't run tg-admin in python2.7, how can i do that?

I was trying to run tg-admin in ubuntu 11.04 on python 2.7 but I keep having an error shown below, but later I was able to run it using python 2.6 like this :

#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'TurboGears==1.1.1','console_scripts','tg-admin'
__requires__ = 'TurboGears==1.1.1'

I changed the first line to :

#!/usr/bin/python2.6 

and it works fine, but since the default python version on ubuntu11.04 is python 2.7 so it keeps failing when I try to run some thing with it, and the error message is like this :

.......bla...bla and @ last

  File "/usr/lib/pymodules/python2.7/peak/util/assembler.py", line 221, in TryEx开发者_如何转开发cept
  next_test.JUMP_IF_FALSE, Code.POP_TOP,      # remove condition
  AttributeError: 'Label' object has no attribute 'JUMP_IF_FALSE'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜