Python version and Apache mod_python mismatching version

2020-04-03 Thread frank . scarpa
Hello, I have a Centos7 web server with python 2.7 installed and I want Apache to serve python scripts so I figure I have to install mod_python: i know that this module is deprecated, but I need it only for internal pourposes. Is the mod_python version (which is 3.5 with Python 3 support

Re: mod_python compilation error in VS 2008 for py2.7.1

2016-06-16 Thread asimkostas
Τη Τρίτη, 14 Ιουνίου 2016 - 3:36:23 μ.μ. UTC+3, ο χρήστης Pavel S έγραψε: > Have you considered to use rather WSGI-based solution? (for Apache Httpd is > mod_wsgi). Mod_python is totally obsolete. Regarding my blog post, i would like to inform you that someone helped me to overcome this

mod_python compilation error

2016-06-16 Thread asimkon
Regarding my blog post <http://code.activestate.com/lists/python-list/704521/>, i would like to inform you that someone helped me to overcome this error but i got another one that i do not know it's meaning: error: [Errno 22] invalid mode ('wb') or filename: "dist\\mo

Re: mod_python compilation error in VS 2008 for py2.7.1

2016-06-14 Thread Pavel S
Have you considered to use rather WSGI-based solution? (for Apache Httpd is mod_wsgi). Mod_python is totally obsolete. -- https://mail.python.org/mailman/listinfo/python-list

mod_python compilation error in VS 2008 for py2.7.1

2016-06-14 Thread asimkon
I would like to ask you a technical question regarding python module compilation for python 2.7.1. I want to compile mod_python <https://app.box.com/s/orsffo3t4g6h9ftkq6p1>library for Apache 2.2 and py2.7 <https://www.python.org/downloads/> on Win32 in order to use it for psp - py sc

RE: Question regarding mod_python and a script for web.

2012-12-21 Thread John Pennington
Hi Ion thanks a bunch, for responding. The problem we seem to be running into is that When we change the forms to a post instead of a get I cannot pick up the post values using cgi: page_info = cgi.FieldStorage() is this a limitation of mod_python? Thanks. john Date: Thu, 20 Dec 2012 17:59

Re: Question regarding mod_python and a script for web.

2012-12-20 Thread ian douglas
Short answer: Use the POST method on the form instead of GET. Depending how you process the form you might need to make a few changes to the script that answers the request. -- http://mail.python.org/mailman/listinfo/python-list

Question regarding mod_python and a script for web.

2012-12-20 Thread John Pennington
amp;lname=fenn&mi=ted&ssn=123456789&ssn_confirm=123456789&phone=412-658-3178&email=jojo%40uc.com&alt_email=jojo12%40yahoo.com&lsacid=&grad_date=May-2013&program=JD&step=2 Which is bad as we are are going to be collecting data like Social Security numbers. We

Re: Errors installing mod_python with apache

2011-12-27 Thread Mark Seger
I did try yum and got this: [root@rhel53 tmp]# yum install mod_python Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Install Process Parsing package install arguments No package mod_python available. Nothing to do after

Re: Errors installing mod_python with apache

2011-12-27 Thread Rami Chowdhury
On Tue, Dec 27, 2011 at 13:32, Mark Seger wrote: > I've tried this on both RHEL5.5 and RHEL 6.0, using the default apache that > comes with the environment and itself isn't configured with mod_python. > > The first thing I noticed when mod_python wouldn't install was t

Errors installing mod_python with apache

2011-12-27 Thread Mark Seger
I've tried this on both RHEL5.5 and RHEL 6.0, using the default apache that comes with the environment and itself isn't configured with mod_python. The first thing I noticed when mod_python wouldn't install was that apsx wasn't installed either. After a lot of pain, I di

Re: Wing in mod_python vs wsgi?

2011-02-08 Thread Doug Epling
I don't know about your IDE, I am using the default IDLE just because it is handy. But I have made the switch from mod_python. It was a good idea, but mod_wsgi is a better idea. And as you know, mod_python is no longer supported. I am running Apache with mod_wsgi in a windows 7 enviro

Wing in mod_python vs wsgi?

2011-02-08 Thread Tom Stambaugh
I'm still using mod_python to deploy my framework for production (CentOS running Python 2.5.5, Apache 2.2.3, mod_python 3.3.1). I'm acutely aware of how elderly mod_python is, and I've had some frustrations using Wing to debug inside it -- at least its possible, which is not true

Re: mod_python load cx_Oracle error

2010-07-19 Thread Mladen Gogala
On Mon, 19 Jul 2010 09:12:20 -0700, li wang wrote: > It's quite weird when I import cx_Oracle in python interactive shell, it > works perfectly. > but when I import cx_Oracle in a *,py script, handled by > mod_python.publisher, it keep reportint : > > ImportError: libclntsh.so.10.1: cannot open s

mod_python load cx_Oracle error

2010-07-19 Thread li wang
It's quite weird when I import cx_Oracle in python interactive shell, it works perfectly. but when I import cx_Oracle in a *,py script, handled by mod_python.publisher, it keep reportint : ImportError: libclntsh.so.10.1: cannot open shared object file: No such file or directory Can I anyone have

Re: mod_python and css

2010-06-24 Thread John Nagle
10 09:10 PM, Bradley Hintze wrote: Hi all, about your question, no idea. the mod_python mailing list is pretty dead so I thought I'd try asking my question here. It comes as no surprise to me that the mod_python mailing list is dead: nobody uses mod_python anymore. For all I know, it might b

Re: mod_python and css

2010-06-24 Thread Bradley Hintze
ea. > >> >> the mod_python mailing list is pretty dead so I thought I'd try asking >> my question here. > > It comes as no surprise to me that the mod_python mailing list is dead: > nobody uses mod_python anymore. For all I know, it might be broken, and > the API was

Re: mod_python and css

2010-06-24 Thread Thomas Jollans
On 06/24/2010 09:10 PM, Bradley Hintze wrote: > Hi all, about your question, no idea. > > the mod_python mailing list is pretty dead so I thought I'd try asking > my question here. It comes as no surprise to me that the mod_python mailing list is dead: nobody uses mod_python a

mod_python and css

2010-06-24 Thread Bradley Hintze
Hi all, the mod_python mailing list is pretty dead so I thought I'd try asking my question here. I am using mod_python and am having trouble with my .py scripts that output HTML. the HTML comes out alright but my style sheets are not being rendered. I am sure that this has to do withe

Re: Configuring apache to execute python scripts using mod_python handler

2010-02-12 Thread Kev Dwyer
On Fri, 12 Feb 2010 13:08:59 -0400, Juan Carlos Rodriguez wrote: Hello Juan Carlos, You're better off raising this on the mod_python list, however... Python is looking for a module called mptest, and cannot find it. Have you created the mptest.py module? (It should contain the handler fun

Configuring apache to execute python scripts using mod_python handler

2010-02-12 Thread Juan Carlos Rodriguez
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added AddHandler mod_python .py PythonHandler mptest PythonDebug On 2. Then I added the line "LoadModule python_module mo

Re: CGI vs mod_python

2009-11-12 Thread Victor Subervi
On Wed, Nov 11, 2009 at 3:32 PM, Dave Angel wrote: > > > Victor Subervi wrote: > >> >> >> The problem was not CGI. It turned out to be line-endings being mangled by >> Windoze and __invisible __ in my unix editor. Lovely. >> Thanks anyway, >> V >> >> >> > That's twice you've blamed Windows for t

Re: CGI vs mod_python

2009-11-11 Thread Dave Angel
Victor Subervi wrote: The problem was not CGI. It turned out to be line-endings being mangled by Windoze and __invisible __ in my unix editor. Lovely. Thanks anyway, V That's twice you've blamed Windows for the line-ending problem. Windows didn't create those crlf endings, your text edit

Re: CGI vs mod_python

2009-11-11 Thread Victor Subervi
On Tue, Nov 10, 2009 at 6:12 PM, John Nagle wrote: > sstein...@gmail.com wrote: > >> >> On Nov 9, 2009, at 10:18 AM, Victor Subervi wrote: >> >> Yes, obviously. But if CGI is enabled, it should work anyway, should it >>> not? >>> >> >> Depends on what "CGI is enabled" means. >> >> Usually, web s

Re: CGI vs mod_python

2009-11-10 Thread John Nagle
sstein...@gmail.com wrote: On Nov 9, 2009, at 10:18 AM, Victor Subervi wrote: Yes, obviously. But if CGI is enabled, it should work anyway, should it not? Depends on what "CGI is enabled" means. Usually, web servers are not set to just handle cgi scripts from anywhere, but only from specif

Re: CGI vs mod_python

2009-11-09 Thread Victor Subervi
Uuuuh. Thanks! V On Mon, Nov 9, 2009 at 10:45 AM, sstein...@gmail.com wrote: > On Nov 9, 2009, at 10:41 AM, Victor Subervi wrote: > > On Mon, Nov 9, 2009 at 10:29 AM, sstein...@gmail.com > wrote: > >> >> On Nov 9, 2009, at 10:18 AM, Victor Subervi wrote: >> >> Yes, obviously. But if CGI is enab

Re: CGI vs mod_python

2009-11-09 Thread sstein...@gmail.com
On Nov 9, 2009, at 10:18 AM, Victor Subervi wrote: Yes, obviously. But if CGI is enabled, it should work anyway, should it not? Depends on what "CGI is enabled" means. Usually, web servers are not set to just handle cgi scripts from anywhere, but only from specific file system locations.

Re: CGI vs mod_python

2009-11-09 Thread Victor Subervi
etting my >> scripts to work because they're written with cgi calls as opposed to >> mod_python. Is there a basis for their complaint? These pages serve fine on >> another server. >> > > Does the server they're working fine on use CGI? Yes, they're different. > > S > > -- http://mail.python.org/mailman/listinfo/python-list

Re: CGI vs mod_python

2009-11-09 Thread sstein...@gmail.com
On Nov 9, 2009, at 9:32 AM, Victor Subervi wrote: Hi; I've been told by a server farm that they're having trouble getting my scripts to work because they're written with cgi calls as opposed to mod_python. Is there a basis for their complaint? These pages serve fine on

CGI vs mod_python

2009-11-09 Thread Victor Subervi
Hi; I've been told by a server farm that they're having trouble getting my scripts to work because they're written with cgi calls as opposed to mod_python. Is there a basis for their complaint? These pages serve fine on another server. TIA, Victor -- http://mail.python.org/m

Re: mod_python: Permission denied

2009-08-30 Thread David
Thanks Graham. Let me contact Admin. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python: Permission denied

2009-08-25 Thread David
On Aug 25, 4:00 pm, David wrote: > Thanks Graham. Let me contact Admin. Hi Graham: you are right. it's fixed now. Thanks again. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python: Permission denied

2009-08-25 Thread David
disclaimer: i did not write this code. i copied it and inserted into my cgi code. it is from http://webpython.codepoint.net/mod_python_publisher_big_file_upload. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python: Permission denied

2009-08-25 Thread David
A little more info: "Defrosting.rtf" is a file that I wanted to upload. This file was supposed to upload to folder '/var/www/keyword- query/files/'. My code runs in root. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python: Permission denied

2009-08-25 Thread Graham Dumpleton
On Aug 26, 8:43 am, David wrote: > Hello, > > I googled online however I did not find a clue my question. So I post > it here. > > I created a mod_python CGI to upload a file and saves it in folder "/ > var/www/keyword-query/files/".  My code runs in root. >

mod_python: Permission denied

2009-08-25 Thread David
Hello, I googled online however I did not find a clue my question. So I post it here. I created a mod_python CGI to upload a file and saves it in folder "/ var/www/keyword-query/files/". My code runs in root. fileitem = req.form['file'] # Test if the fil

Re: mod_python and xml.dom.minidom

2009-05-15 Thread dpapathanasiou
> Were you getting this issue with xml.dom showing on first request all > the time, or only occasionally occurring? If the latter, were you > running things in a multithreaded configuration and was the server > being loaded with lots of concurrent requests? It was the former. > For your particul

Re: mod_python and xml.dom.minidom

2009-05-13 Thread Graham Dumpleton
tribute_name): >     item_doc = minidom.parseString(item) >     ... > > That version worked under the python interpreter, but failed under > both mod_python andmod_wsgiapache modules with an error ("Parent > module 'xml.dom' not loaded"). > > I found

