#Windows 11 defender block .pyd/.dll. I cannot run app.
22 messages · Page 1 of 1 (latest)
<@&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>.
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:
- Microsoft Docs: Controlled folder access
- Stack Overflow: How to unblock .dll files flagged by Windows Defender
- Pandas GitHub Issues: DLL load failed (similar DLL load problems discussion)
Are you running this on a school computer?
does it have something to do with the limitations of a school computer?
this is SmartAppControl, a new feature introduced in win11
it can be disabled. but not re-enabled anymore
it doesnt support configurations or exclusions yet
No, home pc
schools give students windows 11 pcs?
unlike defender it doesnt quarantine files but silently blocks their execution
i was just asking if there was something to do with school computers to ethan
it sees them as threats?
I don't know
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
some schools have custom distros
bc they couldnt afford office
i do agrree with them
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)