Sunday, March 18, 2012

nginxcp pythonfix [solved]

http://nginxcp.com/forums/Thread-installation-error?page=2

easy_install Pyyaml==3.09
rm /usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg

nginxcp tells about pythonfix
Note:
You may needed to run pythonfix script if you are installing it in first time.

before:

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

After:
 Reading Apache Configuration
 updating Apache configuration
 ****************************************************
 *               Installation Complete              *
 *run /etc/init.d/httpd restart to start Nginx Admin*
 ****************************************************
Done! :)

No comments:

Related Posts Plugin for WordPress, Blogger...