← Back to team overview

plonevideo team mailing list archive

Re: [Plone Video Sprint discussion] transcodedaemon not working

 

Ok, I followed your instructions below and now it doesn't seem to
complain about missing zope.interface.

but now when i uplad a H.264 .mov file to a Plone site with only the
atreal.* add-ons installed, the following error occurs:

atreal.richfile.streaming: build and store streaming for
/atrealdemo/videos/wildlifehd_m420p.mov

PROCESS streaming_convert/atrealdemo/videos/wildlifehd_m420p.mov
atreal.richfile.streaming: processing...
atreal.richfile.streaming: ConvertDaemon call pending
Extracting metadatas for /atrealdemo/videos/wildlifehd_m420p.mov
MetadataExtractor processing ...
extractAndStoreMetadata
atreal.richfile.streaming: build and store streaming for
/atrealdemo/videos/wildlifehd_m420p.mov

PROCESS streaming_convert/atrealdemo/videos/wildlifehd_m420p.mov
WARNING: Already processing!!!
Extracting metadatas for /atrealdemo/videos/wildlifehd_m420p.mov
MetadataExtractor processing ...
extractAndStoreMetadata
CALLBACK http://admin:admin@localhost:8080/atrealdemo/videos/wildlifehd_m420p.mov/@@streaming_RPC
atreal.richfile.streaming: ConvertDaemon call FAILED <Fault 8002: 'error'>
atreal.richfile.streaming: ConvertDaemon answer
ERROR {'faultCode': 8002, 'args': [], 'faultString': 'error'}


Looking at the twistd.log file, there is a TypeError occuring in xmlrpc.py:

natemacbook:plonevideosuite.buildout nateaune$ bin/transcodedaemon fg
2009/11/25 20:22 -0500 [-] Log opened.
2009/11/25 20:22 -0500 [-] twistd 2.5.0
(/opt/local/Library/Frameworks/Python.framework/Versions/2.4/Resources/Python.app/Contents/MacOS/Python
2.4.5) starting up
2009/11/25 20:22 -0500 [-] reactor class: <class
'twisted.internet.selectreactor.SelectReactor'>
2009/11/25 20:22 -0500 [-] Loading
/Users/nateaune/Documents/instances/plonevideosuite.buildout/src/collective.transcode.daemon/collective/transcode/daemon/common/transcodedaemon.py...
2009/11/25 20:22 -0500 [-] Initializing
2009/11/25 20:22 -0500 [-] Launched http channel
2009/11/25 20:22 -0500 [-] Launched TranscodeDaemon scheduler thread....
2009/11/25 20:22 -0500 [-] Loaded.
2009/11/25 20:22 -0500 [-] twisted.web2.channel.http.HTTPFactory
starting on 8888
2009/11/25 20:22 -0500 [-] Starting factory
<twisted.web2.channel.http.HTTPFactory instance at 0x1296440>
2009/11/25 20:22 -0500 [-] Scheduler thread running
2009/11/25 20:24 -0500 [-] Unhandled Error
	Traceback (most recent call last):
	  File "/Users/nateaune/.buildout/eggs/zope.app.twisted-3.5.0-py2.4.egg/twisted/internet/defer.py",
line 304, in _startRunCallbacks
	    self._runCallbacks()
	  File "/Users/nateaune/.buildout/eggs/zope.app.twisted-3.5.0-py2.4.egg/twisted/internet/defer.py",
line 317, in _runCallbacks
	    self.result = callback(self.result, *args, **kw)
	  File "/Users/nateaune/.buildout/eggs/zope.app.twisted-3.5.0-py2.4.egg/twisted/web2/xmlrpc.py",
line 82, in <lambda>
	    deferred.addCallback(lambda x: self._cbDispatch(
	  File "/Users/nateaune/.buildout/eggs/zope.app.twisted-3.5.0-py2.4.egg/twisted/web2/xmlrpc.py",
line 93, in _cbDispatch
	    return defer.maybeDeferred(function, request, *args)
	--- <exception caught here> ---
	  File "/Users/nateaune/.buildout/eggs/zope.app.twisted-3.5.0-py2.4.egg/twisted/internet/defer.py",
line 107, in maybeDeferred
	    result = f(*args, **kw)
	  File "/Users/nateaune/Documents/instances/plonevideosuite.buildout/src/collective.transcode.daemon/collective/transcode/daemon/common/xmlrpc.py",
line 62, in xmlrpc_convert
	    path = videofolder + '/' + '/'.join(splittedURL) + '/' + profile
	exceptions.TypeError: cannot concatenate 'str' and 'dict' objects

if i inspect with pdb the value of "profile" it is:
{'path': '/var/folders/zr/zri3flvxH1WuqK0t9Uq5cE+++TI/-Tmp-/tmpec-Dgostreaming.flv',
'type': 'video/x-flv'}

so it is trying to concatenate a string with this dict. can someone
who is more familiar with this code have a look?

thanks,
Nate

On Wed, Nov 25, 2009 at 6:50 AM, victor rajewski <vik@xxxxxxxxxxxxxxx> wrote:
> I had to add zope.app.twisted and zope.interface to the eggs of the
> transcodedaemon section of my buildout, as well as adding
> zope.interface to the skip-fake-eggs in [zope2] (of a combined
> buildout - probably not necessary for a just-transcodedaemon buildout)
>
> vik
>
> On Mon, Nov 9, 2009 at 2:50 AM, Dimitris Moraitis <dimo@xxxxxxxx> wrote:
>>
>> On Nov 5, 2009, at 6:46 PM, Nate Aune wrote:
>>
>>> Is there any documentation posted anywhere for getting all this set up on
>>> Ubuntu?
>>>
>>> Could we handle the installation of Twisted via buildout so it can be
>>> installed on any platform.
>>
>> Adding zope.app.twisted to the list of buildout eggs solves the problem on
>> Mac OS X and should work well on any platform.
>>
>>
>>
>> --
>> Archive:
>> http://www.coactivate.org/projects/plone-video-sprint/lists/plone-video-sprint-discussion/archive/2009/11/1257727836955
>> To unsubscribe send an email with subject "unsubscribe" to
>> plone-video-sprint-discussion@xxxxxxxxxxxxxxxxxxxx.  Please contact
>> plone-video-sprint-discussion-manager@xxxxxxxxxxxxxxxxxxxx for questions.
>>
>>
>
>
> --
> Archive: http://www.coactivate.org/projects/plone-video-sprint/lists/plone-video-sprint-discussion/archive/2009/11/1259153489167
> To unsubscribe send an email with subject "unsubscribe" to plone-video-sprint-discussion@xxxxxxxxxxxxxxxxxxxx.  Please contact plone-video-sprint-discussion-manager@xxxxxxxxxxxxxxxxxxxx for questions.
>
>



-- 
Nate Aune - natea@xxxxxxxxxxxx
http://www.jazkarta.com
http://card.ly/natea
+1 (617) 517-4953



Follow ups