Page 1 of 1

Filebot fails to execute when run from python script

Posted: 08 Jan 2020, 22:55
by phibins
Just started a fresh install of Ubuntu, the script (py) itself works fine since it worked right before the reinstall. So thats not the issue.

Here is the scenario:

When I run the filebot command through the PY script, it throws no errors, but fails to execute. (I do not know where the filebot logs themselves are located... i coulnt find them in /home/%user%/snap/filebot)

When I run the same command as the script on the same file I get the following error:

Code: Select all

ln: failed to create symbolic link '/home/phibins/snap/filebot/24/.config/gtk-2.0/gtkfilechooser.ini': File exists
But filebot isnt bothered and the program executes as expected, correctly naming all files.


I have a feeling that its some permission issue that i dont understand. But i did everything the same as my previous ubuntu reinstall, so my lack of experience has left me confused.

Re: Filebot fails to execute when run from python script

Posted: 09 Jan 2020, 10:46
by rednoah
:idea: Please read How to Request Help.


:idea: The logs are wherever your python script wants them to be. If your script is executing filebot, then your script is in charge of inheriting / redirecting / etc standard IO. ;)


:!: If you're using SNAP packages, then you'll also want to read up on how SNAP confinement (i.e. sandboxing) works and it's inherent limitations:
* viewtopic.php?f=11&t=5984
* viewtopic.php?f=11&t=5139


:arrow: I'd generally recommend installing via DEB / APT as that will run on your system normally as your user with the usual Unix / ACL permissions:
https://www.filebot.net/linux/apt.html

Re: Filebot fails to execute when run from python script

Posted: 10 Jan 2020, 04:29
by phibins
Thank you for your help rednoah!

I screwed something up tho. I uninstalled snap, then installed with curl and APT as per instructions.

If i go to my programs i can open filebot no problem, but when i use the command line i get the error now

Code: Select all

bash: /snap/bin/filebot: No such file or directory
How do i stop it from looking at snap for filebot?

Re: Filebot fails to execute when run from python script

Posted: 10 Jan 2020, 16:05
by rednoah
I guess you could restart your shell, or restart your computer, to get rid of anything that might have been cached in memory for quick access.