problem with import in python 2.2.3

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu May 17 00:00:57 EDT 2007


En Thu, 17 May 2007 00:37:26 -0300, Anthony Irwin  
<nospam at noemailhere.nowhere> 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 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?

datetime is included on 2.3 and above.
Try copying the 2.3 version on your 2.2 installation, maybe it Just  
Works...

-- 
Gabriel Genellina




More information about the Python-list mailing list