Hi massimo,

code:


In default.py->
import Skype
accountName = skype_username
accountPsw  = skype_password
loggedIn    = False

Skype.Account.OnPropertyChange = AccountOnChange
MySkype = Skype.GetSkype(keypair_keyFileName)
account = MySkype.GetAccount(accountName)
account.LoginWithPassword(accountPsw, False, False)

while not loggedIn:
        sleep(1)


def AccountOnChange (self, property_name):
        global loggedIn;
        if property_name == 'status':
                print ('Login sequence: ' + self.status);
                if self.status == 'LOGGED_IN':
                        loggedIn = True;
                if self.status == 'LOGGED_OUT':
                        loggedIn = False;


In /ipc/python/skypekit.py

def run(self):
            try:
                self.connection._start()
            except:
                self.connection.stop()
                raise

def _start(self):
        while not self.stopped:
            if self._read_byte(1) == 'Z':
                if self.stopped:
                    return

def _read_byte(self, num_bytes_to_read = 1):
        result = self.read_buffer
        while not self.stopped and len(result) < num_bytes_to_read:
            try:
                read = self.socket.recv(4096)
                if not read:
                    self.stop()
                    raise ConnectionClosed
              .....
....
....

Thank You

On Jan 18, 1:55 am, Massimo Di Pierro <[email protected]>
wrote:
> can you show any code?
>
> On Jan 17, 4:17 am, ganesh waghmare <[email protected]>
> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I want to integrateskypein my web2py application. I have skypekit
> > downloaded fromskype.com. But it gives error : "SSLError:ssl read
> > operation timed out"
>
> > detailed stack trace:
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.6/threading.py", line 532, in
> > __bootstrap_inner
> >     self.run()
> >   File "applications/filem/modules/skypekit_mod/ipc/python/
> > skypekit.py", line 143, in run
> >     self.connection._start()
> >   File "applications/filem/modules/skypekit_mod/ipc/python/
> > skypekit.py", line 521, in _start
> >     if self._read_byte(1) == 'Z':
> >   File "applications/filem/modules/skypekit_mod/ipc/python/
> > skypekit.py", line 236, in _read_byte
> >     read = self.socket.recv(4096)
> >   File "/usr/lib/python2.6/ssl.py", line 215, in recv
> >     return self.read(buflen)
> >   File "/usr/lib/python2.6/ssl.py", line 136, in read
> >     return self._sslobj.read(len)
> > SSLError: The read operation timed out
>
> > please Help..
> > Thank You.

Reply via email to