Re: writing captcha image file

2006-04-11 Thread amaltasb
I changed the owner of the file to root using chown root newuser.cgi, but still i m not able to write... -- http://mail.python.org/mailman/listinfo/python-list

MySQLdb module generating errors

2006-04-11 Thread amaltasb
I installed MySQLdb module on bsd and when I import I get the following error... Traceback (most recent call last): File stdin, line 1, in ? File MySQLdb/__init__.py, line 27, in ? import _mysql ImportError: /usr/local/lib/liblthread.so.2: Undefined symbol _sched_yield Is any module

executing perl script within python

2006-04-11 Thread amaltasb
I have few modules which are in perl, and all other scripts are in python. Is it possible to execute the perl scripts within python or import them like: Thanks -- http://mail.python.org/mailman/listinfo/python-list

writing captcha image file

2006-04-10 Thread amaltasb
I have a script which generates captcha file on /usr/local/apache/htdocs/captcha directory. The script is working fine when i execute it from terminal /usr/local/bin/python generateCaptcha.cgi and it writes to /htdocs/captcha directory but when I execute the script through

Re: writing captcha image file

2006-04-10 Thread amaltasb
I get this msg: Traceback (most recent call last): File /usr/local/apache/cgi-bin/newuser.cgi, line 61, in ? cstatus = im.save(file_name,'JPEG') File /usr/local/lib/python2.4/PIL/Image.py, line 1299, in save fp = __builtin__.open(fp, wb) IOError: [Errno 13] Permission denied:

Re: Pickle or Mysql

2006-04-09 Thread amaltasb
Can i install berkeley db on BSD, I am having a virtual private server, so I have privilates to install on it and do we have management tools like phpmyadmin from berkely db as well, as I am not so good at database management. Thanks Amaltas --

Writing files on server through CGI

2006-04-09 Thread amaltasb
I have a CGI script on server which process a form and writes its content on a file like fp = open(fname, 'w') fp.write('HTMLHEADTITLECool list/TITLE/HEADBODYH2CENTER%s/CENTER/H2BRH3center%s/center/h3/body/html Its working fine, but will it work if the script recieves thousands of request

Re: Writing files on server through CGI

2006-04-09 Thread amaltasb
this cgi script write different files, request 1 will write 1.html, 2 will write 2.html and so on. Its not updating the current file. For example create.py processes a form and write user.html file and every user is unique. so if 10 users fill up the form at the same time and click submit button,

Installing Python imaging library

2006-04-04 Thread amaltasb
Hi, I am hosting python applicaitions on a shared hositng so I dont have enough privilages, I have installed python in my home folder, through Automatic installer extratools.php I want to install Python imaging library module. I just copied the PIL in my py24 folder and also in site packages,

Pickle or Mysql

2006-03-31 Thread amaltasb
Can I use Pickle to store about 500,000 key value pairs.. or should I use mySql. Which one is best for performance, as the key value pair increases. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickle or Mysql

2006-03-31 Thread amaltasb
So, Is Shelve a perfect solution (besides Mysql), to store large key/value pairs, and which are updated frequently by multiple clients. Thanks Paul Rubin wrote: [EMAIL PROTECTED] writes: Can I use Pickle to store about 500,000 key value pairs.. or should I use mySql. Which one is best for

difference between .cgi and .py

2006-03-29 Thread amaltasb
Hi, I am new to python.. I have uploaded few scripts in my cgi-bin folder, some with extension .cgi and some with .py. What is the difference between the two extensions.. which one is more prefered, do it effects performance ?? Thanks -- http://mail.python.org/mailman/listinfo/python-list