Missing Python Runtime (search)

Windows specific questions, problems.
Post Reply
nigelcy

Missing Python Runtime (search)

Post by nigelcy »

I've installed ver 4.3.3. but cannot get 'search' to work.

When click View/Search Engine, I'm prompted to install Python. After installing python I start qbt again, click on View/Search Engine and am prompted again to install python.

I've uninstalled qbt and python, rebooted and reinstalled - the same problem occurs.

I've tried with the 32bit and 64bit versions of qbt but the problems the same.

I have Python 3.5.2 (32bit), Python 3.8.5 (64-bit) and Python Launcher installed.

Any thoughts what the problem might be?

The log shows:

15/03/2021 12:59 - Python not detected
15/03/2021 12:53 - UPnP/NAT-PMP: Port mapping failure, message: could not map port using UPnP: no router found
15/03/2021 12:53 - UPnP/NAT-PMP: Port mapping failure, message: could not map port using UPnP: no router found
15/03/2021 12:51 - Python not detected
15/03/2021 12:50 - Detected external IP: 46.199.204.52

TIA

Nigel
nigelcy

Re: Missing Python Runtime (search)

Post by nigelcy »

QBT 4.3.4.1 resolves the problem although I need to install search plug-ins.
jsin

Re: Missing Python Runtime (search)

Post by jsin »

I have been having the same issue as well. Qbittorrent installs the Python software but then nothing happens. I have tried with the 3 latest versions of Python as well as installing 3.8.5 manually.
I have also tried using the last 2 versions of Qbittorrent as well but each time the log file says "Python not detected". I have verified that Python was in my path for all installations.

Is anyone else still having issues?
User avatar
Peter
Administrator
Administrator
Posts: 2693
Joined: Wed Jul 07, 2010 6:14 pm

Re: Missing Python Runtime (search)

Post by Peter »

You can check out how Python detection works: https://github.com/qbittorrent/qBittorr ... gnapps.cpp

Maybe you should add the actual Python folder to the PATH?
But as you can see, the code by default checks quite a few locations/places (like registry). I'd try PATH.
jsin

Re: Missing Python Runtime (search)

Post by jsin »

Hello.
I've done all that. I've even installed Python for system wide users so that it would install C:\Program Files\Python310\. Qbittorrent still doesn't see the installation even when I specify python.exe and pythonw.exe.
I have checked all the registry keys and the paths are correct and I have even added the paths to the system variables but they still are not found.

When I let Qbittorrent install Python it installs successfully then acts like it is working but the search tab never appears.
User avatar
Peter
Administrator
Administrator
Posts: 2693
Joined: Wed Jul 07, 2010 6:14 pm

Re: Missing Python Runtime (search)

Post by Peter »

You have to enable search bar through View. It's not enabled by default.
jsin

Re: Missing Python Runtime (search)

Post by jsin »

I think I have found a resolution to my problem.
Last night I tried to uninstall Python again when I noticed that Malwarebytes blocked part of the removal.
It seems that Malwarebytes is causing the problem. I added several folders to Malwarebyte's include list and it seems to be working now.
Here is the log showing what is being blocked.
===============================================
Malwarebytes
www.malwarebytes.com

-Log Details-
Protection Event Date: 10/25/21
Protection Event Time: 7:56 PM
Log File: 17613a30-35ef-11ec-8b7e-aabbccddeeff.json

-Software Information-
Version: 4.4.8.137
Components Version: 1.0.1474
Update Package Version: 1.0.46400
License: Premium

-System Information-
OS: Windows 10 (Build 19042.1237)
CPU: x64
File System: NTFS
User: System

-Exploit Details-
File: 0
(No malicious items detected)

Exploit: 1
Malware.Exploit.Agent - T1059 - Execution, C:\Windows\SysWOW64\
import runpy
import sys
sys.path = [] + sys.path
sys.argv[1:] = ['uninstall', '-y', '--disable-pip-version-check', 'pip', 'setuptools']
runpy.run_module("pip", run_name="__main__", alter_sys=True)
, Blocked, 0, 392684, 0.0.0, ,

-Exploit Data-
Affected Application: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\python.exe
Protection Layer: APT Behavior Protection
Protection Technique: T1059 - Execution
File Name: C:\Windows\SysWOW64\
import runpy
import sys
sys.path = [] + sys.path
sys.argv[1:] = ['uninstall', '-y', '--disable-pip-version-check', 'pip', 'setuptools']
runpy.run_module("pip", run_name="__main__", alter_sys=True)

URL:



(end)
=============================================================

Maybe this will help someone else.
User avatar
Peter
Administrator
Administrator
Posts: 2693
Joined: Wed Jul 07, 2010 6:14 pm

Re: Missing Python Runtime (search)

Post by Peter »

Honestly, people should not use MBAM after their 2.0 release. Which was... years ago I think. The new version is just upsell, scare tactics and junkware. Unfortunately. I loved and adored the original software.
jsin

Re: Missing Python Runtime (search)

Post by jsin »

After posting on the Malwarebytes forum I think I found a solution.
You need to disable Penetration Testing in Malwarebytes.

Settings > Security Tab > Scroll down to Advanced Settings > Far Right tab "Penetration Testing "> Disable "Block Penetration Testing Attacks".

I have done this and after a day and multiple reboots the Search tab remains and is functional.

Image


I hope this helps some people.
Post Reply