Jump to content

Kaspersky antivirus is blocking my python script after some time


Recommended Posts

Posted

Hi,

I'm using windows 10 Pro 22H2 (Build 19045.3803)
Kaspersky anti virus : can't find the version but it's always up to date
Python version 3.11

So I didn't have this problem but this weekend I noticed it, my python code will stop working after launching it 3-5 times with a "[WinError 10054] An existing connection was forcibly closed by the remote host"

Example of code being blocked :

 

import requests

token_id = "7iT1GRYYhEop2nV1dyCwK2MGyLmPHq47WhPGSwiqcUg5"
url = f"https://api.dexscreener.com/latest/dex/tokens/{token_id}"
response = requests.get(url)
print(response.json())



Copy and pasting the code in a new file make it work again, renaming the file does not, so something is tracking that file and blocking its network callq.

right clic>disable protection on kaspersky do not solve the problem
right clic > close on kaspersky solves the problem.

Once kaspersky is closed everything works again.

What could I do? there is no report of anything being blocked and why in kaspersky anti virus.

Thanks.

Flood and Flood's wife
Posted (edited)
8 hours ago, Galdor said:

I'm using windows 10 Pro 22H2 (Build 19045.3803)

  1. Kaspersky anti virus : can't find the version but it's always up to date

Python version 3.11

So I didn't have this problem but this weekend I noticed it, my python code will stop working after launching it 3-5 times 

  • right clic>disable protection on kaspersky do not solve the problem
  • right clic > close on kaspersky solves the problem. Once kaspersky is closed everything works again.
  • there is no report of anything being blocked and why in kaspersky anti virus.

What could I do?

Hello @Galdor

Welcome back!

  1. The Version is *important* - IF it's the *old*  Kaspersky Anti-Virus, even tho it's "always up to date" that may be the problem, on the Windows hidden icons, right-click the Kaspersky icon, select About - it will show the full name, the version & the patch OR open the Kaspersky Anti-Virus application, select the Headset 🎧icon, next to the Settings⚙️icon, that with open the Customer Service page, on that page is: 

License key (hide this information before posting) 
Operating System 
Database release date
👉Application version & patch👈

Please post back? 

Thank you🙏
Flood🐳+🐋

Edited by Flood and Flood's wife
added * to 21.3

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...