Re: mod_python and xml.dom.minidom

2009-05-11 Thread dpapathanasiou
orked under the python interpreter, but failed under both mod_python and mod_wsgi apache modules with an error ("Parent module 'xml.dom' not loaded"). I found that changing the import statement and the minidom reference within the function resolved the problem. I.e., after rewrit

Re: mod_python and xml.dom.minidom

2009-05-11 Thread dpapathanasiou
> His problem is therefore likely to be something completely different. You are correct. As per the earlier advice, I switched from mod_python to mod_wsgi but I still see the same error: [Mon May 11 10:30:21 2009] [notice] Apache/2.2.11 (Unix) mod_wsgi/2.4 Python/2.5.2 configured -- resum

Re: mod_python and xml.dom.minidom

2009-05-10 Thread Graham Dumpleton
On May 10, 3:40 am, Paul Boddie wrote: > On 9 Mai, 01:36, dpapathanasiou wrote: > > > > > Apache's configure utility (I'm using httpd version 2.2.11) doesn't > > explicitly describe an expat library option. > > > Also, if libexpat is version 1.95.2, wouldn't I have to get version > > 2.0 to be co

Re: mod_python and xml.dom.minidom

2009-05-09 Thread Stephen Hansen
> > My only advice is, don't use mod_python. The project is dead, you > should use mod_wsgi instead: http://code.google.com/p/modwsgi/ > To echo what Daniel said, mod_wsgi is really the way to go. It might still not work in "embedded" mode where like mod_python the P

