Filebot fails to execute when run from python script

Support for Ubuntu and other Desktop Linux distributions
Post Reply
phibins
Posts: 20
Joined: 28 Mar 2018, 02:49

Filebot fails to execute when run from python script

Post 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.
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot fails to execute when run from python script

Post 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
:idea: Please read the FAQ and How to Request Help.
phibins
Posts: 20
Joined: 28 Mar 2018, 02:49

Re: Filebot fails to execute when run from python script

Post 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?
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot fails to execute when run from python script

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply