-----Original Message-----
From: Mike Weaver [mailto:weaver@xxxxxxxxxxxx]
Sent: Thursday, February 01, 2007 13:29
To: 'AG-TECH list'
Subject: RE: [AG-TECH] Video Producer Service fails to start
Hi all,
I finally had time to start looking at this again. This problem is in
reference to AG 3.0.2 on Fedora Core 6. The actual error (detailed
below)
is
VideoProducerService.py", line 279, in Start
if self.streamDescription.encryptionFlag != 0:
AttributeError: 'int' object has no attribute 'encryptionFlag'
Python seems to be misinterpreting the data type of the
streamDescription
object. Hacks to comment out this check, or surround it with a
'hasattr'
check only cause failures further in the code.
The really annoying thing about this, is that the AudioService.py
module
(different machine) has almost identical code and runs fine. The
audio &
video machines use the same motherboard, BIOS, chipsets, etc...
Both are
fresh installs of Fedora Core 6, fully patched with the latest AG3
& 2.4
compatibility RPMs from the UQ repository. All python packages are
identical, same packages, same versions.
I'm no python guru, but I have a (outdated) software development
background
and I just can't understand how this can be. Same platform, same
OS, same
libraries, same versions, same code - different results.
Anyone out there have any ideas? I'm willing to try other Linux
distros,
but we run RHEL on our production servers so I'd like to stay with
Fedora
for consistency's sake.
I've attached both the AudioService.log & VideoProducerService.log
files for
review & comparison.
Thanks,
Mike
-----Original Message-----
From: Rhys Hawkins [mailto:rhys.hawkins@xxxxxxxxxx]
Sent: Tuesday, November 14, 2006 17:32
To: Christoph Willing
Cc: weaver@xxxxxxxxxx; AG-TECH list
Subject: Re: [AG-TECH] Video Producer Service fails to start
Hi Chris, Mike,
This looks like the same thing that bit me when testing UQs h263
stuff.
If the streamDescription is an int, then the VideoProducer service
doesn't stand much of a chance being able to start. It appears to be
a bug that rears its ugly head when you least expect it, ie I've just
tested this again and now I don't see the same problem ...
It would be interesting to know if this is restricted to Fedora or if
it occurs on other ports.
Cheers,
Rhys
On Wed, 15 Nov 2006 08:11:12 +1000
Christoph Willing <willing@xxxxxxxxxxxxxxxx> wrote:
On 15/11/2006, at 6:16 AM, Mike Weaver wrote:
[]
The relevant part of the VideoProducerService.log seems to be:
11/14/06 14:45:05 -1225061488 Toolkit VideoProducerService.py:
309 ERROR
Exception in VideoProducerService.Start
Traceback (most recent call last):
File
"/home/micsag/.AccessGrid3/local_services/VideoProducerService/
VideoProducer
Service.py", line 279, in Start
if self.streamDescription.encryptionFlag != 0:
AttributeError: 'int' object has no attribute 'encryptionFlag'
Mike,
A short term fix is to edit the file .AccessGrid3/local_services/
VideoProducerService/VideoProducerService.py by changing the line:
if self.streamDescription.encryptionFlag != 0:
to
if hasattr(self.streamDescription, 'encryptionFlag') and
self.streamDescription.encryptionFlag != 0:
chris
Christoph Willing +61 7 3365 8350
QCIF Access Grid Manager
University of Queensland
<AudioService.log>
<VideoProducerService.log>