Re: mod_python and xml.dom.minidom

2009-05-09 Thread Paul Boddie
On 9 Mai, 01:36, dpapathanasiou wrote: > > Apache's configure utility (I'm using httpd version 2.2.11) doesn't > explicitly describe an expat library option. > > Also, if libexpat is version 1.95.2, wouldn't I have to get version > 2.0 to be compatible with pyexpat? The aim would be to persuade A

Re: mod_python and xml.dom.minidom

2009-05-08 Thread Stefan Behnel
Daniel Fetchinson wrote: > On 5/8/09, dpapathanasiou wrote: >> I wrote a python script called xml_utils.py which parses xml using >> minidom. > > My only advice is, don't use mod_python. The project is dead, you > should use mod_wsgi instead: http://code.google.com/

Re: mod_python and xml.dom.minidom

2009-05-08 Thread Daniel Fetchinson
On 5/8/09, dpapathanasiou wrote: > I wrote a python script called xml_utils.py which parses xml using > minidom. > > It works when it's run on its own, but when I try to import it and run > it inside a mod_python handler, I get this error: > > File "../co

mod_python and xml.dom.minidom

2009-05-08 Thread dpapathanasiou
I wrote a python script called xml_utils.py which parses xml using minidom. It works when it's run on its own, but when I try to import it and run it inside a mod_python handler, I get this error: File "../common/xml_utils.py", line 80, in parse_item_attribute File "/u

