Python 2.7 AttributeError:RFBNetworkClient实例没有属性';剪辑';

Python 2.7 AttributeError:RFBNetworkClient实例没有属性';剪辑';,python-2.7,selenium,selenium-webdriver,Python 2.7,Selenium,Selenium Webdriver,我试图用castro lib开始一段视频,但我遇到了这个非常恼人的错误 > Traceback (most recent call last): File > "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", > line 258, in _bootstrap self.run() File &

我试图用castro lib开始一段视频,但我遇到了这个非常恼人的错误

> Traceback (most recent call last): File
> "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py",
> line 258, in _bootstrap self.run() File
> "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py",
> line 114, in run self._target(self._args, *self._kwargs) File
> "/usr/local/lib/python2.7/site-packages/castro-1.0.6-py2.7.egg/castro/lib/pyvnc2swf/vnc2swf.py",
> line 611, in main merge=merge, debug=debug, reconnect=reconnect) File
> "/usr/local/lib/python2.7/site-packages/castro-1.0.6-py2.7.egg/castro/lib/pyvnc2swf/vnc2swf.py",
> line 429, in vnc2swf client.loop() File
> "/usr/local/lib/python2.7/site-packages/castro-1.0.6-py2.7.egg/castro/lib/pyvnc2swf/rfb.py", line 489, in loop if not self.loop1(): break File
> "/usr/local/lib/python2.7/site-packages/castro-1.0.6-py2.7.egg/castro/lib/pyvnc2swf/rfb.py", line 276, in loop1 self.request_update() File
> "/usr/local/lib/python2.7/site-packages/castro-1.0.6-py2.7.egg/castro/lib/pyvnc2swf/rfb.py", line 551, in request_update self.send('\x03\x01' + pack('>HHHH',
> *self.clipping)) AttributeError: RFBNetworkClient instance has no attribute 'clipping'
这是我的视频代码

from selenium import webdriver, selenium
from selenium.webdriver.common.keys import Keys
import castro

class Video(object):
   def init(self, args, *kwargs):
      self.verificationErrors = []
      self.video = castro.Castro()
      self.driver = webdriver.Firefox()
      super(Video, self).init() 

def manager_video(self):
    self.video.start()
    self.driver.get('http://www.n1ght.com')
    element = self.driver.find_element_by_id("appendedInputButton")
    element.send_keys("brussel")
    self.driver.close()
    self.video.stop()
    self.video.process()

如何解决这个问题?救命啊

你有没有可能发现这个问题?我也得到了同样的结果,在OSX El Capitan上运行Python2.7。这相当于说vnc客户端没有正确连接。你有没有发现这个问题?我也得到了同样的结果,在OSX El Capitan上运行Python2.7,这相当于说vnc客户端没有正确连接。