remoteproxy.py crashes under Python 3.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyqtgraph |
New
|
Undecided
|
Unassigned |
Bug Description
When trying to run the RemoteSpeedTest example under Python 3.3, line 517 of remoteproxy.py throws the error:
self.proxies[ref] = proxy._proxyId
TypeError: unhashable type: 'ObjectProxy'
I was able to get it working for me by replacing line 516 with:
ref = WeakMethod(
and by defining 'WeakMethod' with:
if sys.version < '3':
def WeakMethod(self, args):
return weakref.ref(*args)
else:
class WeakMethod:
def __init__(self, inst, method_name):
def __call__(self, *args):
return getattr(self.proxy, self.method_
(based on the fix described at http://
No idea if that's the best approach but it seems to do the job