mediagoblin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GMG-Devel] Python exception uploading video on CentOS 7


From: Ian Cross
Subject: [GMG-Devel] Python exception uploading video on CentOS 7
Date: Sun, 25 Oct 2015 09:06:30 +0000

Hi,

I have a python exception when uploading video, the stack trace is below. I 
installed the latest stable version (git clone 
git://git.savannah.gnu.org/mediagoblin.git -b stable) on the latest CentOS 7 
today. Images and other functionality seem to work fine. I tried to upload test 
WebM videos but neither of my samples worked:  
http://permadi.com/thirdParty/videos/redcliff450.webm and 
http://video.webmfiles.org/big-buck-bunny_trailer.webm.

The exception occurs on line 96 of media_types/video/processing.py - foreach() 
takes exactly 3 arguments (2 given).

I am wondering if I have not installed gstreamer and python bindings correctly 
or at expected versions? I installed packages gstreamer gstreamer-python 
gstreamer-plugins-good. Any help much appreciated, thanks!

Ian

2015-10-24 18:35:48,048 INFO    [mediagoblin.media_types] No plugins handled 
extension .jpg
2015-10-24 18:35:48,048 INFO    [mediagoblin.media_types] No plugins using 
two-step checking found
2015-10-24 18:35:48,150 DEBUG   [mediagoblin.processing.task] Processing 
<MediaEntry 19: Bunny2>
2015-10-24 18:36:58,830 INFO    [mediagoblin.media_types] Info about file 
found, checking further
2015-10-24 18:36:58,831 INFO    [mediagoblin.media_types] checking the contents 
with sniffer
2015-10-24 18:36:58,831 INFO    [mediagoblin.media_types.video.processing] 
Sniffing mediagoblin.media_types.video
2015-10-24 18:36:58,831 INFO    [mediagoblin.media_types.tools] Discovering 
/tmp/tmpYN6gDs...
2015-10-24 18:36:58,842 DEBUG   [mediagoblin.media_types.video.processing] 
Discovered: <DiscovererInfo object at 0x7fc834231f00 (GstDiscovererInfo at 
0x7fc82c01e120)>
2015-10-24 18:36:58,842 INFO    [mediagoblin.media_types] checked, found
2015-10-24 18:36:58,964 DEBUG   [mediagoblin.processing.task] Processing 
<MediaEntry 20: Red>
2015-10-24 18:36:58,964 INFO    [mediagoblin.media_types.video.transcoders] 
Initializing VideoTranscoder...
2015-10-24 18:36:58,967 INFO    [mediagoblin.media_types.tools] Discovering 
/srv/mediagoblin.example.org/mediagoblin/user_dev/media/queue/media_entries/c7799f94-2f3e-436c-b546-dddef5bf397c/redcliff450.webm...
2015-10-24 18:36:58,977 ERROR   [mediagoblin.processing.task] An unhandled 
exception was raised while processing <MediaEntry 20: Red>
2015-10-24 18:36:58,977 WARNING [mediagoblin.processing] No idea what happened 
here, but it failed: TypeError('foreach() takes exactly 3 arguments (2 given)',)
2015-10-24 18:36:58,986 WARNING [mediagoblin.processing] No idea what happened 
here, but it failed: TypeError('foreach() takes exactly 3 arguments (2 
given)',) Error - <type 'exceptions.TypeError'>: foreach() takes exactly 3 
arguments (2 given)
URL: http://localhost:8080/submit/
File '/usr/lib/python2.7/site-packages/paste/exceptions/errormiddleware.py', 
line 144 in __call__
  app_iter = self.application(environ, sr_checker) File 
'/srv/mediagoblin.example.org/mediagoblin/mediagoblin/app.py', line 342 in 
__call__
  return self.call_backend(environ, start_response) File 
'/srv/mediagoblin.example.org/mediagoblin/lib/python2.7/site-packages/Werkzeug-0.10.4-py2.7.egg/werkzeug/wsgi.py',
 line 591 in __call__
  return self.app(environ, start_response) File 
'/srv/mediagoblin.example.org/mediagoblin/mediagoblin/app.py', line 276 in 
call_backend
  return self._finish_call_backend(request, environ, start_response) File 
'/srv/mediagoblin.example.org/mediagoblin/mediagoblin/app.py', line 318 in 
_finish_call_backend
  response = controller(request)
File '/srv/mediagoblin.example.org/mediagoblin/mediagoblin/decorators.py', line 
46 in wrapper
  return controller(request, *args, **kwargs) File 
'/srv/mediagoblin.example.org/mediagoblin/mediagoblin/decorators.py', line 73 
in new_controller_func
  return controller(request, *args, **kwargs) File 
'/srv/mediagoblin.example.org/mediagoblin/mediagoblin/decorators.py', line 46 
in wrapper
  return controller(request, *args, **kwargs) File 
'/srv/mediagoblin.example.org/mediagoblin/mediagoblin/decorators.py', line 73 
in new_controller_func
  return controller(request, *args, **kwargs) File 
'/srv/mediagoblin.example.org/mediagoblin/mediagoblin/decorators.py', line 102 
in wrapper
  return controller(request, *args, **kwargs) File 
'/srv/mediagoblin.example.org/mediagoblin/mediagoblin/submit/views.py', line 68 
in submit_start
  urlgen=request.urlgen)
