Missing Python Runtime (search)

Windows specific questions, problems.
User avatar
Peter
Administrator
Administrator
Posts: 2702
Joined: Wed Jul 07, 2010 6:14 pm

Re: Missing Python Runtime (search)

Post by Peter »

The version check fails all the time. Like there is a code that would parse the output and check the version.
But it just fails for some reason...

Image
bitcoin wrote: Tue Oct 17, 2023 5:04 pm TY! Installed. New logs after 2 successive tries to get Search bar enabled:...
bitcoin
Member
Member
Posts: 63
Joined: Thu Oct 12, 2023 4:24 pm

Re: Missing Python Runtime (search)

Post by bitcoin »

Not running cmd as an admin. Only difference is running it through task manager or through start menu search.

Code: Select all

Microsoft Windows [Version 10.0.22621.2428]
(c) Microsoft Corporation. All rights reserved.

C:\Windows\System32>whoami
i9-i\gebruiker

C:\Windows\System32>where python
C:\Users\Gebruiker\AppData\Local\Programs\Python\Python38\python.exe
C:\Users\Gebruiker\AppData\Local\Microsoft\WindowsApps\python.exe

C:\Windows\System32>py --version
No installed Python found!

C:\Windows\System32>python
Python 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 
Reading your other comments next!! By now I have removed both Python 3.10.11 and 3.12 with iObit. And I have rebooted.

Currently, according to iObit I have both Python 3.8.10 and the launcher. I will do another Python 3.8.10 setup and post the new logs next.

EDIT: ran 3.8 setup twice: once to remove it completely, once to install it
Image
https://imgur.com/a/4TDwG5E
bitcoin
Member
Member
Posts: 63
Joined: Thu Oct 12, 2023 4:24 pm

Re: Missing Python Runtime (search)

Post by bitcoin »

Trying again with your latest custom qB version:

Image

I now get an elevation prompt to run the full Python setup:
Image

Code: Select all

17-10-2023 20:30 - PythonInfo isValid() = FALSE: !version.isValid()
17-10-2023 20:30 - PythonInfo isValid() = FALSE: executableName isEmpty()
17-10-2023 20:30 - Python not detected
17-10-2023 20:30 - testPythonInstallation() ->outputSplit.size() <= 1 procOutput: 
17-10-2023 20:30 - testPythonInstallation() ->outputSplit.size() <= 1 0
17-10-2023 20:30 - procOutput is empty, procOutput = proc.readAllStandardError()
17-10-2023 20:30 - testPythonInstallation() C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0/python.exe  0
17-10-2023 20:30 - PythonInfo isValid() = FALSE: !version.isValid()
17-10-2023 20:30 - PythonInfo isValid() = FALSE: executableName isEmpty()
17-10-2023 20:30 - Found Python in USER.
17-10-2023 20:30 - reg search -> Regkey not found...
17-10-2023 20:30 - reg search -> else if (baseDir.exists(u'python.exe'_qs))
17-10-2023 20:30 - Detected possible Python v%ls location...
17-10-2023 20:30 - Searching registry via pythonSearchReg()...
17-10-2023 20:30 - testPythonInstallation() ->outputSplit.size() <= 1 procOutput: 
17-10-2023 20:30 - testPythonInstallation() ->outputSplit.size() <= 1 0
17-10-2023 20:30 - procOutput is empty, procOutput = proc.readAllStandardError()
17-10-2023 20:30 - testPythonInstallation() python  0
17-10-2023 20:30 - PythonInfo isValid() = FALSE: !version.isValid()
17-10-2023 20:30 - PythonInfo isValid() = FALSE: executableName isEmpty()
17-10-2023 20:30 - testPythonInstallation() ->outputSplit.size() <= 1 procOutput: 
17-10-2023 20:30 - testPythonInstallation() ->outputSplit.size() <= 1 0
17-10-2023 20:30 - procOutput is empty, procOutput = proc.readAllStandardError()
17-10-2023 20:30 - testPythonInstallation() python3  0
17-10-2023 20:30 - PythonInfo isValid() = FALSE: !version.isValid()
17-10-2023 20:30 - PythonInfo isValid() = FALSE: executableName isEmpty()
17-10-2023 20:30 - PythonInfo isValid() = FALSE: !version.isValid()
17-10-2023 20:30 - PythonInfo isValid() = FALSE: executableName isEmpty()
The search bar still isn't available and Python still isn't found.