Re: mod_python form upload: permission denied sometimes...

2009-04-26 Thread Lawrence D'Oliveiro
In message <0fc15bee-003a-45ca- b6b6-21ed0645b...@q2g2000vbr.googlegroups.com>, psaff...@googlemail.com wrote: > I have a mod_python application that takes a POST file upload from a > form. It works fine from my machine, other machines in my office and > my home machine. It does n

mod_python form upload: permission denied sometimes...

2009-04-24 Thread psaff...@googlemail.com
I have a mod_python application that takes a POST file upload from a form. It works fine from my machine, other machines in my office and my home machine. It does not work from my bosses machine in a different city - he gets "You don't have permission to access this on this server"

[mod_python] Knowing the encoding of the URI

2009-03-03 Thread Daniel Chiaramello
Hello everybody. I am using mod_python, and I am confronted with a problem I don't know how to solve in an elegant way... The problem is that I don't know what is the encoding of the strings... My script runs in China, and I receive requests coded in both "utf-8" an

Re: Mod_python, jsonrpc and sessions

2009-01-14 Thread lkcl
On Jan 14, 4:47 pm, p3dda.a...@googlemail.com wrote: > Hi, > > I've got a python web-application being served by apache via > mod_python, in which the users sessions are tracked via the mod_python > Session module. > Some of websites generated contain a java-script fu

