Webmaster's Community
Webhosting Forums => Dedicated Server Administration => Topic started by: Savera on July 28, 2012, 12:25:48 PM
-
I am trying to install nginxcp on a WHM / cpanel server, I am receiving following error :
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...
Installing mod_rpaf...
Updating cPanel Configuration
Traceback (most recent call last):
File "/root/nginxcp/publicnginx/nginxinstaller2", line 9, in ?
import createvhosts
File "/root/nginxcp/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
I have done following steps:
cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller install
What should I do?
-
You need to have latest version of python in your system, you can update python from WHM itself.