Re: Web Interface Recommendations

2008-01-29 Thread Graham Dumpleton
On Jan 30, 12:00 pm, PurpleServerMonkey <[EMAIL PROTECTED]> wrote: > Looking for suggestions on the best framework to use for an > applications web interface. > > The user interface doesn't need immediate feedback and will be cross > platform so a web interface is a good solution especially since i

Re: Multiple interpreters retaining huge amounts of memory

2008-02-02 Thread Graham Dumpleton
On Feb 2, 12:34 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Is there some way to track references per interpreter, or to get the > > memory allocator to set up seperate arenas per interpreter so that it > > can remove all allocated memory when the interpreter exits? > > No. The multi-inter

Re: Multiple interpreters retaining huge amounts of memory

2008-02-03 Thread Graham Dumpleton
Nice to see that your comments do come from some understanding of the issues. Been number of times in the past when people have gone off saying things about multiple interpreters, didn't really know what they were talking about and were just echoing what some one else had said. Some of the things b

Re: Multiple interpreters retaining huge amounts of memory

2008-02-03 Thread Graham Dumpleton
On Feb 4, 7:13 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > You might also read section 'Application Environment Variables' of > > that document. This talks about the problem of leakage of environment > > variables between sub interpreters. There probably isn't much that one > > can do abou

Re: Multiple interpreters retaining huge amounts of memory

2008-02-03 Thread Graham Dumpleton
On Feb 4, 10:03 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > >>> It means that > >>> environment variable separation for changes made unique to a sub > >>> interpreter is impossible. > >> That's not really true. You can't use os.environ for that, yes. > > > Which bit isn't really true? > > Th

Re: apache/mod_wsgi daemon mode

2008-02-03 Thread Graham Dumpleton
On Feb 4, 10:33 am, Scott SA <[EMAIL PROTECTED]> wrote: > On 2/3/08, Brian Smith ([EMAIL PROTECTED]) wrote: > >Scott SA wrote: > >> I am trying to configure mod_wsgi to run in daemon mode with > >> Apache. I can easily get it to run 'normally' under Apache > >> but I obtain permission errors _or_ p

Re: Problem with Image: Opening a file

2008-02-04 Thread Graham Dumpleton
On Feb 4, 6:51 pm, mcl <[EMAIL PROTECTED]> wrote: > I am obviously doing something stupid or not understanding the > difference between HTML file references and python script file > references. > > I am trying to create a thumbnail of an existing .jpg file. It is in > the directory 'temp', which is

Re: problem with mod_python

2008-02-17 Thread Graham Dumpleton
On Feb 17, 3:29 pm, Pradnyesh Sawant <[EMAIL PROTECTED]> wrote: > Hello, > I have a small program which does 'import hashlib'. This program runs fine > with python2.5. But when I try running the same program through mod_python, > I get the error: 'ImportError: No module named hashlib' in the apache

Re: problem with mod_python

2008-02-19 Thread Graham Dumpleton
On Feb 20, 6:04 am, Joshua Kugler <[EMAIL PROTECTED]> wrote: > Pradnyesh Sawant wrote: > > Hello, > > I have a small program which does 'import hashlib'. This program runs fine > > with python2.5. But when I try running the same program through > > mod_python, I get the error: 'ImportError: No modu

Re: How to import custom python file in python server page (psp) ?

2008-03-14 Thread Graham Dumpleton
On Mar 15, 6:44 am, Joshua Kugler <[EMAIL PROTECTED]> wrote: > James Yu wrote: > > Hi folks, > > > I prepared a python script for dynamically get the absolute paths of the > > files in certain folder. > > Then I tried to invoke that function from my web server in a .psp file > > like this: > > >  

Re: Apache binary error?

2008-03-17 Thread Graham Dumpleton
On Mar 18, 4:43 am, Sean Allen <[EMAIL PROTECTED]> wrote: > On Mar 17, 2008, at 10:55 AM, Michael Wieher wrote: > > > have simple webpage running > > > apache,mod_python > > > the error is binary > > ...binary as in "every other" time I load the page, Firefox keeps   > > telling me I'm download

Re: Huge problem gettng MySQLdb to work on my mac mini running Macosx 10.5 Leopard

