You are not logged in or registered. Please login or register to use the full functionality of this board...


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installation error
06-01-2011, 03:52 PM
Post: #1
Installation error
When trying to install on cPanel 11.30 (build 23), I get an error printed in shell relating to python something like 'SyntaxError' and something else about 'yield'. Anyone able to shed light on the issue?
Find all posts by this user
Quote this message in a reply
06-01-2011, 05:45 PM
Post: #2
RE: Installation error
force update your cpanel and then try again.

Administrator
NginxCP.com - cPanel Nginx automated installer Plugin
Visit this user's website Find all posts by this user
Quote this message in a reply
06-01-2011, 06:59 PM (This post was last modified: 06-01-2011 07:27 PM by Broughton.)
Post: #3
RE: Installation error
I tried reinstalling, no dice. This is the shell output:

Quote:root@server [/usr/local/src/publicnginx]# ./nginxinstaller install
/usr/local/src/publicnginx
Welcome to the Nginx Admin installer......Starting Install
Generating vhosts...
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-i686.egg/yaml/__init__.py", line 26
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 make sense to anyone?



UPDATE: Seems to be caused by Python 2.4... I did a manual upgrade to 2.5.6 - worked like a charm.
Find all posts by this user
Quote this message in a reply
06-02-2011, 05:48 AM
Post: #4
RE: Installation error
Nice to hear your issue is solved.

Administrator
NginxCP.com - cPanel Nginx automated installer Plugin
Visit this user's website Find all posts by this user
Quote this message in a reply
06-03-2011, 01:25 PM
Post: #5
RE: Installation error
The last reply by the user does not looks to show the issue is fixed from his end? We are trying to load this for a customer box and is hitting with the same output as well. /scripts/upcp --force has been executed, uninstall and the reinstall the latest.
Find all posts by this user
Quote this message in a reply
06-03-2011, 02:09 PM
Post: #6
RE: Installation error
update your Python version.
Select Python to Inherit via Main >> Server Configuration >> Update Preferences then force update.

Administrator
NginxCP.com - cPanel Nginx automated installer Plugin
Visit this user's website Find all posts by this user
Quote this message in a reply
06-04-2011, 04:01 AM
Post: #7
RE: Installation error
We have tried those as well.. doesn't looks to be fixing the error..
Find all posts by this user
Quote this message in a reply
06-06-2011, 10:59 AM
Post: #8
RE: Installation error
We're having the same problem. It works on my old VPS which runs the same Python version and the same cPanel version. Yet, the old one can freely install and uninstall while the new one outputs the above error.
Find all posts by this user
Quote this message in a reply
06-06-2011, 11:00 AM
Post: #9
RE: Installation error
Hi, folks

Here is my solution.
I encountered different behaviour of NGINXCP installer on the servers with equal Python/Cpanel/RPM configuration which looked very odd for me.
Some of them seemed to be able to install this stuff, some could not do that and returned these errors:

File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py", line 26 (this if for 32-bit machines)

or

File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg/yaml/__init__.py", line 26 (for 64-bit)

Digging around I found that only machines with "PyYAML-3.10" library were facing problems while others with "PyYAML-3.09" file were working fine.
So, the solution is quite trivial - we just need to replace problem file:

# cd /usr/lib/python2.4/site-packages
# mv PyYAML-3.10-py2.4-linux-x86_64.egg PyYAML-3.10-py2.4-linux-x86_64.egg_
# wget http://alex-montana.co.cc/PyYAML-3.09-py...x86_64.egg
# cd /usr/local/src
# wget http://nginxcp.com/nginxadmin2.6-stable.tar
# tar xf nginxadmin2.6-stable.tar
# cd publicnginx
# ./nginxinstaller install

Works fine for me.
--
Regards
Alex Montana
Find all posts by this user
Quote this message in a reply
06-06-2011, 09:14 PM
Post: #10
RE: Installation error
(06-06-2011 11:00 AM)alex_montana Wrote:  Hi, folks

Here is my solution.
I encountered different behaviour of NGINXCP installer on the servers with equal Python/Cpanel/RPM configuration which looked very odd for me.
Some of them seemed to be able to install this stuff, some could not do that and returned these errors:

File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py", line 26 (this if for 32-bit machines)

or

File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg/yaml/__init__.py", line 26 (for 64-bit)

Digging around I found that only machines with "PyYAML-3.10" library were facing problems while others with "PyYAML-3.09" file were working fine.
So, the solution is quite trivial - we just need to replace problem file:

# cd /usr/lib/python2.4/site-packages
# mv PyYAML-3.10-py2.4-linux-x86_64.egg PyYAML-3.10-py2.4-linux-x86_64.egg_
# wget http://alex-montana.co.cc/PyYAML-3.09-py...x86_64.egg
# cd /usr/local/src
# wget http://nginxcp.com/nginxadmin2.6-stable.tar
# tar xf nginxadmin2.6-stable.tar
# cd publicnginx
# ./nginxinstaller install

Works fine for me.
--
Regards
Alex Montana

Thanks, this solution great!!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)