-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v5.0.0beta: Python Runtime can't be found despite manually setting the Python path #20737
Comments
You need to put the full path to python.exe in the "Python executable path" option. For example: |
Thank you for catching that one. Entering the full path, including the python.exe executable, DID NOT fix the problem. qBT 4 and 5 still ask to install Python themselves, but after doing so it will still not find python.exe. Even worse, v5 is now constantly freezing and not responding at all (despite having qBittorrent.exe excluded from Sticky Password in its program settings) Thank you! https://snipboard.io/ls8uST.jpg https://snipboard.io/GplZoh.jpg `C:\Users\Gebruiker>python --version C:\Users\Gebruiker>where python From the LOG: |
It indicates one thing: qbt couldn't access the executable for unknown reasons. Could be insufficient permission or something is blocking the access. For the record, I couldn't reproduce the issue, it works for me. |
What reasons could there be? Running qBT as an admin makes no change. Disabling Avast AV makes no difference either. The OS finds it just fine, so does the installer used by qBT. But once it's installed, somehow qBT just can't see it. What else to look at? :( |
Try downloading a the "Embeddable package" from Python's website @realdevnullius . Extract it to like to your Documents folder (something writable, accessible) and give that .exe path to qB. |
Downloaded and extracted the embedded zip file to: I entered that path statement in qB ("D:\python-3.12.3-embed-amd64\python.exe"). I restarted qB and clicked View... Again, an installer prompt appears telling me that Python is not installed. Like, how!!? :( I just can't figure this out. Someone even built a custom qB 4 wallet with more log notifications but even that didn't teach us anything new. It just won't work on this specific PC :( The installation prompt will run each time and the installer itself will recognize Python already installed and is done rather quickly (nothing to do!). |
I also did this: #20392 (comment) (including 2 PC reboots and an uninstall with IObit Uninstaller). As expected: qB keeps behaving the same: Python is not found. It's maddening I tell ya! |
@realdevnullius Are you running Windows 11 via parallels desktop on mac or any other VM?
|
@xavier2k6 thanks for the question: no, just regular Windows 11 on a regular Intel PC. |
@realdevnullius Under "Manage App Execution Aliases" Are When installing did you select "Add Python 3.x to PATH"? |
Author did set it in qBittorrent |
Edited #20737 (comment) to add images via github in case those links go down. |
PATH:
![]() |
Still open? Come on! Let's see some movement on this issue. |
@realdevnullius What version & build of Windows 11 is this? Do you install python through the Microsoft store? Have you ran Skimming through the forum posts, it looks like you made modifications to the windows registry as well no? |
|
@realdevnullius I didn't want you to install any other version when prompted (I should've made that clear/selecting no was the preferred option) Can you post the new logs? Can you post a screenshot of command prompt when you issue |
Done!
Logs:
D: is being set by qB 5. I'll change that to a new path and restart qB: Which gives, after View... Search... and a new setup routine by qB (which detects the existing Python installation so basicly does nothing)...
BUT... Checking if C:\Users\Gebruiker\AppData\Local\Microsoft\WindowsApps\python.exe exists... the answer is NO!
So I changed the path in qB to: Which MAKES qB NON RESPONDING AGAIN! Like the bug I had with Sticky Password... I'll post the new log in a reply once qB starts responding again... Sigh!! |
After closing Sticky Password:
Restarted qB, tried another View... Got this log:
|
Leave this empty/clear it & close qBittorrent.....make sure it's fully closed before reopening, do not install any other version if prompted & also post these logs.
|
@realdevnullius Is this the only machine you are having issue with? |
yes |
I'd say nuke it & start again, in your recent screenshots it seems to show |
BTW: the not responding/freezing issue for beta1 is known & was posted on our main site.
|
Updated my reply #20737 (comment) |
Nah, this is a different one. I had it before, turned out to be Sticky Pwd but I closed that AND I had qB executable excluded... No idea wtf is going on there :) |
I haven't found any other issues... Just qB :) |
@Chocobo1, @qbittorrent/bug-handlers |
The forum actually made a custom version with extra logging for me (v4). It showed nothing. |
@realdevnullius Note that you should change |
There's no Python3.exe on my system: that would assume Python was installed through the App Store, no?
So I'll use C:\Users\Gebruiker\AppData\Local\Programs\Python\Python310\python.exe instead I downloaded an official torrent file for Bit Che but nothing happens. The torrent isn't added either. |
User error? Not an issue? lmao... sure! |
As pointed out, there's something wrong with your environment on that machine & I don't believe that you ran the command correctly previously. |
I have a guess that this test fails for some reason. qBittorrent/src/base/utils/foreignapps.cpp Lines 268 to 271 in 7b45566
qBittorrent/src/base/utils/foreignapps.cpp Lines 55 to 90 in 7b45566
|
There's no space between |
This is NOT a user problem. I havea windows 11 machine and it worked on the same day until I was prompted to update Qubitttorent. Then I updated QBT and then all of a sudden search plugins dissappeared This is a Qubittorrent 5.0.0 problem — or else something wrong with python 3.12, both of which are the latest versions but the Qbittorent is the newer thing here. So that's where the problem lies in my opinion. |
@Mike-Litoreece this issue is different to what you are experiencing! |
@realdevnullius Install v5.0.0 official build now & use a supported release of OS & not "insiders build" - 24H2 is also out now too. |
Somewhat related to the issue, I noticed following lines in the QB log:
For me searching for
Also, pay attention to: This is a consensus among Python maintainers, nobody uses python3 spelling anymore. |
Having the same issue on macOS after updating to qBittorrent 5.0. Everything worked perfectly before, but after updating to version 5.0, qBittorrent suddenly can’t detect Python, even though it’s obviously installed. |
@vardecab There have been issues identified with users using python 3.8.10 & also with an unofficial plugin.
|
@Chocobo1 FYI -> #20737 (comment) |
Closing!
Please update to latest qBittorrent 5.0.0 ATTOW & If any issues are experienced on a supported system, please open a new ticket. |
Some things I noticed from what realdevnullius posted:
Conclusion, he made a mess of his PC and only complicated things. For you developers to spend so much time on this is a waste of time and resources, which are scarce already. Just my advise. |
qBittorrent & operating system versions
qBittorrent: 5.0.0 beta 1, LT20, x64
Operating system: Windows 11 (10.0.22631)
Qt: 6
What is the problem?
This issue is hunting me on 1 PC for the longest time...
In regards to version 4: https://forum.qbittorrent.org/viewtopic.php?t=11055
In regards to version 5: https://forum.qbittorrent.org/viewtopic.php?t=11409
No matter what we tried, qBittorrent just won't find ANY Python installed, ever. And yes, I think I tried it all and that's why I went to v5 beta in the hopes that manually setting the Python path (finally!) would fix my issue.
It did not. So I made a bug report. Screenshots, steps taken, etc. are all in the forum threads.
Steps to reproduce
No steps, it always fails no matter what I try.
Additional context
See forum links please
Log(s) & preferences file(s)
I have no settings file I can upload. All I found were:
qbittorrent.ini
qbittorrent-data.ini
(empty) watched_folders.json
categories.json and an RSS folder.
I doubt there's anything of interest in it.
I have not been able to find a log file, though I posted console logs to the forum threads.
The text was updated successfully, but these errors were encountered: