Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53101

Re: Phonon error: libv4l2: error getting pixformat: Invalid argument

Newsgroups comp.lang.python
Date 2013-08-27 16:17 -0700
References <12e50d6e-d3a6-465e-9d56-3ad3507964f7@googlegroups.com> <mailman.274.1377615030.19984.python-list@python.org>
Message-ID <c8d010bb-e08b-4126-a9da-ff7abcc312e2@googlegroups.com> (permalink)
Subject Re: Phonon error: libv4l2: error getting pixformat: Invalid argument
From tausciam@gmail.com

Show all headers | View raw


It's not giving me an exception. Here is the code I used:

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.phonon import Phonon
import os
import sys, traceback

def lumberjack():
    song = '/home/tannhaus/Music/A Perfect Circle/eMOTIVE/02 Imagine.mp3'
    QCoreApplication.setApplicationName("Phonon")
    output = Phonon.AudioOutput(Phonon.MusicCategory)
    m_media = Phonon.MediaObject()
    Phonon.createPath(m_media, output)
    m_media.setCurrentSource(Phonon.MediaSource(song))
    m_media.play() 

class MainWindow(QMainWindow):
    def __init__(self, parent=None):
        super(MainWindow, self).__init__(parent)
        
        try:
            lumberjack()
        except IndexError:
            exc_type, exc_value, exc_traceback = sys.exc_info()
            print "*** print_tb:"
            traceback.print_tb(exc_traceback, limit=1, file=sys.stdout)
            print "*** print_exception:"
            traceback.print_exception(exc_type, exc_value, exc_traceback,
                              limit=2, file=sys.stdout)
            print "*** print_exc:"
            traceback.print_exc()
            print "*** format_exc, first and last line:"
            formatted_lines = traceback.format_exc().splitlines()
            print formatted_lines[0]
            print formatted_lines[-1]
            print "*** format_exception:"
            print repr(traceback.format_exception(exc_type, exc_value,
                                          exc_traceback))
            print "*** extract_tb:"
            print repr(traceback.extract_tb(exc_traceback))
            print "*** format_tb:"
            print repr(traceback.format_tb(exc_traceback))
            print "*** tb_lineno:", exc_traceback.tb_lineno
        
if __name__=="__main__":
    from sys import argv, exit
     
    a=QApplication(argv)
    m=MainWindow()
    m.show()
    m.raise_()
    exit(a.exec_())


When I run it, the complete and only error I get is:

libv4l2: error getting pixformat: Invalid argument

When I check /var/log/messages, I see these messages:

2013-08-27T18:12:04.163062-05:00 tannhaus-PC kernel: [ 1786.397499] xc2028 9-0061: i2c input error: rc = -19 (should be 2)
2013-08-27T18:12:04.187054-05:00 tannhaus-PC kernel: [ 1786.421479] xc2028 9-0061: i2c input error: rc = -19 (should be 2)
2013-08-27T18:12:04.391057-05:00 tannhaus-PC kernel: [ 1786.625614] xc2028 9-0061: i2c input error: rc = -19 (should be 2)
2013-08-27T18:12:04.415052-05:00 tannhaus-PC kernel: [ 1786.649613] xc2028 9-0061: i2c input error: rc = -19 (should be 2)

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-26 20:42 -0700
  Re: Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-27 04:45 -0700
  Re: Phonon error: libv4l2: error getting pixformat: Invalid argument Chris Angelico <rosuav@gmail.com> - 2013-08-28 00:50 +1000
    Re: Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-27 16:17 -0700
      Re: Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-27 16:26 -0700
        Re: Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-27 16:39 -0700
          Re: Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-27 17:42 -0700
            Re: Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-27 17:56 -0700

csiph-web