pyRevit icon indicating copy to clipboard operation
pyRevit copied to clipboard

Failed to initialize the add-in PyRevitLoad

Open lrhammar opened this issue 5 years ago • 1 comments

Describe the bug image

I have to install this i have to run the exe as a different user which has admin rights, and I believe this is causing all the problems I'm having. I can't run the cmd line without running it as a different user with admin privilege's.

I think because I am logged in as a different user when i run the command line scripts to do the attach command it is trying to put things into that other user's appdata which is (adm_###) and not (###)

It looks like in the most recent release you fixed an issue similar to this...

I followed directions to repath the master clone because it came up as unknown and I think I got that part working correctly.

To Reproduce Steps to reproduce the behavior: Step 1:Open Revit Step 2: Get error

  • OS: [e.g. iOS]
  • pyRevit Version [e.g. 22]
  • pyRevit Environment: Open a command prompt and run the command below. Replace these lines with the results. Take a look at this markdown guide and wrap the command results in ``` when pasting here for correct formatting.

==> Registered Clones (full git repos) ==> Registered Clones (deployed from archive/image) master | Deploy: "basepublic" | Branch: "master" | Version: "4.8.8" | Path: "C:\Program Files\pyRevit-Master" ==> Attachments master | Product: "2021 First Customer Ship" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2020.2.2" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2019.2.1" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2018.3.3 Security Fix" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2017.2.4" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2016 Service Pack 2" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2015 Update Release 14" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2014 Update Release 3" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2013 Update Release 3" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2012 Update Release 2" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers ==> Installed Extensions ==> Default Extension Search Path C:\Users\adm_***\AppData\Roaming\pyRevit\Extensions ==> Extension Search Paths ==> Extension Sources - Default https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json ==> Extension Sources - Additional ==> Installed Revits 2021 First Customer Ship | Version: 21.0.0.383 | Build: 20200220_1100(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021" 2020.2.2 | Version: 20.2.20.31 | Build: 20200426_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2020" 2019.2.1 | Version: 19.2.10.7 | Build: 20190225_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2019" 2018.3.3 Security Fix | Version: 18.3.3.18 | Build: 20190510_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2018" 2017.2.4 | Version: 17.0.1158.0 | Build: 20181011_1645(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2017" 2016 Service Pack 2 | Version: 16.0.490.0 | Build: 20150714_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2016" 2015 Update Release 14 | Version: 15.0.421.0 | Build: 20160512_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2015" 2014 Update Release 3 | Version: 13.11.4 | Build: 20140709_2115(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2014" 2013 Update Release 3 | Version: 12.11.10090 | Build: 20130531_2115(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit MEP 2013" 2012 Update Release 2 | Version: 11.9.16213 | Build: 20110916_2132(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit MEP 2012" ==> Running Revit Instances PID: 12180 | 2020.2.2 | Version: 20.2.20.31 | Build: 20200426_1515(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2020" ==> User Environment Microsoft Windows 10 [Version 10.0.18363] Executing User: CORP\adm_### Active User: CORP### Admin Access: Yes %APPDATA%: "C:\Users\adm_###\AppData\Roaming" Latest Installed .Net Framework: 4.8 Installed .Net Target Packs: v3.5 v4.0 v4.5 v4.5.1 v4.5.2 v4.6 v4.6.1 v4.6.2 v4.7 v4.7.1 v4.7.2 v4.8 v4.X Installed .Net-Core Target Packs: v2.1.202 v2.1.812 v5.0.202 pyRevit CLI 4.8.8.0

Additional context I know it has something to do with the fact that I have to install as a different user with admin rights.

lrhammar avatar Jun 07 '21 20:06 lrhammar

I figured it out.

I did a pyrevit caches clear --all then when i did the attach it finally worked.

one way to check, if you are installing it to all users, you dont want to have the pyrevit.addin in the user appdata folder, it should only be found in the programdata folder

lrhammar avatar Jun 07 '21 21:06 lrhammar