It is currently Sun Feb 23, 2020 9:02 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Exception AttributeError
PostPosted: Sun Dec 02, 2012 11:17 am 

Joined: Sun Dec 02, 2012 11:02 am
Posts: 1
Im trying to integrate a speech recognition application with GNS3, and am changing "" code.
I want to send a signal from a thread (not main thread) to the main thread. But i dont know how can i connect it.
i have tried this:
self.connect(self.thread, QtCore.SIGNAL('tri'), self.prueba)

Here is the part of the code that i think is has something wrong:
            from Queue import Queue, Empty
        except ImportError:
            while True:
    #from queue import Queue, Empty  # python 3.x
                print "error"
        ON_POSIX = 'posix' in sys.builtin_module_names
        def enqueue_output(out, queue):
            for line in iter(out.readline, b''):

        p= Popen(["java -Xmx256m -jar bin/HelloWorld.jar"],cwd=r'/home/karen/sphinx4-1.0beta5-src/sphinx4-1.0beta5/',stdout=PIPE, shell=True, bufsize= 4024)
        q = Queue()
        t = threading.Thread(target=enqueue_output, args=(p.stdout, q))
        #t = Thread(target=enqueue_output, args=(p.stdout, q))
        t.daemon = True # thread dies with the program
# ... do other things here
        def myfunc(q):
           try: line = q.get_nowait()
       # or q.get(timeout=.1)
           except Empty:
              pass #No hacer nada  si la linea de texto es null
           else: # got line
    # ... do something with line
        thread = threading.Thread(target=myfunc, args=(q,))

When i execute it i got this error:

Exception AttributeError: "'NoneType' object has no attribute 'GApp'" in <bound method VBoxManager.__del__ of <GNS3.VBoxManager.VBoxManager object at 0x901914c>> ignored

Please help me!

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group