qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.51k stars 3.91k forks source link

WebUI: When the python3 executable isn't found WebUI silently doesn't do anything when the user tried to add search plugins #19729

Open yurivict opened 11 months ago

yurivict commented 11 months ago

qBittorrent & operating system versions

qBittorrent-4.5.5

What is the problem?

No error or warning in WebUI when there is no python3 executable, and the user tried to add search plugins. GUI does produce warnings in this situation.

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

No response

realdevnullius commented 11 months ago

I'm the user stuck with this problem. More details and steps taken can be found here: https://forum.qbittorrent.org/viewtopic.php?t=11055&start=30

luzpaz commented 6 months ago

@realdevnullius any progress on this ? (it looks like a workaround was found?)

luzpaz commented 1 month ago

@glassez any chance you have a moment to fix this for our FreeBSD friends ?

glassez commented 1 month ago

@glassez any chance you have a moment to fix this for our FreeBSD friends ?

It is WebUI issue, isn't it? I have no enough skills to deal with it.

luzpaz commented 1 month ago

@skomerko given your recent webui contributions, perhaps you could look into this? TIA

yurivict commented 1 month ago

When cmake configures the project, it knows the real path to the current python executable. (python3 is just a symlink.)

cmake should configure the project to use the real python path instead of python3.

inphobia commented 1 month ago

just a comment, on windows v5.1.0alpha1 (64-bit) libtorrent2 with python 3.1.2 installed under local user the python executable is just python.exe.

windows 11 however seems to have python.exe & python3.exe as part of "app installer". you can check this under settings -> apps -> advanced app settings -> app execution aliases.

i "fixed" python in qbittorrent by adding the local version in the %PATH% env setting and placing it pretty high, but now i see that app installer also has a python.exe this can lead to issues.

btw, if you execute python or python3 on a windows 11 23h2 it will actually just open the ms store on the python download page.

not sure what's the best solution here.

using the full path will however require you to change it every time you update python since it also includes the full version number.