2008-03-18 Thread Graham Dumpleton
On Mar 19, 9:47 am, geert <[EMAIL PROTECTED]> wrote: > On Mar 18, 6:56 pm, geert <[EMAIL PROTECTED]> wrote: > > > > > On Mar 14, 1:15 pm, [EMAIL PROTECTED] wrote: > > > > look > > > athttp://groups.google.be/group/comp.lang.python/browse_thread/thread/d... > > > > There is a macpython list that yo

Re: Huge problem gettng MySQLdb to work on my mac mini running Macosx 10.5 Leopard

2008-03-19 Thread Graham Dumpleton
On Mar 19, 9:30 pm, geert <[EMAIL PROTECTED]> wrote: > On Mar 19, 2:26 am, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > > > On Mar 19, 9:47 am, geert <[EMAIL PROTECTED]> wrote: > > > > On Mar 18, 6:56 pm, geert <[EMAIL PROTECTED]> wro

Re: Beta testers needed for a high performance Python application server

2008-03-25 Thread Graham Dumpleton
On Mar 26, 7:31 am, Minor Gordon <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm looking for beta testers for a high performance, event-driven Python > application server I've developed. > > About the server: the front end and other speed-critical parts of the > server are written in portable, mult

Re: Beta testers needed for a high performance Python application server

2008-03-25 Thread Graham Dumpleton
On Mar 26, 11:00 am, Damjan <[EMAIL PROTECTED]> wrote: > >> I'm looking for beta testers for a high performance, event-driven Python > >> application server I've developed. > > >> About the server: the front end and other speed-critical parts of the > >> server are written in portable, multithreade

Re: Parent module not loaded error

2009-01-14 Thread Graham Dumpleton
On Jan 14, 9:20 pm, Ståle Undheim wrote: > I have a pretty strange error that I can't figure out the cause off. > This is in a Django app. > > I am using berkelydb, with secondary databases for indexing. The > secondary databases are associated with a callback that uses cPickle > to serialize inde

Re: Parent module not loaded error

2009-01-14 Thread Graham Dumpleton
On Jan 14, 9:41 pm, Ståle Undheim wrote: > On Jan 14, 11:31 am, Graham Dumpleton > wrote: > > > > > On Jan 14, 9:20 pm, Ståle Undheim wrote: > > > > I have a pretty strange error that I can't figure out the cause off. > > > This is in a Django ap

Re: WSGI question: reading headers before message body has been read

2009-01-18 Thread Graham Dumpleton
On Jan 19, 6:01 am, Ron Garret wrote: > I'm writing a WSGI application and I would like to check the content- > length header before reading the content to make sure that the content > is not too big in order to prevent denial-of-service attacks.  So I do > something like this: > > def application

Re: WSGI question: reading headers before message body has been read

2009-01-18 Thread Graham Dumpleton
On Jan 19, 6:43 am, Petite Abeille wrote: > On Jan 18, 2009, at 8:01 PM, Ron Garret wrote: > > > def application(environ, start_response): > >    status = "200 OK" > >    headers = [('Content-Type', 'text/html'), ] > >    start_response(status, headers) > >    if int(environ['CONTENT_LENGTH'])>100

Re: wsgi silently swallows errors

2009-01-19 Thread Graham Dumpleton
On Jan 20, 8:03 am, Jean-Paul Calderone wrote: > On Mon, 19 Jan 2009 12:15:29 -0800, Ron Garret wrote: > >Consider the following wsgi app: > > >def application(env, start_response): > >  start_response('200 OK',[('Content-type','text/plain')]) > >  yield "hello" > >  x=1/0 > >  yield "world" > >

Re: Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-27 Thread Graham Dumpleton
On Jan 28, 11:28 am, James Mills wrote: > On Wed, Jan 28, 2009 at 10:15 AM, excord80 wrote: > > Well, let's see. I don't need a templating library, since -- as you > > pointed out -- I can just use Python's own. I don't need a db > > interface (can just make my own dbapi calls if needed). Don't n

Re: Sloooooowwwww WSGI restart

2009-01-28 Thread Graham Dumpleton
On Jan 29, 8:35 am, Ron Garret wrote: > I'm running a WSGI app under apache/mod_wsgiand I've noticed that > whenever I restart the server after making a code change it takes a very > long time (like a minute) before the script is active again.  In other > words, I do an apachectl restart, reload t

Re: Sloooooowwwww WSGI restart

2009-01-28 Thread Graham Dumpleton
On Jan 29, 8:44 am, Aleksandar Radulovic wrote: > Hi there, > > On Wed, Jan 28, 2009 at 9:35 PM, Ron Garret wrote: > > I'm running a WSGI app under apache/mod_wsgiand I've noticed that > > Off the bat, there's no reason to run an app under apache/mod_wsgi > while developing it, > ie. if u use Pyl

Re: Sloooooowwwww WSGI restart

2009-01-29 Thread Graham Dumpleton
On Jan 29, 8:15 pm, Aleksandar Radulovic wrote: > Graham, > > On Thu, Jan 29, 2009 at 1:16 AM, Graham Dumpleton > > wrote: > > Sorry, you are wrong to assume that an Apache restart is not be > > required. > > If you are usingmod_wsgiembedded mode, or mod_py

Re: More mod_wsgi weirdness: process restarts on redirect

2009-01-29 Thread Graham Dumpleton
On Jan 30, 11:01 am, Ron Garret wrote: > In article , >  Joshua Kugler wrote: > > > Ron Garret wrote: > > > My question is: is this supposed to be happening?  Or is this an > > > indication that something is wrong, and if so, what? > > > You are probably just hitting a different instance of Apach

Re: Sloooooowwwww WSGI restart

2009-01-29 Thread Graham Dumpleton
On Jan 30, 9:53 am, Ron Garret wrote: > In article <498171a5$0$3681$426a7...@news.free.fr>, >  Bruno Desthuilliers > >  wrote: > > Ron Garret a écrit : > > > In article , > > >  Aleksandar Radulovic wrote: > > (snip) > > >> Secondly, why are you restarting apache after code changes? In normal >

Re: best way to serve wsgi with multiple processes

2009-02-11 Thread Graham Dumpleton
On Feb 11, 8:50 pm, Robin wrote: > Hi, > > I am building some computational web services using soaplib. This > creates a WSGI application. > > However, since some of these services are computationally intensive, > and may be long running, I was looking for a way to use multiple > processes. I thou

Re: best way to serve wsgi with multiple processes

2009-02-11 Thread Graham Dumpleton
ed to use. GAE is not suitable as they kill off any requests that take more than a set time. That time isn't that long, so can't support long running requests. Graham > appengine.google.com > > -Alex Goretoy > http://www.goretoy.com > > > > On Wed, Feb 11, 2009 a

Re: best way to serve wsgi with multiple processes

2009-02-11 Thread Graham Dumpleton
On Feb 12, 9:19 am, Robin wrote: > On Feb 11, 7:59 pm, Graham Dumpleton > wrote: > > > > > On Feb 11, 8:50 pm, Robin wrote: > > > > Hi, > > > > I am building some computational web services using soaplib. This > > > creates a WSGI applicat

multiprocessing module and os.close(sys.stdin.fileno())

2009-02-17 Thread Graham Dumpleton
Why is the multiprocessing module, ie., multiprocessing/process.py, in _bootstrap() doing: os.close(sys.stdin.fileno()) rather than: sys.stdin.close() Technically it is feasible that stdin could have been replaced with something other than a file object, where the replacement doesn't have a

Re: Will multithreading make python less popular?

2009-02-17 Thread Graham Dumpleton
On Feb 16, 9:27 pm, Michele Simionato wrote: > On Feb 16, 10:34 am, rushen...@gmail.com wrote: > > > > > Hi everybody, > > I am an engineer. I am trying to improve my software development > > abilities. I have started programming with ruby. I like it very much > > but i want to add something more.

Re: multiprocessing module and os.close(sys.stdin.fileno())

2009-02-18 Thread Graham Dumpleton
On Feb 19, 1:16 pm, Jesse Noller wrote: > On Tue, Feb 17, 2009 at 10:34 PM, Graham Dumpleton > > > > wrote: > > Why is the multiprocessing module, ie., multiprocessing/process.py, in > > _bootstrap() doing: > > >  os.close(sys.stdin.fileno()) >

Re: multiprocessing module and os.close(sys.stdin.fileno())

