#Windows 11 defender block .pyd/.dll. I cannot run app.

22 messages · Page 1 of 1 (latest)

rose mirage
#

import pandas._libs.testing as _testing
ImportError: DLL load failed while importing testing: An Application Control policy has blocked this file.

grim lindenBOT
#

<@&987246964494204979> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
Import pandas._libs.testing as _testing ImportError: DLL load failed while importing testing: An Application Control policy has blocked this file.

The error you're encountering is because Windows Defender or an Application Control policy (like Windows Defender Application Control or Controlled Folder Access) is blocking the loading of .pyd or .dll files, which are native extensions used by Pandas.

Key points to address:

  • Windows Defender often flags .pyd/.dll files if they are considered untrusted or if app control policies are stringent.
  • This can happen especially if you downloaded or installed Python or Pandas from unofficial sources, or if Windows security settings are set to "strict."
  • To troubleshoot without code changes:
    • Ensure Python and all packages were installed via official channels (e.g., python.org, pip PyPI).
    • Check Windows Security → Virus & threat protection → Ransomware protection → Controlled folder access, and allow your Python folder or IDE through.
    • Temporarily disable real-time protection to verify if it is the cause.
    • Review any group policies or application control rules that might restrict DLL loading.

You should not rewrite or modify Pandas' internal import calls; instead, adjust your system's security settings or reinstall packages cleanly.


Useful links:

minor prism
#

Are you running this on a school computer?

cunning depot
zealous sky
#

it can be disabled. but not re-enabled anymore

#

it doesnt support configurations or exclusions yet

cunning depot
zealous sky
#

unlike defender it doesnt quarantine files but silently blocks their execution

cunning depot
cunning depot
rose mirage
zealous sky
#

its similar to defender in that it scans stuff and blocks them when it thinks its a threat

#

and just like defender it can have false positives bc its mostly whitelist based

cunning depot
#

bc they couldnt afford office

#

i do agrree with them

zealous sky
#

the only option in this case is to deactivate smartappcontrol on the pc. or to send the file to microsoft via their exclusion report form. but that process takes about 4 weeks (can be accelerated by paying money to be a business customer)