python pyisntaller virus?

Hi everyone, I just tried to query something on the internet using a bs4 query and wanted to create an .exe file with pyinstaller, but I couldn't continue because I got the following error message:
The operation could not be completed successfully because the file contains a virus or potentially unwanted software."

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
7 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
regex9
1 year ago

There are many reasons for this message. Be it uncoded characters in the code, bound dependencies or just the fact that you use pyinstaller.

  1. Disable your security tools (MS Defender, etc.) in the time you build the package.
  2. Download it for analysis on a website like Total high. It may be possible to find the cause of error.
  3. Alternatively, you can try another buildtool (cx_freeze, nuitka, py2exe, …).

If you only want to use the program for yourself, it should be enough to pack it to the whitelist with your security tools.

However, if you want to publish it for other users, I would see two ways:

(a) You publish your project as an open source on a platform like GitHub. If you want to use it, you can assemble yourself.

(b) You invest more time in the analysis of why your program is recognized as a virus. Here, as mentioned above, the analysis with virus total (e.g.) would be a starting point.

r3h4bbbb
1 year ago

Yeah, that can happen, but it doesn’t mean there’s a virus in there. It is often said that a program carries out which are suspicious. Are you sure what you want to install there is no virus you can install it. In doubt, let finger by or install in any safespace (Vim or so) testwise

r3h4bbbb
1 year ago
Reply to  NikoPremium

yes then do that, these are just some warnings because he couldn’t check it or discovered anything dubioses, but if you wrote there yourself then wen itchy

r3h4bbbb
1 year ago

and shouldn’t help, then hit the question on Stackoverflow, here on GutFrage isn’t exactly as well helped as there. There you can also insert exact error codes and people can start with it.

r3h4bbbb
1 year ago

then take off at Windowsdefender or firewall add depending on where the error occurs.