Mod_python, jsonrpc and sessions

2009-01-14 Thread p3dda . adam
Hi, I've got a python web-application being served by apache via mod_python, in which the users sessions are tracked via the mod_python Session module. Some of websites generated contain a java-script function which starts a jsonrpc call to the same server and gets further data or s

Mod_python, jsonrpc and sessions

2009-01-14 Thread p3dda . adam
Hi, I've got a python web-application being served by apache via mod_python, in which the users sessions are tracked via the mod_python Session module. Some of websites generated contain a java-script function which starts a jsonrpc call to the same server and gets further data or s

Re: mod_python: delay in files changing after alteration

2009-01-12 Thread psaff...@googlemail.com
On 6 Jan, 23:31, Graham Dumpleton wrote: > Thus, any changes to modules/packages installed on sys.path require a > full restart of Apache to ensure they are loaded by all Apache child > worker processes. > That will be it. I'm pulling in some libraries of my own from elsewhere, which are still b

Re: mod_python: delay in files changing after alteration

2009-01-06 Thread Graham Dumpleton
On Jan 6, 2:39 am, "psaff...@googlemail.com" wrote: > Maybe this is an apache question, in which case apologies. > > I am runningmod_python3.3.1-3 on apache 2.2.9-7. It works fine, but > I find that when I alter a source file during development, it > sometimes takes 5 seconds or so for the changes

Re: mod_python: delay in files changing after alteration

2009-01-05 Thread Stephen Chapman
I have never noticed any such delay. After making a change I just hit F5 on my browser and its fine. Maybe its a browser issue On 1/5/09, psaff...@googlemail.com wrote: > Maybe this is an apache question, in which case apologies. > > I am running mod_python 3.3.1-3 on apache 2.2.9-7.

mod_python: delay in files changing after alteration

2009-01-05 Thread psaff...@googlemail.com
Maybe this is an apache question, in which case apologies. I am running mod_python 3.3.1-3 on apache 2.2.9-7. It works fine, but I find that when I alter a source file during development, it sometimes takes 5 seconds or so for the changes to be seen. This might sound trivial, but when debugging

Apache/mod_python: Registering a request handler dynamically

2008-12-28 Thread Samuel
Hi, Is there a way to dynamically overwrite the request handler from within mod_python scripts? Something along those lines: --- from mod_python import apache def myhandler(request): request.content_type = 'text/plain' request.write(&#

Re: mod_python resources

2008-12-20 Thread Graham Dumpleton
On Dec 20, 2:47 pm, "Anjanesh Lekshminarayanan" wrote: > Same requirement here. > But isnt there any mod_python for Python 3.0 ? > Or do we need to build it from source ourselves ? > > I was hoping there would bemod_wsgibinaries for Python 3.0. At this stage it looks

Re: mod_python resources

2008-12-19 Thread Anjanesh Lekshminarayanan
Same requirement here. But isnt there any mod_python for Python 3.0 ? Or do we need to build it from source ourselves ? I was hoping there would be mod_wsgi binaries for Python 3.0. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python resources

2008-12-19 Thread Daniel Fetchinson
> Here's my problem (it's a conceptual one). Coming from the world of > mod_php, each file can represent a page with no intervention. I was > not able to achieve the same with mod_python when I tried, and for > that matter, couldn't put the pieces together in a usable w

Re: mod_python resources

2008-12-19 Thread tmallen
Here's my problem (it's a conceptual one). Coming from the world of mod_php, each file can represent a page with no intervention. I was not able to achieve the same with mod_python when I tried, and for that matter, couldn't put the pieces together in a usable way. Let me sta

Re: mod_python resources

2008-12-17 Thread Graham Dumpleton
On Dec 17, 11:10 am, Дамјан Георгиевски wrote: > > I'm trying again because I'm stubborn. Maybe the fourth time will be > > the charm... > > > Are there any good tutorials out there for setting up Apache with > > mod_python? > > mod_python is d