2009-02-21 Thread Graham Dumpleton
On Feb 21, 4:20 pm, Joshua Judson Rosen wrote: > Jesse Noller writes: > > > On Tue, Feb 17, 2009 at 10:34 PM, Graham Dumpleton > > wrote: > > > Why is the multiprocessing module, ie., multiprocessing/process.py, in > > > _bootstrap() doing: > > > &

Re: multiprocessing module and os.close(sys.stdin.fileno())

2009-02-21 Thread Graham Dumpleton
On Feb 22, 12:52 pm, Joshua Judson Rosen wrote: > Graham Dumpleton writes: > > > On Feb 21, 4:20 pm, Joshua Judson Rosen wrote: > > > Jesse Noller writes: > > > > > On Tue, Feb 17, 2009 at 10:34 PM, Graham Dumpleton > > > > wrote:

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 this: > > from mod_python import apache, util; > > def index(req): >

Re: Python/C API: using from a shared library

2008-11-26 Thread Graham Dumpleton
On Nov 26, 10:29 pm, Robie Basak <[EMAIL PROTECTED]> wrote: > On 2008-11-25, Robie Basak <[EMAIL PROTECTED]> wrote: > > > If I use dlopen() to open a shared library that I've written, and that > > shared library tries to use the Python/C API, then it fails. I've > > reduced the problem to the test

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 want to get files directory, what can i do? sorry > fo

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 depreceated, nobody uses it. usemod_wsgihttp://www.modw

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 like there will not be a mod_

Re: Need help getting MoinMoin to run under WSGI

2008-12-28 Thread Graham Dumpleton
On Dec 28, 7:22 pm, Ron Garret wrote: > In article , >  Ron Garret wrote: > > > > > I successfully installed MoinMoin as a CGI according to the instructions > > on the moinmo.in site.  But when I tried to switch over to running it > > under wsgi it failed thusly: > > > [Sat Dec 27 21:44:14 2008]

Re: mod_pylite?

2009-01-01 Thread Graham Dumpleton
On Jan 2, 2:28 pm, excord80 wrote: > On Jan 1, 9:12 pm, s...@pobox.com wrote: > > >     > > >>http://broadcast.oreilly.com/2008/12/five-features-perl-5-needs-now.html > > >     >> and he mentions a neat-looking project called ``mod_perlite``. It > >     >> sounds like it will be very handy. Anyon

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: OS 10.5 build 64 bits

2008-10-23 Thread Graham Dumpleton
On Oct 24, 5:28 am, Robin Becker <[EMAIL PROTECTED]> wrote: > M.-A. Lemburg wrote: > > igure script. > > > The config options --with-universal-archs is used for this. In theory > > you could build a 4-way binary for Intel,PPC/32-bit,64-bit. > > Default is 32-bit only. > > > > appar

Re: What happened to python-dev's Google Group?

2008-10-23 Thread Graham Dumpleton
On Oct 24, 12:58 pm, Robert Kern <[EMAIL PROTECTED]> wrote: > Giampaolo Rodola' wrote: > >http://groups.google.com/group/python-dev2 > > It seems it no longer exists. What happened? > > I don't know, but something happened to the numpy-discussion Google Group > gateway, too. Maybe there was a mass

Re: Build of extension module depending on external lib fails on Solaris 10

2008-11-21 Thread Graham Dumpleton
On Nov 22, 2:07 am, "Eric Brunel" <[EMAIL PROTECTED]> wrote: > Hello all, > > I've got a brand new Solaris 10 computer and I'm trying to build Python   > and extension modules for it. The Python build didn't have any problem and   > I have a working Python interpreter. But I can't succeed to build

Re: Shared library Python on Mac OS X 64-bit

2009-03-02 Thread Graham Dumpleton
On Mar 3, 12:25 pm, Uberman wrote: > I'm trying to build a 64-bit version of Python 2.5.1 on Mac OS X 10.5.6 64-bit > (Intel processor).  The configure line I'm using is: > > ./configure --enable-shared --disable-framework --disable-toolbox-glue > OPT="-fast -arch x86_64 -Wall -Wstrict-prototypes

Re: Upgrade Python on a Mac

