NGINX: SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
If you are facing below error in Nginx!
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-i686.egg/yaml/__init__.py", line 26
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
This error normally happen if you install first time, You have not needed this fix is you are upgrading from old version.
NOTE: Please don't run this fix multiple time
It should FIXED now!!!
Please check: http://nginxcp.com/forums/Thread-python-error-issue-fix
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-i686.egg/yaml/__init__.py", line 26
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
This error normally happen if you install first time, You have not needed this fix is you are upgrading from old version.
NOTE: Please don't run this fix multiple time
# tar xf nginxadmin.tar
# cd publicnginx
## ./pythonfix
After that you can run installer as per bellow,
# ./nginxinstaller install
It should FIXED now!!!
Please check: http://nginxcp.com/forums/Thread-python-error-issue-fix
Great rreading your blog post
ReplyDelete