skatja schrieb:
>>> I've got an AttributeError: 'builtin_function_or_method' object has no  
>>> attribute 'new'
>>> http://paste.turbogears.org/paste/51303
>> Looks like a broken python installation to me.
>>
>> Try this:
>>
>> mac-dir:IrrSinn-1.5 deets$ python2.4
>> Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
>> [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>> Welcome to rlcompleter2 0.96
>> for nice experiences hit <tab> multiple times
>>  >>> from hmac import *
>>  >>> import sha as sha1
>>  >>> new("abc", "*"*40, sha1).hexdigest()
>> '15651cdf4c240191eaa3cc402c5d44c09a14d025'
>>
>> If it's not working for you, your python is broken.
>>
>> Diez
> 
> Thanks for your answer.
> But hmac and sha can be imported properly.

Is it only importing, or is it also executing the above code? Do you 
happen to have installed some crypto-extensions that might interfere 
with this, or some other modules lying around that shadow builtins? If 
nothing helps, put a breakpoint (import pdb; pdb.set_trace()) in front 
of the offending line & see what the objects used and passed are, and 
where they come from.

Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to