Re: mod_python resources

2008-12-16 Thread Дамјан Георгиевски
> I'm trying again because I'm stubborn. Maybe the fourth time will be > the charm... > > Are there any good tutorials out there for setting up Apache with > mod_python? mod_python is depreceated, nobody uses it. use mod_wsgi http://www.modwsgi.org/ -- дамјан ( htt

Re: mod_python resources

2008-12-16 Thread Aleksandar Radulovic
On Tue, Dec 16, 2008 at 8:22 PM, tmallen wrote: > Are there any good tutorials out there for setting up Apache with > mod_python? Apart from the (clear and concise) information in the mod_python documentation? Starts here: http://www.modpython.org/live/current/doc-html/installatio

mod_python resources

2008-12-16 Thread tmallen
I'm trying again because I'm stubborn. Maybe the fourth time will be the charm... Are there any good tutorials out there for setting up Apache with mod_python? Thanks, Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python and files directory

2008-12-14 Thread mete
On Monday 08 December 2008 10:31:28 Gabriel Genellina wrote: > os.path.dirname(os.path.abspath(__file__)) thanks a lot it's working. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python and files directory

2008-12-08 Thread Gabriel Genellina
En Sat, 06 Dec 2008 09:26:40 -0200, mete <[EMAIL PROTECTED]> escribió: but i want to take it somewhere else...i want to it work some other path in other system. os.path.dirname(os.path.abspath(__file__)) returns the directory where the current file resides. Execute it early in your code. --

Re: mod_python and files directory

2008-12-08 Thread Gabriel Genellina
En Sat, 06 Dec 2008 09:26:40 -0200, mete <[EMAIL PROTECTED]> escribió: but i want to take it somewhere else...i want to it work some other path in other system. os.path.dirname(os.path.abspath(__file__)) returns the directory where the current file resides. Execute it early in your code. --

Re: mod_python and files directory

2008-12-06 Thread mete
but i want to take it somewhere else...i want to it work some other path in other system. On Saturday 06 December 2008 12:34:07 Graham Dumpleton wrote: > On Dec 6, 1:52 am, "mete bilgin" <[EMAIL PROTECTED]> wrote: > > Hi all, > > I try to make a websevice with

Re: mod_python and files directory

2008-12-06 Thread Graham Dumpleton
On Dec 6, 1:52 am, "mete bilgin" <[EMAIL PROTECTED]> wrote: > Hi all, > I try to make a websevice with python and mod_python. İ try to make a po > files, but i can not reach them in the page. When i ask the page like " > os.listdir('.') " but i w

mod_python and files directory

2008-12-05 Thread mete bilgin
Hi all, I try to make a websevice with python and mod_python. İ try to make a po files, but i can not reach them in the page. When i ask the page like " os.listdir('.') " but i want to get files directory, what can i do? sorry for my bad describe of that. Thanks a lot... -- ht

Re: Apache & mod_python: I don't receive anything with POST method

2008-11-27 Thread tengounplanb
ake possible the users of our site upload > > > files. > > > > > > >     > > >     > > >     > > >         > > >         > > >     > > >     > > > > > > > The "upload.py" looks like this: > > &

Re: Apache & mod_python: I don't receive anything with POST method

