2014-02-12 372 views
-2

我有安裝asterisk 1.4版本比有人建議我安裝python 2.4及更高版本表現出以下一些錯誤,我有以下安裝問題

running install 
running build 
running build_py 
running build_scripts 
running install_lib 
byte-compiling /usr/local/lib/python2.4/site-packages/Asterisk/Util.py to Util.pyc SyntaxError: ('future feature absolute_import is not defined',) 
byte-compiling /usr/local/lib/python2.4/site-packages/Asterisk/Manager.py to Manager.pyc File "/usr/local/lib/python2.4/site-packages/Asterisk/Manager.py", line 557 except Asterisk.Manager.ActionFailed as e:^SyntaxError: invalid syntax 
byte-compiling /usr/local/lib/python2.4/site-packages/Asterisk/Config.py to Config.pyc SyntaxError: ('future feature absolute_import is not defined',) 
byte-compiling /usr/local/lib/python2.4/site-packages/Asterisk/CLI.py to CLI.pyc 
SyntaxError: ('future feature absolute_import is not defined',) byte-compiling /usr/local/lib/python2.4/site-packages/Asterisk/Logging.py to Logging.pyc 
SyntaxError: ('future feature absolute_import is not defined',) running install_scripts 
changing mode of /usr/local/bin/asterisk-dump to 755 changing mode of /usr/local/bin/py-asterisk to 755 
+2

你需要解釋你正在嘗試完成什麼,你做了什麼以及發生了什麼。只發布錯誤不足以提供任何有意義的答案。 – Carpetsmoker

回答

0

Python 2.4中提到的是太老了碼。安裝較新版本的Python 2.x.

+0

我也安裝了2.6.6和2.7,但它顯示相同的錯誤 – Hemdip

+0

你打擾使用它們來安裝它嗎? –

+0

發佈使用2.7的結果。 – GreenAsJade