Re: problem with import in python 2.2.3

2007-05-17 Thread Anthony Irwin
Hi Guys, Thanks for the replies I ended up rewriting my code to use the time.strftime() library but unfortunately the MySQLdb module I use needs python 2.3 or higher so it looks like I have to update python on the older system anyway. -- Kind Regards, Anthony Irwin http://www.irwinresources.

Re: problem with import in python 2.2.3

2007-05-17 Thread Simon Brunning
On 5/17/07, Anthony Irwin <[EMAIL PROTECTED]> wrote: > Does anyone know why the datetime module is not being found in python > 2.2.3 and how I can make the script work in the older version of python? The datetime modules was added in Python 2.3 - that's why you aren't finding it. This might help

Re: problem with import in python 2.2.3

2007-05-16 Thread Gabriel Genellina
En Thu, 17 May 2007 00:37:26 -0300, Anthony Irwin <[EMAIL PROTECTED]> escribió: > ./backup_all_mysql_databases.py > Traceback (most recent call last): >File "./backup_all_mysql_databases.py", line 5, in ? > from datetime import date > ImportError: No module named datetime > > Does anyon

problem with import in python 2.2.3

2007-05-16 Thread Anthony Irwin
Hi, I have written a python script that works perfectly in python 2.4.4 and python 2.4.3 but when I try to use the same script on an older system with python 2.2.3 I get the following error. ./backup_all_mysql_databases.py Traceback (most recent call last): File "./backup_all_mysql_databases