Author Topic: nginxcp WHM/cpanel installation error : SyntaxError: 'yield' not allowed in a  (Read 5116 times)

Savera

  • Full Member
  • ***
  • Posts: 159
I am trying to install nginxcp on a WHM / cpanel server, I am receiving following error :
Code: [Select]

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?

Jaffery

  • Administrator
  • Full Member
  • *****
  • Posts: 158
You need to have latest version of python in your system, you can update python from WHM itself.

 

X

Do you know?

By participating in our community you can get free Top Level Domain for lifetime.
Know more..
Join Now!