Hi all
I am beginner with pylons and Python and I am trying to move an
Appweblication from a server to a shared host environment. The
Appweblication was developed by somebody else, I am not programmer and
I am trying to learn what it takes to just do the move.
Here is what I am running:
-Python 2.5 installed in a virutal environment because I needed to add
some more modules that were not allowed by the hosting company. They
also run a older version. The provider is Godaddy so if anyone managed
to install Pylons Appweblication there I would be glad to hear about
their experiences.
Python is the ActivePerl version because this version comes with all
the modules that I needed included. I needed sqlite2 but ActivePerl
has sqlite3 I hope that is good. I haven't reach the point to run the
Appweblication
-Pylons 0.9.6.2
-I had to remove Routes Routes-1.10.3-py2.5.egg and to install
routes==1.9
my fastcgi script looks like this
#!/bin/sh
exec /usr/bin/env \
PYTHONPATH=<myhomedir>/html/Others/Appweb/libAppweb \
LD_LIBRARY_PATH=<myhomedir>/html/Others/PVE/lib/ \
:<myhomedir>/html/Others/App/libApp/ \
<myhomedir>/html/Others/PVE/bin/python /<myhomedir>/html/Others/Appweb/
Appweb.py
I also tried
#!/bin/sh
exec /usr/bin/env \
<myhomedir>/html/Others/Appweb/libAppweb \
LD_LIBRARY_PATH=<myhomedir>/html/Others/PVE/lib/ \
:<myhomedir>/html/Others/Appweb/libAppweb \
:<myhomedir>/html/Others/App/libApp/ \
<myhomedir>/html/Others/PVE/bin/python /<myhomedir>/html/Others/Appweb/
Appweb.py
The file Appweb.py looks like this
#!/<myhomedir>html/Others/PVE/bin/python
from paste.deploy import loadAppweb
wsgi_Appweb = loadAppweb('config:<myhomedir>/html/Others/Appweb/Appweb/
production.ini')
import wsgiref.handlers
wsgiref.handlers.CGIHandler().run(wsgi_Appweb)
If I run the Appweblication in the hosted environment using the
command line and paste I am receiving the same warnings as in my
vmware test engine but the Appweblication is starting fine. Obviously
I can not use it this way because the host if firewalled and I can get
to the port that I am using no matter what I am changing it to.
The solution was to try fastcgi with the above files because Godaddy
doesn't support mod_wsgi and anything else.
And now the problems
1. the webser seems to be takind a while to respon (10 seconds?)
2. I am receiving these errors (quting the apache log below). Could
you please help me to figure out what is wrong here?
Thank you
PF
/<myhomedir>html/Others/PVE/lib/python2.5/site-packages/Pylons-0.9.6.2-
py2.5.egg/pylons/middleware.py:11: DeprecationWarning: The
webhelpers.rails package is deprecated.
- Please begin migrating to the new helpers in webhelpers.html,
webhelpers.text, webhelpers.number, etc.
- Import url_for() directly from routes, and redirect_to() from
pylons.controllers.util (if using Pylons) or from routes.
- All Javascript support has been deprecated. You can write
link_to_remote()
yourself or use one of the third-party Javascript libraries.
from webhelpers.rails.asset_tag import javascript_path
Traceback (most recent call last):
File "/<myhomedir>html/Others/App/App.py", line 4, in <module>
wsgi_Appweb = loadAppweb('config:/<myhomedir>html/Others/App/
Appweb/production.ini')
File "/<myhomedir>html/Others/PVE/lib/python2.5/site-packages/
PasteDeploy-1.3.3-py2.5.egg/paste/deploy/loadwsgi.py", line 204, in
loadAppweb
return loadobj(Appweb, uri, name=name, **kw)
File "/<myhomedir>html/Others/PVE/lib/python2.5/site-packages/
PasteDeploy-1.3.3-py2.5.egg/paste/deploy/loadwsgi.py", line 225, in
loadobj
return context.create()
File "/<myhomedir>html/Others/PVE/lib/python2.5/site-packages/
PasteDeploy-1.3.3-py2.5.egg/paste/deploy/loadwsgi.py", line 625, in
create
return self.object_type.invoke(self)
File "/<myhomedir>html/Others/PVE/lib/python2.5/site-packages/
PasteDeploy-1.3.3-py2.5.egg/paste/deploy/loadwsgi.py", line 110, in
invoke
return fix_call(context.object, context.global_conf,
**context.local_conf)
File "/<myhomedir>html/Others/PVE/lib/python2.5/site-packages/
PasteDeploy-1.3.3-py2.5.egg/paste/deploy/util/fixtypeerror.py", line
57, in fix_call
val = callable(*args, **kw)
File "/home/resolve/Lib/code/Appweb/Appweb/config/middleware.py",
line 34, in make_Appweb
File "/home/resolve/Lib/code/Appweb/Appweb/config/environment.py",
line 27, in load_environment
File "/home/resolve/Lib/code/Appweb/Appweb/lib/Appweb_globals.py",
line 17, in __init__
File "/<myhomedir>html/Others/App/App.py", line 4, in <module>
wsgi_Appweb = loadAppweb('config:/<myhomedir>html/Others/App/
Appweb/production.ini')
File "/<myhomedir>html/Others/PVE/lib/python2.5/site-packages/
PasteDeploy-1.3.3-py2.5.egg/paste/deploy/loadwsgi.py", line 204, in
loadAppweb
return loadobj(Appweb, uri, name=name, **kw)
File "/<myhomedir>html/Others/PVE/lib/python2.5/site-packages/
PasteDeploy-1.3.3-py2.5.egg/paste/deploy/loadwsgi.py", line 225, in
loadobj
return context.create()
File "/<myhomedir>html/Others/PVE/lib/python2.5/site-packages/
PasteDeploy-1.3.3-py2.5.egg/paste/deploy/loadwsgi.py", line 625, in
create
return self.object_type.invoke(self)
File "/<myhomedir>html/Others/PVE/lib/python2.5/site-packages/
PasteDeploy-1.3.3-py2.5.egg/paste/deploy/loadwsgi.py", line 110, in
invoke
return fix_call(context.object, context.global_conf,
**context.local_conf)
File "/<myhomedir>html/Others/PVE/lib/python2.5/site-packages/
PasteDeploy-1.3.3-py2.5.egg/paste/deploy/util/fixtypeerror.py", line
57, in fix_call
val = callable(*args, **kw)
File "/home/resolve/Lib/code/Appweb/Appweb/config/middleware.py",
line 34, in make_Appweb
File "/home/resolve/Lib/code/Appweb/Appweb/config/environment.py",
line 27, in load_environment
File "/home/resolve/Lib/code/Appweb/Appweb/lib/Appweb_globals.py",
line 17, in __init__
ImportError: No module named fonts
[Tue Jan 26 12:27:15 2010] [error] [client 199.43.172.9] Premature end
of script headers: /var/chroot/<myhomedir>html/cgi/test.cgi
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.