Current situation:
Image

Code: Select all

Microsoft Windows [Version 10.0.22621.2428]
(c) Microsoft Corporation. All rights reserved.

C:\Windows\System32>whoami
i9-i\gebruiker

C:\Windows\System32>where python
C:\Users\Gebruiker\AppData\Local\Microsoft\WindowsApps\python.exe

C:\Windows\System32>python --version
Python 3.7.9
SO... Python 3.8 isn't found while just having been installed! This is so frustrating! :)

I think it's safe to conclude it's a problem with my system now? Not qB? Still open to suggestions! :)

TYSM!
bitcoin
Member
Member
Posts: 63
Joined: Thu Oct 12, 2023 4:24 pm

Re: Missing Python Runtime (search)

Post by bitcoin »

I went back to the registry. I somehow deleted the whole Python branch instead of the 3.10 and 3.12 hives.

It isn't looking good: no registry entries are found for HKCU!

Image

Permissions seem okay!
Image

And HKLM now seems okay too...
Image
Last edited by bitcoin on Tue Oct 17, 2023 6:44 pm, edited 1 time in total.
User avatar
Peter
Administrator
Administrator
Posts: 2702
Joined: Wed Jul 07, 2010 6:14 pm

Re: Missing Python Runtime (search)

Post by Peter »

Something about your system is not being liked by this Version check... I mean I could just give you a "fix", but we are trying to get to the bottom of this.

What system do you use? Windows 11 Pro?
What's your system language?
Are you the only user on the system?
Do you have UAC disabled/changed?
bitcoin
Member
Member
Posts: 63
Joined: Thu Oct 12, 2023 4:24 pm

Re: Missing Python Runtime (search)

Post by bitcoin »

Peter wrote: Tue Oct 17, 2023 6:41 pm Something about your system is not being liked by this Version check... I mean I could just give you a "fix", but we are trying to get to the bottom of this.

What system do you use? Windows 11 Pro?
What's your system language?
Are you the only user on the system?
Do you have UAC disabled/changed?
Image

Image

I have 1 other local account for a security camera. I have a local user account, not a Windows Cloud account.

Of course not! :)

Avast on or off doesn't make a difference neither.
bitcoin
Member
Member
Posts: 63
Joined: Thu Oct 12, 2023 4:24 pm

Re: Missing Python Runtime (search)

Post by bitcoin »

Peter wrote: Tue Oct 17, 2023 6:41 pm Something about your system is not being liked by this Version check... I mean I could just give you a "fix", but we are trying to get to the bottom of this.

What system do you use? Windows 11 Pro?
What's your system language?
Are you the only user on the system?
Do you have UAC disabled/changed?
Image

Image

I have 1 other local account for a security camera. I have a local user account, not a Windows Cloud account.

Of course not! :)

Avast on or off doesn't make a difference neither.
User avatar
Peter
Administrator
Administrator
Posts: 2702
Joined: Wed Jul 07, 2010 6:14 pm

Re: Missing Python Runtime (search)

Post by Peter »

Ok 1 sec I'm working on another build..
bitcoin
Member
Member
Posts: 63
Joined: Thu Oct 12, 2023 4:24 pm

Re: Missing Python Runtime (search)

Post by bitcoin »

Peter wrote: Tue Oct 17, 2023 6:55 pm Ok 1 sec I'm working on another build..
: ) awesome. I did another 3.8 setup but HKLU Python keys are not recreated :-\
User avatar
Peter
Administrator
Administrator
Posts: 2702
Joined: Wed Jul 07, 2010 6:14 pm

Re: Missing Python Runtime (search)

Post by Peter »

Yeah I tried to edit the way version.h works but no dice.
So it's a bit tough.

On Windows, sadly, the application will not run from terminal so to speak. It won't output anything.

There are a few qDebug() calls scattered through the code, but qDebug() is very hard to intercept. There are third-party apps that let you try, but I didn't have much luck with them. Only a few message came through.

