cannot checkin a video file. gives mako error

19 posts / 0 new
Last post
Community (not verified)
cannot checkin a video file. gives mako error

not sure what is the problem here, the path exists and all

Image: 
X-jo (not verified)

any help on this please?
 
thanks

X-jo (not verified)

after updating it to 4.1, i get this error
 

Image: 
Southpaw

The first thing I would check is if the temp_thumb.jpg file exists in the folder specified.  It is possible that ffmpeg is not generating the file correctly.  Can you also send an example of the trigger you are using as there my be a way to catch this error better.  Also if you comment out the lines in the trigger where the files are checked in, you will not get the error and will see only the ffmpeg output which may shed some light on what is happening.
 
cheers
-Dan

X-jo (not verified)

ls -l /spt/tactic/
total 0

I am not using any trigger, its just a plain video upload from any stype be it vfx/asset, vfx/leica . Its running the already saved script in tactic ie generate_video_thumbnail
its content are

# Generate a video thumbnail using FFMPEG

import os

# Setup a list of formats that thumbnails will be generated for.
formats = ['.mov', '.mp4', '.avi']

# Get the tempDir for placing the rendered thumbnail
thumb_path = "/spt/tactic/tactic_temp/temp/temp_thumb.jpg"
thumb_time = "3"

update_data = input.get("update_data")
snapshot_code = update_data.get("code")
path = server.get_path_from_snapshot(snapshot_code)

for format in formats:
    if format in path:
        ffmpeg = "ffmpeg  -itsoffset -%s  -i %s -y  %s"\
            %(thumb_time, path, thumb_path)
        #Execute FFMPEG
        os.system(ffmpeg)
    
        server.add_file(snapshot_code, thumb_path, file_type="icon", mode="move")

 

X-jo (not verified)

here is the error
 
