Webhosting Forums > Dedicated Server Administration
nginxcp WHM/cpanel installation error : SyntaxError: 'yield' not allowed in a
(1/1)
Savera:
I am trying to install nginxcp on a WHM / cpanel server, I am receiving following error :
--- Code: ---
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
--- End code ---
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?
Jaffery:
You need to have latest version of python in your system, you can update python from WHM itself.
Navigation
[0] Message Index
Go to full version