[python-win32] module namedtuple no found on Python Win 2.5.4

Graeme Glass graemeglass at gmail.com
Thu Jun 3 10:16:00 CEST 2010


On Thu, Jun 3, 2010 at 9:30 AM, Mauricio Martinez Garcia
<morfeokmg at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi, i have an problem at import module collections:
>> #=========================================================== Python
>> 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit
>> (Intel)] on win32 Traceback (most recent call last): File
>> "C:\CONCILIACIONES\bin\conciliadorprepago.py", line 13, in <module>
>>  from collections import namedtuple ImportError: cannot import name
>> namedtuple
>> #===========================================================
>>
>> i work on Python 2.5.4 and cx_Oracle.
>>
>> This is my code: #Seccion de librerias import sys import os -->from
>> collections import namedtuple
>>
>> I need work on this environment for council process.
>>
>> GREETINGS.

That is because namedtuple was only added in python 2.6

http://docs.python.org/dev/library/collections.html


More information about the python-win32 mailing list