request_id:  139826210768656 - #0000043
timestamp:  2013-11-12 16:53:39
user:  admin
simple method:  <function query at 0x36a7a28>
ticket:  5920fb61f6606574db6060a3f3d673d9
('config/custom_script', {   'filters': [['code', '10VFX']], 'single': True})
Duration: 0.031 seconds (request_id: 139826210768656 - #0000043)
Memory: 86884 KB
Increment: 1252 KB
method:  finish ({'project': 'vfx', 'ticket': '7dd2a433c09183b6f8d5cda5f4263555', 'language': 'javascript'}, {})
DEPRECATED: dynamic file in app_server.py
files:  [u'/home/apache/tacticTemp/upload/1052f32d7f7f0a2e49ddb2f1acc345df/butterfinger-nightmare.avi']
request_id:  139826168809232 - #0000044
timestamp:  2013-11-12 16:54:00
user:  admin
simple method:  <function query at 0x36a7a28>
ticket:  1052f32d7f7f0a2e49ddb2f1acc345df
('config/custom_script', {   'filters': [['code', '10VFX']], 'single': True})
Duration: 0.009 seconds (request_id: 139826168809232 - #0000044)
Memory: 86884 KB
Increment: 0 KB
method:  finish ({'project': 'vfx', 'ticket': '1743e9afc9f55a741305474174f477b1', 'language': 'javascript'}, {})
DEPRECATED: dynamic file in app_server.py
files:  [u'/home/apache/tacticTemp/upload/a3c22eb5e7210c0f06cabf9aa0fb26a9/butterfinger-nightmare.avi']
request_id:  139826126849808 - #0000045
timestamp:  2013-11-12 16:55:02
user:  admin
simple method:  <function query at 0x36a7a28>
ticket:  a3c22eb5e7210c0f06cabf9aa0fb26a9
('config/custom_script', {   'filters': [['code', '10VFX']], 'single': True})
Duration: 0.019 seconds (request_id: 139826126849808 - #0000045)
Memory: 86908 KB
Increment: 24 KB
method:  finish ({'project': 'vfx', 'ticket': '4e8a0e33cefaf7885bc1a736b4512afa', 'language': 'javascript'}, {})
DEPRECATED: dynamic file in app_server.py
files:  [u'/home/apache/tacticTemp/upload/3acc3695a3645a52e51bff39f5065dd3/butterfinger-nightmare.avi']
method:  start ({'project': 'vfx', 'ticket': '8d64484d41fca82cc5cf56457a82577f', 'language': 'javascript'}, 'vfx', {'description': 'web file_checkin vfx/leica?project=vfx&code=LEICA00005', 'title': 'Check-in'})
method:  abort ({'project': 'vfx', 'ticket': '0924975ba4c596cdd87a83eac04950bf', 'language': 'javascript'}, {})
Error:  Destination path '/home/apache/tacticTemp/cache/8d64484d41fca82cc5cf56457a82577f/butterfinger-nightmare_publish_v001.avi' already exists
Error moving [/home/apache/assets/vfx/leica/LEICA00005/publish/.versions/butterfinger-nightmare_publish_v001.avi] to cache directory in [/home/apache/tacticTemp/cache/8d64484d41fca82cc5cf56457a82577f] failed. Removed repository files
method:  start ({'project': 'vfx', 'ticket': '8d64484d41fca82cc5cf56457a82577f', 'language': 'javascript'}, 'vfx', {'description': 'web file_checkin vfx/leica?project=vfx&code=LEICA00005', 'title': 'Check-in'})
method:  abort ({'project': 'vfx', 'ticket': '04ddedbd1eece321310c2edb3cd06c4d', 'language': 'javascript'}, {})
Error:  Destination path '/home/apache/tacticTemp/cache/8d64484d41fca82cc5cf56457a82577f/butterfinger-nightmare_publish_v001.avi' already exists
Error moving [/home/apache/assets/vfx/leica/LEICA00005/publish/.versions/butterfinger-nightmare_publish_v001.avi] to cache directory in [/home/apache/tacticTemp/cache/8d64484d41fca82cc5cf56457a82577f] failed. Removed repository files
user:  admin
timestamp:  2013-11-12 17:04:06
method:  simple_checkin
ticket:  d32719d643f4741e61f84f8e799eb3dc
(   'vfx/leica?project=vfx&code=LEICA00005',
    'publish/butterfinger-nightmare.avi',
    'C:/sthpw/sandbox/vfx/leica/LEICA00005/publish/butterfinger-nightmare.avi',
    {   'checkin_type': '',
        'context_index_padding': 0,
        'description': '',
        'is_current': True,
        'mode': 'uploaded',
        'use_handoff_dir': False})
SQL Commit Count:  22
Duration: 0.412 seconds (request_id: 139825990481680 - #0000046)
AJO - update_data
{'is_synced': True, 'status': None, 'code': u'SNAPSHOT00001477', 'description': u'Initial insert', 'process': u'publish', 'timestamp': '2013-11-12 22:04:06.894076', 's_status': None, 'repo': None, 'is_current': True, 'search_code': u'LEICA00005', 'id': 1477, 'is_latest': True, 'revision': 0, 'project_code': u'vfx', 'level_id': None, 'lock_login': None, 'snapshot_type': u'file', 'lock_date': None, 'search_type': u'vfx/leica?project=vfx', 'metadata': u'{"video:codec_type": "video", "audio:time_base": "512/11155", "audio:codec_tag_string": "[2][0][0][0]", "audio:bits_per_sample": "4", "audio:codec_long_name": "ADPCM Microsoft", "audio:start_time": "0:00:00.000000", "video:start_time": "0:00:00.000000", "audio:r_frame_rate": "0/0", "video:display_aspect_ratio": "4:3", "__parser__": "FFMPEG", "video:time_base": "1/24", "video:has_b_frames": "0", "video:codec_long_name": "MPEG-4 part 2", "video:duration": "0:00:15.125000", "audio:sample_rate": "22.050 KHz", "video:index": "0", "video:width": "320", "video:avg_frame_rate": "24/1", "video:codec_tag_string": "DX50", "video:sample_aspect_ratio": "1:1", "audio:codec_time_base": "0/1", "audio:codec_name": "adpcm_ms", "video:height": "240", "Ext": "avi", "video:codec_time_base": "1/30000", "audio:codec_type": "audio", "audio:channels": "1", "audio:nb_frames": "329", "audio:duration": "N/A", "audio:codec_tag": "0x0002", "video:r_frame_rate": "24/1", "Dirname": "/home/apache/assets/vfx/leica/LEICA00005/publish/.versions", "Basename": "butterfinger-nightmare_publish_v001.avi", "video:codec_tag": "0x30355844", "video:pix_fmt": "yuv420p", "audio:index": "1", "video:codec_name": "mpeg4", "video:nb_frames": "363", "audio:avg_frame_rate": "11155/512"}', 'version': 1, 'server': None, 'label': None, 'context': u'publish/butterfinger-nightmare.avi', 'snapshot': u'<snapshot timestamp="Tue Nov 12 17:04:07 2013" context="publish/butterfinger-nightmare.avi" search_key="vfx/leica?project=vfx&amp;code=LEICA00005" login="admin" checkin_type="auto">\n  <file file_code="FILE00003537" name="butterfinger-nightmare_publish_v001.avi" type="main"/>\n</snapshot>\n', 'login': u'admin', 'level_type': None, 'search_id': 5, 'column_name': u'snapshot'}
AJO - snapshot_data
AJO - path
Error in Mako code:

<%def name='spt_run_code()'>
<%
# Generate a video thumbnail using FFMPEG

import os

# Setup a list of formats that thumbnails will be generated for.
formats = ['.mov', '.mp4', '.avi']

# Get the tempDir for placing the rendered thumbnail
thumb_path = "/spt/tactic/tactic_temp/temp/temp_thumb.jpg"
thumb_time = "3"

update_data = input.get("update_data")
snapshot_code = update_data.get("code")
path = server.get_path_from_snapshot(snapshot_code)

print "AJO - update_data"
print update_data
print "AJO - snapshot_data".format(snapshot_data)
print "AJO - path"
#print path

#print (" snapshot_code = ".format(snapshot_code))
#print (" path = ".format(path))

for format in formats:
    if format in path:
        ffmpeg = "ffmpeg  -itsoffset -%s  -i %s -y  %s"\
            %(thumb_time, path, thumb_path)
        #Execute FFMPEG
        os.system(ffmpeg)
    
        server.add_file(snapshot_code, thumb_path, file_type="icon", mode="move")
%>
</%def>

<%
spt_mako_results['spt_ret_val'] = spt_run_code()
%>

Error:  [Errno 2] No such file or directory: '/spt/tactic/tactic_temp/temp/temp_thumb.jpg'
--------------------------------------------------
  File "/home/apache/tactic/src/pyasm/command/command.py", line 240, in execute_cmd
    cmd.execute()
  File "/home/apache/tactic/src/tactic/command/python_cmd.py", line 160, in execute
    ret_val = cmd.execute()
  File "/home/apache/tactic/src/tactic/command/python_cmd.py", line 95, in execute
    results = my.get_results()
  File "/home/apache/tactic/src/tactic/command/python_cmd.py", line 78, in get_results
    template.render(server=server,spt_mako_results=spt_mako_results, kwargs=my.kwargs,**my.kwargs)
  File "/home/apache/tactic/src/mako/template.py", line 189, in render
    return runtime._render(self, self.callable_, args, data)
  File "/home/apache/tactic/src/mako/runtime.py", line 403, in _render
    _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
  File "/home/apache/tactic/src/mako/runtime.py", line 434, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/home/apache/tactic/src/mako/runtime.py", line 457, in _exec_template
    callable_(context, *args, **kwargs)
  File "memory:0x7f2be0108a90", line 28, in render_body
  File "memory:0x7f2be0108a90", line 19, in spt_run_code
  File "memory:0x7f2be0108a90", line 80, in render_spt_run_code
  File "/home/apache/tactic/src/client/tactic_client_lib/tactic_server_stub.py", line 2228, in add_file
    shutil.move(file_path, "%s/%s" % (handoff_dir, basename))
  File "/usr/lib64/python2.6/shutil.py", line 264, in move
    copy2(src, real_dst)
  File "/usr/lib64/python2.6/shutil.py", line 99, in copy2
    copyfile(src, dst)
  File "/usr/lib64/python2.6/shutil.py", line 52, in copyfile
    fsrc = open(src, 'rb')

Error:  [Errno 2] No such file or directory: '/spt/tactic/tactic_temp/temp/temp_thumb.jpg'
--------------------------------------------------
--------------------------------------------------
  File "/home/apache/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 302, in new
    cmd.execute_cmd(cmd)
  File "/home/apache/tactic/src/pyasm/command/command.py", line 385, in execute_cmd
    Trigger.call_all_triggers()
  File "/home/apache/tactic/src/pyasm/command/trigger.py", line 183, in call_all_triggers
    Trigger.execute_cmd(trigger, call_trigger=False)
  File "/home/apache/tactic/src/pyasm/command/command.py", line 240, in execute_cmd
    cmd.execute()
  File "/home/apache/tactic/src/tactic/command/python_cmd.py", line 160, in execute
    ret_val = cmd.execute()
  File "/home/apache/tactic/src/tactic/command/python_cmd.py", line 95, in execute
    results = my.get_results()
  File "/home/apache/tactic/src/tactic/command/python_cmd.py", line 78, in get_results
    template.render(server=server,spt_mako_results=spt_mako_results, kwargs=my.kwargs,**my.kwargs)
  File "/home/apache/tactic/src/mako/template.py", line 189, in render
    return runtime._render(self, self.callable_, args, data)
  File "/home/apache/tactic/src/mako/runtime.py", line 403, in _render
    _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
  File "/home/apache/tactic/src/mako/runtime.py", line 434, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/home/apache/tactic/src/mako/runtime.py", line 457, in _exec_template
    callable_(context, *args, **kwargs)
  File "memory:0x7f2be0108a90", line 28, in render_body
  File "memory:0x7f2be0108a90", line 19, in spt_run_code
  File "memory:0x7f2be0108a90", line 80, in render_spt_run_code
  File "/home/apache/tactic/src/client/tactic_client_lib/tactic_server_stub.py", line 2228, in add_file
    shutil.move(file_path, "%s/%s" % (handoff_dir, basename))
  File "/usr/lib64/python2.6/shutil.py", line 264, in move
    copy2(src, real_dst)
  File "/usr/lib64/python2.6/shutil.py", line 99, in copy2
    copyfile(src, dst)
  File "/usr/lib64/python2.6/shutil.py", line 52, in copyfile
    fsrc = open(src, 'rb')

Error:  [Errno 2] No such file or directory: '/spt/tactic/tactic_temp/temp/temp_thumb.jpg'

Southpaw

In this case you are running a trigger, it just one that was included in the VFX sample.  The error still implies that the jpg file (/spt/tactic/tactic_temp/temp/temp_thumb.jpg) does not exist.  I think that example is a bit old as it is hardcoded to a different path for the temp folder.  It looks like on your VM server the install directory is /home/apache so you should update the trigger:
change
thumb_path = "/spt/tactic/tactic_temp/temp/temp_thumb.jpg"
 
to
thumb_path = "/home/apache/tactic_temp/temp/temp_thumb.jpg"
 
Let me know what happend when you change this
cheers
-Dan

X-jo (not verified)

I had tried diff directories before too, i tried the one you mentioned, got this
[Errno 2] No such file or directory: '/home/apache/tactic_temp/temp/temp_thumb.jpg'
 
 
tried with /home/apache/tacticTemp/temp which already exists, but got 
[Errno 2] No such file or directory: '/home/apache/tacticTemp/temp/temp_thumb.jpg'
 
 
touched /home/apache/tacticTemp/temp/temp_thumb.jpg but got
This path [/home/apache/assets/vfx/leica/LEICA00004/publish/temp_thumb_publish_butterfinger-nightmare.avi_v001.jpg] already exists, 
tried again and got 
[Errno 2] No such file or directory: '/home/apache/tacticTemp/temp/temp_thumb.jpg'

X-jo (not verified)

removed that script, and checkin happened. need to debug and see what in the script is causing the problem. 

X-jo (not verified)

this is the command ffmeg is running
ffmpeg  -itsoffset -3  -i //192.168.0.107/apache/assets/vfx/leica/LEICA00005/publish/.versions/butterfinger-nightmare_publish_v001.avi -y  /spt/tactic/tactic_temp/temp/temp_thumb.jpg
 
//192.168.0.107/apache/assets is the Win32 Client Repo Dir, how do i access this ? i am running vmware image of tactic btw here

albert

To get to:

//192.168.0.107/apache
 
Open a Windows Explorer and in the path bar at the top, input:

\\192.168.0.107\apache
 
note the forward slashes are replaced with back slashes.
Albert

X-jo (not verified)

that is hardcoded as handoff directory.. i should be using the ip address of the vm machine instead of that right?
 
http://192.168.49.128 is the ip of the vmimage that i have.. what should i put for thie Win32 Client Repo Dir ? am using windows 7

X-jo (not verified)

anyone else got this working on their vmimage or enterprise versions of the latest 4.1?

X-jo (not verified)

Error:  [Error 2] The system cannot find the file specified
--------------------------------------------------
--------------------------------------------------
  File "C:/Program Files/Southpaw/tactic/src\pyasm\prod\service\api_xmlrpc.py", line 302, in new
    print "11-21-2013-ajo \n"
  File "C:/Program Files/Southpaw/tactic/src\pyasm\command\command.py", line 240, in execute_cmd
    cmd.execute()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\prod\service\api_xmlrpc.py", line 160, in execute
    my2.results = exec_meth(my, ticket, meth, args)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\prod\service\api_xmlrpc.py", line 192, in exec_meth
    results = meth(my, ticket, *new_args, **kwargs)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\prod\service\api_xmlrpc.py", line 3211, in simple_checkin
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\checkin.py", line 95, in execute
    my._execute()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\checkin.py", line 135, in _execute
    my.update_metadata(my.snapshot, my.files, my.file_objects)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\checkin.py", line 197, in update_metadata
    handler.execute()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\metadata.py", line 89, in execute
    metadata = parser.get_metadata()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\metadata.py", line 407, in get_metadata
    out = my.probe_file(path)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\metadata.py", line 421, in probe_file
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "C:\Python27\lib\subprocess.py", line 709, in __init__
    errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 957, in _execute_child
    startupinfo)
 
 
i cant even put a print statement..  no clue how to go ahead with this :(

X-jo (not verified)

i even removed the trigger and still get the error, so this is not the issue of the trigger script,
request_id:  3128 - #0000787
timestamp:  2013-11-21 16:17:09
user:  admin
simple method:  <function get_widget at 0x00000000035ED0B8>
ticket:  cac25dcf9ea6158ece0498f2d1d39336
(   'tactic.ui.widget.CheckinWdg',
    {   'args': {   'checkin_panel_script_path': '',
                    'checkin_relative_dir': '',
                    'checkin_script': '',
                    'checkin_script_path': '',
                    'checkin_ui_options': '',
                    'context': '',
                    'lock_process': '',
                    'mode': '',
                    'process': '',
                    'sandbox_dir': '',
                    'search_key': 'vfx/leica?project=tactic_test&code=LEICA00002',
                    'show_context': '',
                    'transfer_mode': '',
                    'validate_script_path': '',
                    'width': '800'},
        'libraries': {   'spt_button': True,
                         'spt_calendar': True,
                         'spt_checkin': True,
                         'spt_html5upload': True,
                         'spt_icon_button': True,
                         'spt_popup': True,
                         'spt_tab': True,
                         'spt_table': True},
        'values': {   }})
SQL Query Count:  45
BVR Count:  171
Sending: 186 KB
Num SObjects: 90
Duration: 0.514 seconds (request_id: 3128 - #0000787)
Memory: 0 KB
Increment: 0 KB
method:  start ({'project': 'tactic_test', 'ticket': '8dd9c9a2fac08f931dc7b7e12e353457', 'language': 'javascript'}, 'tactic_test', {'description': 'web file_checkin vfx/leica?project=tactic_test&code=LEICA00002', 'title': 'Check-in'})
user:  admin
timestamp:  2013-11-21 16:17:13
method:  simple_checkin
ticket:  1e81101b8556a572ff4cb65bc0d64895
(   'vfx/leica?project=tactic_test&code=LEICA00002',
    'publish/butterfinger-last.avi',
    'C:/spt/test/sandbox/tactic_test/leica/LEICA00002/publish/butterfinger-last.avi',
    {   'checkin_type': '',
        'context_index_padding': 0,
        'description': '',
        'is_current': True,
        'mode': 'uploaded',
        'use_handoff_dir': False})
Error:  [Error 2] The system cannot find the file specified
--------------------------------------------------
  File "C:/Program Files/Southpaw/tactic/src\pyasm\command\command.py", line 240, in execute_cmd
    cmd.execute()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\prod\service\api_xmlrpc.py", line 160, in execute
    my2.results = exec_meth(my, ticket, meth, args)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\prod\service\api_xmlrpc.py", line 192, in exec_meth
    results = meth(my, ticket, *new_args, **kwargs)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\prod\service\api_xmlrpc.py", line 3211, in simple_checkin
    checkin.execute()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\checkin.py", line 95, in execute
    my._execute()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\checkin.py", line 135, in _execute
    my.update_metadata(my.snapshot, my.files, my.file_objects)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\checkin.py", line 197, in update_metadata
    handler.execute()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\metadata.py", line 89, in execute
    metadata = parser.get_metadata()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\metadata.py", line 407, in get_metadata
    out = my.probe_file(path)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\metadata.py", line 421, in probe_file
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "C:\Python27\lib\subprocess.py", line 709, in __init__
    errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 957, in _execute_child
    startupinfo)

Error:  [Error 2] The system cannot find the file specified
--------------------------------------------------
--------------------------------------------------
  File "C:/Program Files/Southpaw/tactic/src\pyasm\prod\service\api_xmlrpc.py", line 302, in new
    cmd.execute_cmd(cmd)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\command\command.py", line 240, in execute_cmd
    cmd.execute()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\prod\service\api_xmlrpc.py", line 160, in execute
    my2.results = exec_meth(my, ticket, meth, args)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\prod\service\api_xmlrpc.py", line 192, in exec_meth
    results = meth(my, ticket, *new_args, **kwargs)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\prod\service\api_xmlrpc.py", line 3211, in simple_checkin
    checkin.execute()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\checkin.py", line 95, in execute
    my._execute()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\checkin.py", line 135, in _execute
    my.update_metadata(my.snapshot, my.files, my.file_objects)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\checkin.py", line 197, in update_metadata
    handler.execute()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\metadata.py", line 89, in execute
    metadata = parser.get_metadata()
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\metadata.py", line 407, in get_metadata
    out = my.probe_file(path)
  File "C:/Program Files/Southpaw/tactic/src\pyasm\checkin\metadata.py", line 421, in probe_file
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "C:\Python27\lib\subprocess.py", line 709, in __init__
    errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 957, in _execute_child
    startupinfo)

Error:  [Error 2] The system cannot find the file specified

oboreo
oboreo's picture

It's trying to extract metadata in src/pyasm/checkin/metadata.py
 

 def probe_file(my, fpath):
        cmd = ['ffprobe', '-show_streams', '-pretty', '-loglevel', 'quiet', fpath]
 
In Linux, ffprobe which is part of ffmpeg is availble to run . In your windows environment, you can install ffmpeg as well. and you may need to provide the full path in the first argument in 'ffprobe' so that it can find the file to run it. Or a better way I think is to put a try / except around its caller in get_metadata()
 
def get_metadata(my):
        path = my.kwargs.get("path")
        try:
            out = my.probe_file(path)
        except:
            out = ''
        # sanitize output
        out = my.sanitize_data(out)
 
        metadata = my.parse_output(out)
 
        return metadata
 
 
 
 
 
X-jo (not verified)

its not working still.. have you got it working at your end, in a windows environment?

spideynick

Hi guys, sorry to resurrect this thread, but I'm also getting the strange weird issue. Checked the solutions above and none of them worked.
I'm still wondering if it's barfing during the ffmpeg conversion or is it a write permission somewhere on disk. The folders to the temp location exists but nothing get's created there.
Any help would be great.
 
-Nic

rigatron

hi guys any luck getting it to work ??? i keep getting that error folder or file missing