And messing with version.h directly would break the asserts it's using.

I suppose this will turn into a ticket.
https://github.com/qbittorrent/qBittorrent/issues
You can link this thread too. I think it's the version.h misbehaving for some reason. But that file is beyond me. :(
bitcoin
Member
Member
Posts: 63
Joined: Thu Oct 12, 2023 4:24 pm

Re: Missing Python Runtime (search)

Post by bitcoin »

You went above and beyond... I'll stick around and see what GitHub says... Once more, thank you very much! And I love having my custom build now ;p

xxx
bitcoin
Member
Member
Posts: 63
Joined: Thu Oct 12, 2023 4:24 pm

Re: Missing Python Runtime (search)

Post by bitcoin »

A small and weird update...

qB, with lots of torrents seeding, for me always was an often not-responding piece of software. In the end, it'll catch up and start responding again. I always took that as a given and on face value.

The custom build you shared with me was especially troublesome. So troubling and freezing so often, I installed the official build again. I had a few freeze-free days and I was really surprised how smooth it worked, and how horrible your extra logging impacted performance previously.

Today, I updated to v4.6.0 and quickly had trouble again. Sorting on Date Added or other view changes immediately had qB freeze again and I'd have to wait a while before it became responsive again.

That got my attention. What the frack is going on??

Right after updating to 4.6.0 I once more tried the View... Search bar. This time, I got a full installation of Python 3.10.11. This surprised me, I don't remember removing Python. But okay, whatever. Worse was that the qB program hangs were back again.

Which triggered me enough to start iObit uninstaller and remove everything Python related once more. After it was done (I still had qB running) I did a new search for installed programs and iObit found 1 left over Python installation... Huh? It was 3.10.11. So I quit qB, did another iObit removal of Python and this time around it indeed was removed and a new search found no Python left on my system.

I once again started qB and... It once more stopped freezing!

SO, to conclude... While View... Search bar keeps triggering a Python 3.10.11 installation and apparently fails to find it no matter how often it installed / repaired Python 3.10.11, qB indeed does use Python 3.10.11 once installed! Why else would it become so unresponsive to any sorting action or torrent Force Check etc. Remove everything Python and qB works like a charm. Install it, have qB not find the installation and have it freeze again.

Like I said... Weird shit. I think I'm just gonna do a fresh installation and move everything to a new installation. Sigh.

Peace!
User avatar
Peter
Administrator
Administrator
Posts: 2702
Joined: Wed Jul 07, 2010 6:14 pm

Re: Missing Python Runtime (search)

Post by Peter »

Can't you purge Python and grab the latest 3.8 or 3.9 version from Python's website? Just to test..
(also make sure to log out and log in once you reinstalled python so Windows can see the new PATH)
bitcoin
Member
Member
Posts: 63
Joined: Thu Oct 12, 2023 4:24 pm

Re: Missing Python Runtime (search)

Post by bitcoin »

bitcoin wrote: Tue Oct 24, 2023 8:42 am A small and weird update...
Peace!
Never mind, it's as unresponsive again as your custom build appeared to be :(

But for real, for a few days my qB was smoooooth :)
bitcoin
Member
Member
Posts: 63
Joined: Thu Oct 12, 2023 4:24 pm

Re: Missing Python Runtime (search)

Post by bitcoin »

Peter wrote: Tue Oct 24, 2023 8:50 am Can't you purge Python and grab the latest 3.8 or 3.9 version from Python's website? Just to test..
(also make sure to log out and log in once you reinstalled python so Windows can see the new PATH)
Will do! But it's an utter mess atm. I even discovered qB has crash reports... Never had those. It's really choking on a few big torrents (300 to 400GB), even forgetting about them a few times.

Example bug report:

Code: Select all

qBittorrent has crashed
Please file a bug report at https://bugs.qbittorrent.org and provide the following information:





qBittorrent version: v4.6.0 (64-bit)
Libtorrent version: 2.0.9.0
Qt version: 6.4.3
Boost version: 1.83.0
OpenSSL version: 1.1.1w
zlib version: 1.3
OS version: Windows 11 Version 22H2 10.0.22621 x86_64