File '/srv/mediagoblin.example.org/mediagoblin/mediagoblin/submit/lib.py', line 
208 in submit_media
  run_process_media(entry, feed_url)
File '/srv/mediagoblin.example.org/mediagoblin/mediagoblin/submit/lib.py', line 
257 in run_process_media
  task_id=entry.queued_task_id)
File 
'/srv/mediagoblin.example.org/mediagoblin/lib/python2.7/site-packages/celery-3.1.18-py2.7.egg/celery/app/task.py',
 line 551 in apply_async
  link=link, link_error=link_error, **options) File 
'/srv/mediagoblin.example.org/mediagoblin/lib/python2.7/site-packages/celery-3.1.18-py2.7.egg/celery/app/task.py',
 line 743 in apply
  request=request, propagate=throw)
File 
'/srv/mediagoblin.example.org/mediagoblin/lib/python2.7/site-packages/celery-3.1.18-py2.7.egg/celery/app/trace.py',
 line 355 in eager_trace_task
  uuid, args, kwargs, request)
File 
'/srv/mediagoblin.example.org/mediagoblin/lib/python2.7/site-packages/celery-3.1.18-py2.7.egg/celery/app/trace.py',
 line 253 in trace_task
  I, R, state, retval = on_error(task_request, exc, uuid) File 
'/srv/mediagoblin.example.org/mediagoblin/lib/python2.7/site-packages/celery-3.1.18-py2.7.egg/celery/app/trace.py',
 line 240 in trace_task
  R = retval = fun(*args, **kwargs)
File '/srv/mediagoblin.example.org/mediagoblin/mediagoblin/processing/task.py', 
line 101 in run
  processor.process(**reprocess_info)
File 
'/srv/mediagoblin.example.org/mediagoblin/mediagoblin/media_types/video/processing.py',
 line 393 in process
  vp8_threads=vp8_threads, vorbis_quality=vorbis_quality) File 
'/srv/mediagoblin.example.org/mediagoblin/mediagoblin/media_types/video/processing.py',
 line 255 in transcode
  store_metadata(self.entry, metadata)
File 
'/srv/mediagoblin.example.org/mediagoblin/mediagoblin/media_types/video/processing.py',
 line 136 in store_metadata
  'tags': get_tags(audio_info)
File 
'/srv/mediagoblin.example.org/mediagoblin/mediagoblin/media_types/video/processing.py',
 line 96 in get_tags
  taglist.foreach(x)
File '/usr/lib64/python2.7/site-packages/gi/types.py', line 113 in function
  return info.invoke(*args, **kwargs)
TypeError: foreach() takes exactly 3 arguments (2 given)


CGI Variables
-------------
  CONTENT_LENGTH: '12299157'
  CONTENT_TYPE: 'multipart/form-data; 
boundary=---------------------------14340140905998'
  CSRF_TOKEN: u'17691403577231759426'
  HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
  HTTP_ACCEPT_ENCODING: 'gzip, deflate'
  HTTP_ACCEPT_LANGUAGE: 'en-GB,en;q=0.5'
  HTTP_CONNECTION: 'keep-alive'
  HTTP_COOKIE: 'mediagoblin_csrftoken=17691403577231759426; 
mediagoblin_csrftoken=17691403577231759426; 
MGSession=eyJtZXNzYWdlcyI6W10sInVzZXJfaWQiOiIxIn0.CQ1hBg.fB9cuP0XHAK-J5O28SRb1AoL8VE'
  HTTP_DNT: '1'
  HTTP_HOST: 'localhost:8080'
  HTTP_REFERER: 'http://localhost:8080/submit/'
  HTTP_USER_AGENT: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 
Firefox/41.0'
  PATH_INFO: '/submit/'
  REMOTE_ADDR: '192.168.2.2'
  REQUEST_METHOD: 'POST'
  SERVER_NAME: '0.0.0.0'
  SERVER_PORT: '6543'
  SERVER_PROTOCOL: 'HTTP/1.1'


WSGI Variables
--------------
  application: <mediagoblin.app.MediaGoblinApp object at 0x206f250>
  paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at 
0x424a890>
  paste.throw_errors: True
  werkzeug.request: <Request 'http://localhost:8080/submit/' [POST]>
  wsgi process: 'Multithreaded'
----------------------------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]