Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFB NetworkClient instance has no attribute clipping #5

Closed
pythdasch opened this issue Nov 28, 2014 · 3 comments
Closed

RFB NetworkClient instance has no attribute clipping #5

pythdasch opened this issue Nov 28, 2014 · 3 comments

Comments

@pythdasch
Copy link

Hi hugs, I'm trying to start a video using your lib but I'm facing this error who is very annoying

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'

Here is my code for the video

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()

I normally installed all dependancies so don't understand why it's not working when I do video.start()

Thank you in advance

@pythdasch
Copy link
Author

In fact I gave up with castro and used VLC instead which was easier for my task.

@southekal
Copy link

Hi @pythdasch - I am running into similar issues, do you happen to remember how you solved it using VLC instead?
Thanks.

@pythdasch
Copy link
Author

@southekal It has been a long time now and don't have a code. But I can assure you that it worked. The lonely problem was that with selenium it didn't do nice videos :p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants