TypeError: cannot create weak reference to 'builtin_function_or_method' object

Kaleb Pederson kibab at icehouse.net
Fri Oct 18 17:08:07 EDT 2002


I have run into this "bug", as has a friend of mine.  Every time I have run 
into it PyQt has been involved.  In almost every case, it worked fine in 
Python 2.1 and then does not work under Python 2.2  Unfortunately, I cannot 
narrow it down any more than that.  We are trying to create a small 
reproduceable example but have yet to do so succesffully.  The work around, 
in my cases, has been to either print the object that is resulting in the 
error or to re-order my statements.

I wish I could be more luck.  Perhaps you should mention this on the PyQt 
list.

--Kaleb

On Thursday 17 October 2002 07:36 am, huber wrote:
> i get this error while in xml.parsers.expat ,
> the same programm worked fine with python 2.1
>
>
> Python 2.2.2 (#1, Oct 17 2002, 11:10:47)
> [GCC 2.95.3 20010315 (SuSE)] on linux2
>
> >>> xml.parsers.expat.__file__
>
> '/usr/local/lib/python2.2/site-packages/_xmlplus/parsers/expat.pyc'
>
> >>> xml.parsers.pyexpat.__file__
>
> '/usr/local/lib/python2.2/site-packages/_xmlplus/parsers/pyexpat.so'
>
> >>> xml.parsers.expat.version_info
>
> (1, 95, 5)
>
> >>> xml.parsers.expat.pyxml_expat_version
>
> '$Revision: 1.68 $'
>
> other products used in this program :
> 'PYQT_VERSION': '3.4'
> 'PYQT_BUILD':59
> 'QT_VERSION':303
>
>
> anybody knows where to start finding the error ?
>
> thanks udo





More information about the Python-list mailing list