2008-11-27 Thread tengounplanb
the users of our site upload > > files. > > > > >     > >     > >     > >         > >         > >     > >     > > > > > The "upload.py" looks like this: > > > from mod_python import apache, util; > > > def index(req): > >     form = util.FieldStorage(req, keep_bl

Re: Apache & mod_python: I don't receive anything with POST method

2008-11-26 Thread Graham Dumpleton
On Nov 27, 12:21 am, [EMAIL PROTECTED] wrote: > Hi, > > I'm using a simple form to make possible the users of our site upload > files. > > >     >     >     >         >         >     >     > > > The "upload.py" looks like t

Apache & mod_python: I don't receive anything with POST method

2008-11-26 Thread tengounplanb
Hi, I'm using a simple form to make possible the users of our site upload files. The "upload.py" looks like this: from mod_python import apache, util; def index(req): form = util.FieldStorage(req, keep_blank_values=1) try:

Re: mod_python and file not found

2008-11-10 Thread Steve Holden
ow,deny > allow from all > AddHandler mod_python .py > PythonHandler mod_python.publisher > PythonDebug On > > > The results are that if the script writes something on the server it works > fine but if the script contains only html like this: > print "Content-typ

mod_python and file not found

2008-11-10 Thread Simo D
Hello, I'm trying to configure the apache to handle the python scripts. My platform is a CentOs server. I wrote these directives in the conf.d/python.conf: Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all AddHandler mod_pytho

Re: Mod_python permission denied

2008-11-07 Thread Simo D
Ok, solved: apache is unable to follow relative paths from the script. Putting ol absolute paths it's ok! Simo D wrote: > > Hi, I'm using a script.py to write a file in a dir on the server. > Mod_python work but i get: > Mod_python error: "PythonHandler mod_pytho

Mod_python permission denied

2008-11-07 Thread Simo D
Hi, I'm using a script.py to write a file in a dir on the server. Mod_python work but i get: Mod_python error: "PythonHandler mod_python.publisher" Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in H

Re: mod_python and updated files

2008-08-18 Thread Daniel Klein
On Mon, 18 Aug 2008 09:16:13 -0700 (PDT), Aaron Scott <[EMAIL PROTECTED]> wrote: >I have mod_python running on my server, but when I chance a Python >file on the server, Apache needs to be restarted in order to have the >changes take effect. I assume this is so mod_python can ru

mod_python and updated files

2008-08-18 Thread Aaron Scott
I have mod_python running on my server, but when I chance a Python file on the server, Apache needs to be restarted in order to have the changes take effect. I assume this is so mod_python can run persistently, but it's becoming quite a headache for development. Is there a way to turn of

Re: Getting mod_python to Work

2008-08-05 Thread jpuopolo
On Aug 5, 8:44 am, jpuopolo <[EMAIL PROTECTED]> wrote: > Hi, all... > > I am hoping that someone can help me with the magic incantation to get > mod_python working on my local machine. > > Set up: Apache 2.2.9, mod_python 3.3.1 on Windows Vista (yes, pity > me). > >

Getting mod_python to Work

2008-08-05 Thread jpuopolo
Hi, all... I am hoping that someone can help me with the magic incantation to get mod_python working on my local machine. Set up: Apache 2.2.9, mod_python 3.3.1 on Windows Vista (yes, pity me). I've gotten the basic mptest.py handler to work with no problem. I am now trying to us

Re: Error importing modules with mod_python

2008-07-21 Thread Graham Dumpleton
ectory:      'C:/htdocs/python/' > Filename:       'C:/htdocs/python/index.py' > PathInfo:       '' > Phase:          'PythonHandler' > Handler:        'index' > > Traceback (most recent call last): > >   File "C:\Python25\lib

Re: Error importing modules with mod_python

2008-07-21 Thread Diez B. Roggisch
Aaron Scott wrote: > I've installed mod_python, and everything seems to be working, but it > fails when I try to import another file into the file that's actually > producing the output. I have these lines at the top of index.py: > > from mod_python import apac

Error importing modules with mod_python

2008-07-21 Thread Aaron Scott
I've installed mod_python, and everything seems to be working, but it fails when I try to import another file into the file that's actually producing the output. I have these lines at the top of index.py: from mod_python import apache from storylab import * ... and in the direc

Re: Problem with MySQLdb and mod_python

2008-07-18 Thread Graham Dumpleton
On Jul 18, 3:28 pm, John Nagle <[EMAIL PROTECTED]> wrote: > Cyril Bazin wrote: > > Thanks for your reply > > > The apache log contains lines like : > > > [Tue Jul 15 23:31:01 2008] [notice]mod_python(pid=11836, > > interpreter='www.toto.fr'):Importi

Re: Problem with MySQLdb and mod_python

2008-07-17 Thread John Nagle
Cyril Bazin wrote: Thanks for your reply The apache log contains lines like : [Tue Jul 15 23:31:01 2008] [notice] mod_python (pid=11836, interpreter='www.toto.fr'): Importing module '/usr/local/apache2/htdocs/intranet/courrier/test.py' [Tue Jul 15 23:31:02 2008] [notice]

Re: Problem with MySQLdb and mod_python

2008-07-17 Thread Cyril Bazin
Thanks for your reply The apache log contains lines like : [Tue Jul 15 23:31:01 2008] [notice] mod_python (pid=11836, interpreter='www.toto.fr'): Importing module '/usr/local/apache2/htdocs/intranet/courrier/test.py' [Tue Jul 15 23:31:02 2008] [notice] child pid 11836 exit

Re: Problem with MySQLdb and mod_python

2008-07-16 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Cyril Bazin wrote: > But it seems, after many tests, that the script stops at the > instruction : "c.execute(requete)" What's the error message? This should be in Apache's error_log file. -- http://mail.python.org/mailman/listinfo/python-list

Problem with MySQLdb and mod_python

2008-07-15 Thread Cyril Bazin
Hi, I installed an apache server with mod_python. I have got a problem with the mysql connection of my python script. In fact I tried this file : - import os os.environ["PYTHON_EGG_CACHE"] = "/tmp" import MySQLdb from mod_python import

mod_wsgi vs mod_python interfaces

2008-06-21 Thread Pau Freixes
Hi list, I remember red into this list that mod_wsgi is more faster than mod_python. Why ? WSIG it's only a true specification for deploy and performance Python applications running into web servers, mod python it's like mod wsgi but it's only a not official specification bet

mod_python installer fails

2008-06-05 Thread RossGK
I've been running python 2.5 for a while on WinXP, working fine. I code and compile in PyDev/Eclipse. I wanted to start playing with Django, but when I go to install mod_python for Apache 2.2 I get the error: python version 2.5 required, which was not found in the registry fro

mod_python + apache at windows

2008-05-30 Thread João Mello
Hi... Ane one can give me an example to install mod_python in apache at windows? Hug, Mello. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python

2008-04-14 Thread Daniel Fetchinson
> I want to rewrite a request url under apache2.0 based on its special > header, like, the "Accept-Encoding:" one. > > With C I think I can do it, but since I get begin with python,so I ask > that can I do it under mod_python? what's the guide? The guide is this: htt

mod_python

2008-04-13 Thread Penny Y.
Hello, I want to rewrite a request url under apache2.0 based on its special header, like, the "Accept-Encoding:" one. With C I think I can do it, but since I get begin with python,so I ask that can I do it under mod_python? what's the guide? Thanks. -- http://mail.python.org/m

Re: mod_python and storing binary form data

2008-04-10 Thread Gabriel Genellina
En Thu, 10 Apr 2008 15:43:23 -0300, <[EMAIL PROTECTED]> escribió: > Hi, I have a little python webservice that I created, and in one of > the methods I need to store some binary data that was "posted"... I > want to do something like this, but it doesn't work. > > username = form.get("username", "

mod_python and storing binary form data

2008-04-10 Thread canistel
Hi, I have a little python webservice that I created, and in one of the methods I need to store some binary data that was "posted"... I want to do something like this, but it doesn't work. username = form.get("username", "") message = form.get("message", "") attachment = form.get("attachment", Non

Re: Problem with mod_python/3.3.1 and apache

2008-03-31 Thread Graham Dumpleton
On Apr 1, 8:03 am, NccWarp9 <[EMAIL PROTECTED]> wrote: > Hello, > > im using Apache HTTPD 2.2.8 with mod_python/3.3.1 Python/2.4.3 on > Windows and having truble starting pythone, any help would be > appreciated > . > Im getting this error: > > [Mon Mar 31 23:53

Problem with mod_python/3.3.1 and apache

2008-03-31 Thread NccWarp9
Hello, im using Apache HTTPD 2.2.8 with mod_python/3.3.1 Python/2.4.3 on Windows and having truble starting pythone, any help would be appreciated . Im getting this error: [Mon Mar 31 23:53:03 2008] [error] make_obcallback: could not import mod_python.apache.\n 'import site' failed;

  1   2   3   4   5   6   >