Corrigindo o erro PyYAML-3.10-py2.4-linux-x86_64.egg/yaml/__init__.py”, line 26

Se na tentativa de instalação do plugin NGNIX admin, você recebeu a mensagem de erro abaixo?
[root@web1 publicnginx]# ./nginxinstaller install
/usr/local/src/publicnginx
Welcome to the Nginx Admin installer......Starting Install
Generating vhosts...
Traceback (most recent call last):
File "/scripts/createvhosts.py", line 2, in ?
import yaml
File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg/yaml/__init__.py", line 26
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
Installing WHM interface...
deploying booster rockets
Traceback (most recent call last):
File "/usr/local/src/publicnginx/nginxinstaller2", line 9, in ?
import createvhosts
File "/usr/local/src/publicnginx/createvhosts.py", line 2, in ?
import yaml
File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg/yaml/__init__.py", line 26
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause

Tente executar, em seu terminal de comandos linux, o comando abaixo. Ele possivelmente resolverá o problema:

#cd /usr/src/publicnginx
#./pythonfix

Fonte: nginxcp forums



Formas de Pagamento

Tecnologias

Visa MasterCard Diner's Club American Express Banrisul Banco do Brasil Bradesco Banco Real Banco Itaú Boleto Bancário