TypeError: cannot create weak reference to 'builtin_function_or_method' object

holger krekel pyth at devel.trillke.net
Sat Aug 31 21:37:37 CEST 2002

Hmmm.  There has been a report of someone who had a similar strange problem. 


>                 # print self.values
>                 # print self.members
>                 for i in range(len(self.values)):
>                         self.Set(self.members[i],self.values[i])
>                 return
> Traceback is as follows:
> Traceback (most recent call last):
>   File "<basepath>/gem/src/gui/WatchEditInterfaceImpl.py", line 159, in 
> addStone
>     self.sei.setInterfaceFromObject(stone)
>   File "<basepath>/src/gui/StoneEditInterfaceImpl.py", line 154, in 
> setInterfaceFromObject
>     for i in range(len(self.values)):
> TypeError: cannot create weak reference to 'builtin_function_or_method' 
> object

I don't know the C-code well enough to make deeper sense of this. 
But it does look like your environment is seriously messed up.
I guess it is related to a third-party (C-) extension module. Are you
using any?  The other poster mentioning the problem used PyQT, do you also? 



More information about the Python-list mailing list