TACTIC Open Source
4.8.0.b05, simple_checkin does not upload the image - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: 4.8.0.b05, simple_checkin does not upload the image (/showthread.php?tid=265)



4.8.0.b05, simple_checkin does not upload the image - Nachogor - 07-21-2022

Hello all,
I have a problem, I hope you can help me.
We had been working with the python2.7 and 4.5.5 tactic API versions. VM fedora 30. Everything works fine.

Now,
We want to move to python 3 with the 4.8.0.b05 API  and I meet this problem when I want to upload a thumbnail.

Code:
server.simple_checkin(my_search_key,  icon’, file_path=”c:\\my_thumbnail_path\\AAMD_104B_E04_010.jpg,)

I get this error:
xmlrpc.client.Fault: <Fault 1: 'File [/spt/tactic/tactic_temp/upload/210964e3ce5361ba2f2/AAMD_104B_E04_010.jpg] does not exist'>

if I manually move the AAMD_104B_E04_010.jpg to the folder ;/spt/tactic/tactic_temp/upload/210964e3ce5361ba2f2/’  inside the VM and run the code it works, but it's not the final idea.

Maybe there's something I'm doing wrong or I'm missing something.


Thanks a lot.


RE: 4.8.0.b05, simple_checkin does not upload the image - rigatron - 07-26-2022

Think the latest vm doesnt have the ffmpeg installed, you need to install it and i guess it should generate the image.


RE: 4.8.0.b05, simple_checkin does not upload the image - Nachogor - 07-26-2022

Thanks Rigatron, now Daniel has he´s own account, so he will try it and let us know. Cheers!
Nacho.


RE: 4.8.0.b05, simple_checkin does not upload the image - lwinmoe - 08-08-2022

I was able to upload by adding mode="upload" (at least on 4.9, should work in 4.8, too):

server.simple_checkin(my_search_key, "publish", file_path="foo.png", mode="upload")


RE: 4.8.0.b05, simple_checkin does not upload the image - Daniel - 08-16-2022

Thanks for the help iwinmoe , you saved me!