|
List Info
Thread: Problems with cherrypy and mod_python
|
|
| Problems with cherrypy and mod_python |
  United States |
2007-04-30 12:59:28 |
Hello.
At first, i sorry, my english is very bad, so i hope that i
explain
the problem.
I have the account on server with:
Cherrypy 2.2.1
mod_python
modpython_gateway is in pythonpath
Server running on freeBSD
I proceeded along this howto: h
ttp://projects.amor.org/misc/wiki/ModPythonGateway
httpd.conf settings (exactly vhost settings) :
<VirtualHost *:80>
ServerName yoyo.asinus.org
ServerAlias www.yoyo.asinus.org
DocumentRoot /home/stibi/www/yoyo.asinus.org
<Directory /home/stibi/www/yoyo.asinus.org>
PythonPath
"['/home/stibi/www/yoyo.asinus.org']+sys.path"
SetHandler python-program
PythonFixupHandler cherrypy.cherry::startup
PythonHandler modpython_gateway::handler
PythonOption wsgi.application
cherrypy._cpwsgi::wsgiApp
Options Indexes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Something is wrong, bacause helloworld not run and in log
is:
[Mon Apr 30 16:57:26 2007] [error] [client 10.10.10.10]
PythonFixupHandler cherrypy.cherry::startup: Traceback (most
recent
call last):, referer: http://yoyo.asinus.org/
[Mon Apr 30 16:57:26 2007] [error] [client 10.10.10.10]
PythonFixupHandler cherrypy.cherry::startup: File
"/usr/local/lib/
python2.4/site-packages/mod_python/apache.py", line
287, in
HandlerDispatchn log=debug), referer: http://yoyo.asinus.org/
[Mon Apr 30 16:57:26 2007] [error] [client 10.10.10.10]
PythonFixupHandler cherrypy.cherry::startup: File
"/usr/local/lib/
python2.4/site-packages/mod_python/apache.py", line
464, in
import_modulen module = imp.load_module(mname, f, p, d),
referer:
http://yoyo.asinus.org/
[Mon Apr 30 16:57:26 2007] [error] [client 10.10.10.10]
PythonFixupHandler cherrypy.cherry::startup: File
"/home/stibi/www/
yoyo.asinus.org/cherrypy.py", line 9, in ?n
cherrypy.server.start(initOnly = True, serverClass = None),
referer:
http://yoyo.asinus.org/
[Mon Apr 30 16:57:26 2007] [error] [client 10.10.10.10]
PythonFixupHandler cherrypy.cherry::startup: AttributeError:
'module'
object has no attribute 'server', referer: http://yoyo.asinus.org/
Pleas, any idea ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Problems with cherrypy and
mod_python |
  United States |
2007-04-30 21:52:05 |
It looks like you have a Python module of your own called:
/home/stibi/www/yoyo.asinus.org/cherrypy.py
Problem is that you have given this a name which clashes
with the
'cherrypy' package name.
You should rename that file to something else.
Graham
On May 1, 3:59 am, "martin.stibor... gmail.com"
<martin.stibor... gmail.com> wrote:
> Hello.
> At first, i sorry, my english is very bad, so i hope
that i explain
> the problem.
> I have the account on server with:
>
> Cherrypy 2.2.1
> mod_python
> modpython_gateway is in pythonpath
> Server running on freeBSD
>
> I proceeded along this howto:h
ttp://projects.amor.org/misc/wiki/ModPythonGateway
>
> httpd.conf settings (exactly vhost settings) :
>
> <VirtualHost *:80>
>
> ServerName yoyo.asinus.org
> ServerAliaswww.yoyo.asinus.org
> DocumentRoot /home/stibi/www/yoyo.asinus.org
>
> <Directory /home/stibi/www/yoyo.asinus.org>
> PythonPath
"['/home/stibi/www/yoyo.asinus.org']+sys.path"
> SetHandler python-program
> PythonFixupHandler cherrypy.cherry::startup
> PythonHandler modpython_gateway::handler
> PythonOption wsgi.application
cherrypy._cpwsgi::wsgiApp
>
> Options Indexes
> Order allow,deny
> Allow from all
> </Directory>
>
> </VirtualHost>
>
> Something is wrong, bacause helloworld not run and in
log is:
>
> [Mon Apr 30 16:57:26 2007] [error] [client
10.10.10.10]
> PythonFixupHandler cherrypy.cherry::startup: Traceback
(most recent
> call last):, referer:http://yoyo.asinus.org/
> [Mon Apr 30 16:57:26 2007] [error] [client
10.10.10.10]
> PythonFixupHandler cherrypy.cherry::startup: File
"/usr/local/lib/
> python2.4/site-packages/mod_python/apache.py",
line 287, in
> HandlerDispatchn log=debug), referer:http://yoyo.asinus.org/
> [Mon Apr 30 16:57:26 2007] [error] [client
10.10.10.10]
> PythonFixupHandler cherrypy.cherry::startup: File
"/usr/local/lib/
> python2.4/site-packages/mod_python/apache.py",
line 464, in
> import_modulen module = imp.load_module(mname, f,
p, d), referer:http://yoyo.asinus.org/
> [Mon Apr 30 16:57:26 2007] [error] [client
10.10.10.10]
> PythonFixupHandler cherrypy.cherry::startup: File
"/home/stibi/www/
> yoyo.asinus.org/cherrypy.py", line 9, in ?n
> cherrypy.server.start(initOnly = True, serverClass =
None), referer:http://yoyo.asinus.org/
> [Mon Apr 30 16:57:26 2007] [error] [client
10.10.10.10]
> PythonFixupHandler cherrypy.cherry::startup:
AttributeError: 'module'
> object has no attribute 'server', referer:http://yoyo.asinus.org/
>
> Pleas, any idea ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Problems with cherrypy and
mod_python |
  United States |
2007-05-01 03:10:42 |
Thanks, stupid mistake :(
But, i have next error ...
PythonHandler modpython_gateway::handler: AttributeError:
module '/
home/stibi/www/yoyo.asinus.org/stibi.py' contains no
'startapp',
referer: http://yoyo.asinus.org/
Settings in httpd.conf is wrong ? Or in my .py file missing
methods ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Problems with cherrypy and
mod_python |
  United States |
2007-05-01 03:53:52 |
I am happy
Really missing start method ...
Now is all ok ...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
[1-4]
|
|