Caught signal: SIGABRT
```
 0# boost::stacktrace::basic_stacktrace >::init at G:\QBITTORRENT\boost_1_83_0\boost\stacktrace\stacktrace.hpp:78
 1# getStacktrace at G:\QBITTORRENT\qbt-src-4.6.0\src\app\stacktrace.cpp:35
 2# `anonymous namespace'::abnormalExitHandler at G:\QBITTORRENT\qbt-src-4.6.0\src\app\signalhandler.cpp:104
 3# raise at minkernel\crts\ucrt\src\appcrt\misc\signal.cpp:547
 4# abort at minkernel\crts\ucrt\src\appcrt\startup\abort.cpp:71
 5# terminate at minkernel\crts\ucrt\src\appcrt\misc\terminate.cpp:58
 6# __scrt_unhandled_exception_filter at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\utility\utility_desktop.cpp:93
 7# UnhandledExceptionFilter in KERNELBASE
 8# memcpy in ntdll
 9# _C_specific_handler in ntdll
10# _chkstk in ntdll
11# RtlFindCharInUnicodeString in ntdll
12# RtlRaiseException in ntdll
13# RaiseException in KERNELBASE
14# _CxxThrowException at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\throw.cpp:75
15# libtorrent::throw_invalid_handle at G:\QBITTORRENT\libtorrent\src\torrent_handle.cpp:115
16# libtorrent::session_handle::remove_torrent at G:\QBITTORRENT\libtorrent\src\session_handle.cpp:948
17# BitTorrent::SessionImpl::cancelDownloadMetadata at G:\QBITTORRENT\qbt-src-4.6.0\src\base\bittorrent\sessionimpl.cpp:2449
18# BitTorrent::SessionImpl::addTorrent_impl at G:\QBITTORRENT\qbt-src-4.6.0\src\base\bittorrent\sessionimpl.cpp:2789
19# BitTorrent::SessionImpl::addTorrent at G:\QBITTORRENT\qbt-src-4.6.0\src\base\bittorrent\sessionimpl.cpp:2652
20# AddNewTorrentDialog::accept at G:\QBITTORRENT\qbt-src-4.6.0\src\gui\addnewtorrentdialog.cpp:911
21# doActivate in qbittorrent
22# QMetaObject::activate in qbittorrent
23# QDialogButtonBoxPrivate::_q_handleButtonClicked in qbittorrent
24# QDialogButtonBox::qt_static_metacall in qbittorrent
25# doActivate in qbittorrent
26# QMetaObject::activate in qbittorrent
27# QAbstractButton::clicked in qbittorrent
28# QAbstractButtonPrivate::emitClicked in qbittorrent
29# QAbstractButtonPrivate::click in qbittorrent
30# QAbstractButton::mouseReleaseEvent in qbittorrent
31# QWidget::event in qbittorrent
32# QApplicationPrivate::notify_helper in qbittorrent
33# QApplication::notify in qbittorrent
34# QCoreApplication::notifyInternal2 in qbittorrent
35# QApplicationPrivate::sendMouseEvent in qbittorrent
36# QWidgetWindow::handleMouseEvent in qbittorrent
37# QWidgetWindow::event in qbittorrent
38# QApplicationPrivate::notify_helper in qbittorrent
39# QApplication::notify in qbittorrent
40# QCoreApplication::notifyInternal2 in qbittorrent
41# QGuiApplicationPrivate::processMouseEvent in qbittorrent
42# QGuiApplicationPrivate::processWindowSystemEvent in qbittorrent
43# QWindowSystemInterface::sendWindowSystemEvents in qbittorrent
44# QEventDispatcherWin32::processEvents in qbittorrent
45# QWindowsGuiEventDispatcher::processEvents in qbittorrent
46# QEventLoop::exec in qbittorrent
47# QCoreApplication::exec in qbittorrent
48# Application::exec at G:\QBITTORRENT\qbt-src-4.6.0\src\app\application.cpp:936
49# main at G:\QBITTORRENT\qbt-src-4.6.0\src\app\main.cpp:265
50# WinMain in qbittorrent
51# __scrt_common_main_seh at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
52# BaseThreadInitThunk in KERNEL32
53# RtlUserThreadStart in ntdll
Post Reply