2009-03-03 Thread Graham Dumpleton
On Mar 3, 8:53 am, Rey Bango wrote: > Hi, > > I'd like to upgrade the installed version of Python that came standard > on OS X (Leopard) with either 2.6.1 or 3.0.1. Before I stick my foot > in it, I just wanted to get a better understanding of the process. > > If I download the disk image installe

Re: Shared library Python on Mac OS X 64-bit

2009-03-03 Thread Graham Dumpleton
On Mar 4, 2:29 am, Uberman wrote: > Graham Dumpleton wrote: > > Why don't you want to use MacOS X Framework libraries? It is the > > better installation method. > > Because I'm not installing Python, I'm building it.  If I were just interested > in instal

Re: Shared library Python on Mac OS X 64-bit

2009-03-05 Thread Graham Dumpleton
On Mar 6, 6:24 am, Uberman wrote: > Graham Dumpleton wrote: > > > I don't understand the problem, you can say where it installs the > > framework, it doesn't have to be under /Library, so can be in your > > special SDK folder. For example: > > > .

Re: Python3 on the Web

2009-03-05 Thread Graham Dumpleton
On Mar 6, 4:13 am, Johannes Permoser wrote: > Hi, > > I wanted to learn Python from scratch and start off with Version 3. > Since I already know PHP very well, I thought it would be nice to start > off with a small web-project. > > But what's the way to bring python3 to the Web? > mod_python isn't

Do python.org MacOS X dmg installers still only provide 32 bit Python framework?

2009-03-08 Thread Graham Dumpleton
I'd rather not have to download and install them as I don't want to be installing them into my actual system, so can someone please tell me whether the MacOS X dmg installers provided from www.python.org are still not full universal builds. That is, that the Python framework component only contains

Re: Do python.org MacOS X dmg installers still only provide 32 bit Python framework?

2009-03-09 Thread Graham Dumpleton
On Mar 9, 6:14 pm, "Martin v. Löwis" wrote: > Graham Dumpleton wrote: > > I'd rather not have to download and install them as I don't want to be > > installing them into my actual system, so can someone please tell me > > whether the MacOS X dmg installers

Re: Safe to call Py_Initialize() frequently?

2009-03-22 Thread Graham Dumpleton
On Mar 21, 2:35 pm, roschler wrote: > On Mar 20, 7:27 pm, Mark Hammond wrote: > > > On 21/03/2009 4:20 AM, roschler wrote: > > > Calling Py_Initialize() multiple times has no effect.  Calling > > Py_Initialize and Py_Finalize multiple times does leak (Python 3 has > > mechanisms so this need to a

Re: Safe to call Py_Initialize() frequently?

2009-03-22 Thread Graham Dumpleton
On Mar 21, 10:27 am, Mark Hammond wrote: > Calling > Py_Initialize and Py_Finalize multiple times does leak (Python 3 has > mechanisms so this need to always be true in the future, but it is true > now for non-trivial apps. Mark, can you please clarify this statement you are making. The grammar u

Re: Safe to call Py_Initialize() frequently?

2009-03-23 Thread Graham Dumpleton
On Mar 23, 10:00 pm, Mark Hammond wrote: > On 23/03/2009 12:14 PM, Graham Dumpleton wrote: > > > On Mar 21, 10:27 am, Mark Hammond  wrote: > >> Calling > >> Py_Initialize and Py_Finalize multiple times does leak (Python 3 has > >> mechanisms so this need to

Re: Safe to call Py_Initialize() frequently?

2009-03-29 Thread Graham Dumpleton
On Mar 30, 4:35 am, a...@pythoncraft.com (Aahz) wrote: > [p&e] > > In article > , > Graham Dumpleton   wrote: > > > > > > >In mod_wsgi however, Apache will completely unload the mod_wsgi module > >on a restart. This would also mean that the Python li

Re: Upgrade Python on a Mac

2009-03-30 Thread Graham Dumpleton
On Mar 31, 3:07 am, 7stud wrote: > On Mar 3, 4:01 am, Graham Dumpleton > wrote: > > > > > On Mar 3, 8:53 am, Rey Bango wrote: > > > > Hi, > > > > I'd like to upgrade the installed version of Python that came standard > > > on OS X (

Re: Module caching

2009-04-04 Thread Graham Dumpleton
On Apr 4, 10:41 am, Jon Clements wrote: > On 3 Apr, 23:58, Aaron Scott wrote: > > > > are you an experienced python programmer? > > > Yeah, I'd link to think I'm fairly experienced and not making any > > stupid mistakes. That said, I'm fairly new to working with mod_python. > > > All I really wan

Re: eval(WsgiApplication)

2009-05-02 Thread Graham Dumpleton
On May 2, 10:15 pm, Дамјан Георгиевски wrote: > >> > How do I do this in python3? > > >> What's wrong with importing it? > > > The problem is that my wsgi files have a wsgi extention for mod_wsgi > > use > .. > > mod_wsgi has a .wsgi handler because it is recommended to rename the > > wsgi file wi

Re: return functions

2009-05-02 Thread Graham Dumpleton
On May 3, 6:44 am, gert wrote: > Aldo i like the cerrypywsgiserver very much, i do not like the tools > that go with it > so i am stuck with a configuration file that looks like this > > http://pastebin.com/m4d8184bc > > After 152 line I finally arrived to a point where i was thinkig "thats > it,

Re: Cannot start a thread in atexit callback

2009-05-06 Thread Graham Dumpleton
On May 6, 3:18 pm, "Gabriel Genellina" wrote: > En Tue, 05 May 2009 23:52:25 -0300, Zac Burns escribió: > > > It seems that one cannot start a thread in an atexit callback. > > > My use case is that I have a IO heavy callback that I want to run in a > > thread so that other callbacks can finish w

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-13 Thread Graham Dumpleton
On May 12, 1:59 am, dpapathanasiou wrote: > For the record, and in case anyone else runs into this particular > problem, here's how resolved it. > > My original xml_utils.py was written this way: > > from xml.dom import minidom > > def parse_item_attribute (item, attribute_name): >     item_doc =

Re: Install Python MySQL db module?

2008-05-13 Thread Graham Dumpleton
On May 14, 10:58 am, Rick Dooling <[EMAIL PROTECTED]> wrote: > On May 13, 7:29 pm, Con <[EMAIL PROTECTED]> wrote: > > > Hi, how does properly install the Python MySQL db module for Mac OS > > X?  I was only able to locate the Win32 modules. > > > Thanks in advance, > > > -Conrad > > I tried this a

Re: Arch problems--how do I build PIL to be 64 bit so it plays nicely on OS X?

2008-05-17 Thread Graham Dumpleton
On May 17, 6:16 am, lampshade <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using python + django to do some web design and I would really > like to use the python image library as part of this.  There seems to > be a problem, however, with apache andmod_pythonbeing 64 bit while > my python image lib

Re: scaling problems

2008-05-20 Thread Graham Dumpleton
On May 20, 2:00 pm, James A. Donald <[EMAIL PROTECTED]> wrote: > > > 2.  It is not clear to me how a python web application scales.  Python > > > is inherently single threaded, so one will need lots of python > > > processes on lots of computers, with the database software handling > > > parallel a

Re: Beginner question

2008-05-25 Thread Graham Dumpleton
On May 26, 4:13 am, howa <[EMAIL PROTECTED]> wrote: > Hi, > > Just want to try mod_python but it is more complicated then I > expected... > > I just followed the tutorial > on:http://www.modpython.org/live/mod_python-2.7.8/doc-html/inst-testing > > E.g. > > URL =http://www.example.com/mptest.p

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'):Importing module > > '/usr/local/apache2/htdocs/intranet/

Re: https in pylons

2008-07-18 Thread Graham Dumpleton
On Jul 18, 9:50 pm, [EMAIL PROTECTED] wrote: > Hello, > > I have a question about framework pylons - how to run(in paster) > webpages over https? Is it possible, or not? If Paste server that is uses doesn't already support HTTPS, then run Pylons under Apache/mod_wsgi, or just run Pylons with Paste

Re: Error importing modules with mod_python

2008-07-21 Thread Graham Dumpleton
On Jul 22, 3:30 am, Aaron Scott <[EMAIL PROTECTED]> wrote: > I've installedmod_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: > > frommod_pythonimport apach

Re: Problem with Python Server Pages (PSP)

2008-07-21 Thread Graham Dumpleton
On Jul 21, 9:42 pm, [EMAIL PROTECTED] wrote: > Hi, > > I am facing a very basic problem with PSP. I have installedmod_python > (in fedora Core 1), added the lines required for loading Python > modules and handling PSP pages. I have created a hello.psp page. But > when I try to view this hello.psp p

Re: Python Embedding Thread

2008-07-23 Thread Graham Dumpleton
On Jul 23, 12:15 pm, "Jaimy Azle" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote: > > I fixed the code. This code snippet runs in a seperate thread: > > > PyObject *dict=NULL; > > PyGILState_STATE state = PyGILState_Ensure(); > > dict = CreateMyGlobalDictionary(); > > > PyRun_String(, Py_fi

Re: Problem with Python Server Pages (PSP)

2008-07-23 Thread Graham Dumpleton
On Jul 22, 1:54 pm, [EMAIL PROTECTED] wrote: > On Jul 22, 5:18 am, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > > > On Jul 21, 9:42 pm, [EMAIL PROTECTED] wrote: > > > > Hi, > > > > I am facing a very basic problem with PSP. I have inst

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:03 2008] [error] make_obcallback: co

Re: Multiple independent Python interpreters in a C/C++ program?

2008-04-12 Thread Graham Dumpleton
On Apr 13, 3:05 am, sturlamolden <[EMAIL PROTECTED]> wrote: > On Apr 11, 6:24 pm, [EMAIL PROTECTED] wrote: > > > Do I wind up with two completely independent interpreters, one per thread? > > I'm thinking this doesn't work (there are bits which aren't thread-safe and > > are only protected by the G

Re: apache module: python and web programming, easy way...?

2008-04-28 Thread Graham Dumpleton
On Apr 28, 7:42 pm, bvidinli <[EMAIL PROTECTED]> wrote: > is there any apache module, you know, that i can just install with apt-get, > then put my .py file, and run it ? http://www.modwsgi.org http://www.modpython.org The mod_wsgi module supports WSGI (http://www.wsgi.org) specification which is

Re: where do I begin with web programming in python?

2008-05-01 Thread Graham Dumpleton
On May 2, 7:45 am, Christian Heimes <[EMAIL PROTECTED]> wrote: > jmDesktop schrieb: > > > I have been to the main python site, but am still confused. I have > > been using .net, so it may be obvious how to do this to everyone > > else. I am aware there are various frameworks (Django, Pylons, etc.

Re: How to check in CGI if client disconnected

2008-08-24 Thread Graham Dumpleton
On Aug 25, 4:26 pm, Vishal <[EMAIL PROTECTED]> wrote: > Hi, > >   Thanks for the replies. In my case, the cgi is sending a large file > to the client. In case the the stop button is pressed on the browser > to cancel the download, i want to do some cleanup action. It's all one- > way transfer in th

Re: How to check in CGI if client disconnected

2008-08-25 Thread Graham Dumpleton
? Currently, i > am unable to call any cleanup code before exit. Best you will do for writing, is to catch exceptions around the call outputing the data. If an exception occurs then a problem has obviously occurred. Graham > Regards, > > -vishal. > > On Aug 25, 11:44 am,

Re: Python and M2Crypto question

2008-09-07 Thread Graham Dumpleton
On Sep 7, 11:07 pm, Bojan Mihelac <[EMAIL PROTECTED]> wrote: > Hi all! > > I am trying to install M2Crypto to work on OSX10.5 apache > (mod_python). Error I receive: > > Error was: dlopen(/Library/WebServer/eggs/M2Crypto-0.18.2-py2.5- > macosx-10.5-i386.egg-tmp/M2Crypto/__m2crypto.so, 2): no suitab

Re: FW: [Tutor] Multi-Threading and KeyboardInterrupt

2009-06-11 Thread Graham Dumpleton
On Jun 12, 3:35 pm, Dennis Lee Bieber wrote: > On Thu, 11 Jun 2009 08:44:24 -0500, "Strax-Haber, Matthew (LARC-D320)" > declaimed the following in > gmane.comp.python.general: > > > I sent this to the Tutor mailing list and did not receive a response. > > Perhaps one of you might be able to offer

Re: does python have a generic object pool like commons-pool in Java

2009-07-16 Thread Graham Dumpleton
On Jul 16, 3:05 pm, John Nagle wrote: > alex23 wrote: > > On Jul 16, 2:03 pm, John Nagle wrote: > >>      "fcgi" is an option for this sort of thing.  With "mod_fcgi" installed > >> in Apache, and "fcgi.py" used to manage the Python side of the problem, you > >> can have semi-persistent programs

Re: web frameworks that support Python 3

2009-08-23 Thread Graham Dumpleton
On Aug 24, 6:34 am, Sebastian Wiesner wrote: > At Sunday 23 August 2009 22:13:16 you wrote:> I use Chinese and therefore > Unicode very heavily, and so Python 3 is > > an unavoidable choice for me. > > Python 2.x supports Unicode just as well as Python 3.  Every common web > framework works perfe

Re: How does the file.seek() work ?

2009-08-25 Thread Graham Dumpleton
On Aug 25, 5:37 am, Tim Chase wrote: > > I want the file pointer set to 100 and overwrite everything from there > [snip] > > def application(environ, response): > >     query=os.path.join(os.path.dirname(__file__),'teemp') > >     range=environ.get('HTTP_RANGE','bytes=0-').replace > > ('by

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. > >      fileitem = req.form['file'] > >

Re: web frameworks that support Python 3

2009-08-25 Thread Graham Dumpleton
On Aug 26, 12:19 pm, exar...@twistedmatrix.com wrote: > On 01:41 am, a...@pythoncraft.com wrote: > > > > > > >In article > >, > >Graham Dumpleton   wrote: > >>On Aug 24, 6:34=A0am, Sebastian Wiesner wrote: > > >>>In any case, there

Re: Python on the Web

2009-08-25 Thread Graham Dumpleton
On Aug 26, 1:17 pm, alex23 wrote: > Phil wrote: > > My interest in Python 3.1 was actually to develop a framework. Again, > > I can feel the flames. :) I understand there are enough frameworks but > > I actually have no applications that I wish to develop. > > No offense intended, but that's prob

Re: Python on the Web

2009-08-25 Thread Graham Dumpleton
A few additional comments on top of what others have said. On Aug 26, 11:09 am, Phil wrote: > I've seen lots of web sites explaining everything, but for whatever > reason I seem to not be picking something up. > I am a graphical person, which is probably the reason I haven't found > my answer. >

Re: Python on the Web

2009-08-26 Thread Graham Dumpleton
On Aug 27, 2:54 am, Phil wrote: > Thanks to everybody. I believe I am understanding things better. > > I have looked at the links that have been provided, although I have > seen most of them in the past month or so that I've been looking into > this stuff. I do agree with most of the things Armin

Re: Python on the Web

2009-08-27 Thread Graham Dumpleton
On Aug 27, 1:02 pm, Phil wrote: > Thanks a lot for another response. I've never posted in groups like > this before but the results are amazing. > > I will definitely consider trying mod_wsgi when I get a chance. I like > the approach taken with it. It is unfortunate that I completely missed > all

Re: using python interpreters per thread in C++ program

2009-09-07 Thread Graham Dumpleton
On Sep 7, 3:42 pm, sturlamolden wrote: > On 7 Sep, 07:17, grbgooglefan wrote: > > > What is best way to embed python in multi-threaded C++ application? > > Did you remeber to acquire the GIL? The GIL is global to the process > (hence the name). > > void foobar(void) > { >     PyGILState_STATE sta

Re: using python interpreters per thread in C++ program

2009-09-07 Thread Graham Dumpleton
On Sep 7, 6:47 pm, ganesh wrote: > On Sep 7, 3:41 pm, Graham Dumpleton > wrote: > > > On Sep 7, 3:42 pm, sturlamolden wrote: > > interpreters. The simplified GIL state API you mentioned only works > > for threads operating in the main (first) interpreter created wi

Re: using python interpreters per thread in C++ program

2009-09-08 Thread Graham Dumpleton
On Sep 8, 9:28 am, Mark Hammond wrote: > I was referring to the > 'multiple interpreters in one process' feature of Python which is > largely deprecated, ... Can you please point to where in the documentation for Python it says that support for multiple interpreters in one process is 'largely dep

<    1   2