Unable to load Pyrevit after custom extension

I have tried to create an extension for pyrevit using microsoft copilot. It is working well in Revit 2024 but when i started my revit 2025 and 2026 it is unable to load pyrevit. I am not sure if this is an issue with extension or is it something related to company security policy. I tried uninistalling, deleting the appdata folder and reinstalling pyrevit but it didn’t fix the issue.

First image show error i got after running custom extension

Second image shows error after different version of pyrevit was installed by IT team

Would be really thankfull as i need pyrevit for my custom task. I was creating script in claud and using it through pyrevit. This one has created a setback for me.

You installed the admin version of pyrevit, depending on company policy settings and whatnot this can lead to issues, as it is trying to access the ProgramData folder.
I recommend using the non-admin version, and do a clean install. Remove any leftovers in ProgramData and AppData to make sure no conflicts arise.

Also always provide the

pyrevit env

output, that makes helping eaiser