TraceBack using "expect" #2

m4z opened this Issue Jun 5, 2012 · 2 comments

2 participants

m4z commented Jun 5, 2012

Hi, when trying to use "expect" in your otherwise very helpful tool, i get this traceback.
Unfortunately, I'm too much of a python newbie to judge if this is a bug in your code, a python2.7 incompatibility or something completely different.

$ vncdotool -s <somewhere> expect expect/00_bios.png 0 capture 0_bootprompt-0.png key f12 expect expect/01_bios_after_f12.png 0 capture 1_bootprompt-1.png pause 3 key down capture 2_bootprompt-2.png
2012-06-05 16:54:32+0200 [-] Log opened.
2012-06-05 16:54:32+0200 [VNCDoToolClient,client] connected

2012-06-05 16:54:35+0200 [VNCDoToolClient,client] connected to <something>
2012-06-05 16:54:36+0200 [VNCDoToolClient,client] Unhandled error in Deferred:
2012-06-05 16:54:36+0200 [VNCDoToolClient,client] Unhandled Error
    Traceback (most recent call last):
      File "/lib/python2.7/site-packages/vncdotool-0.2.0dev-py2.7.egg/vncdotool/", line 276, in updateRectangle
      File "/usr/lib64/python2.7/site-packages/twisted/internet/", line 1379, in put
      File "/usr/lib64/python2.7/site-packages/twisted/internet/", line 361, in callback
      File "/usr/lib64/python2.7/site-packages/twisted/internet/", line 455, in _startRunCallbacks
    --- <exception caught here> ---
      File "/usr/lib64/python2.7/site-packages/twisted/internet/", line 542, in _runCallbacks
        current.result = callback(current.result, *args, **kw)
      File "/lib/python2.7/site-packages/vncdotool-0.2.0dev-py2.7.egg/vncdotool/", line 195, in _expectCompare
        lambda a, b: (a - b) ** 2, hist, self.expected)) / len(hist))
      File "/lib/python2.7/site-packages/vncdotool-0.2.0dev-py2.7.egg/vncdotool/", line 195, in <lambda>
        lambda a, b: (a - b) ** 2, hist, self.expected)) / len(hist))
    exceptions.TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

Any idea how I can get this to work? Thanks for your time!


@m4z, thanks taking the time to file an issue. I think r44089f4 should fix the problem you are seeing. Please try it out and If it hasn't please reopen the issue.

@sibson sibson closed this Jun 5, 2012
m4z commented Jun 7, 2012

Yes, thank you very much for the incredible response time! The TB doesn't show up anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment