Pyrevit: Revit error on launch with 4.6.11

Created on 15 Jan 2019  路  11Comments  路  Source: eirannejad/pyRevit

Running into a problem with version 4.6.11 (downloaded "base" deployment with CLI tool) on first launch. Seems to occur when %appdata%\pyRevit\20xx does not exist. After closing & re-opening that version of Revit, it loads with no issues.

image

Benign Bug Misc Compatibility Not pyRevit Issue

All 11 comments

Can NOT replicate this on my machine. Could this be a conflict with another addon that is using the Metro.Mahapps module for GUI? See this thread please: https://github.com/eirannejad/pyRevit/issues/442

No HIVE installed here. I'm re-installing right now and going to disable addins to see of I can narrow down the culprit. Will post back shortly.

Found it...dRofus. Once I disabled the addin, I no longer received the error when there was no user profile files for pyRevit.

Okay try renaming the manifest file for dRofus to something line ZZdRofus.addin . This pushes Revit to load this addon after pyRevit is loaded.

Hmm that now caused dRofus to throw an error (the addin manifest for dRofus is in the user profile...installed automatically by the client; I have pyRevit addin manifest in ProgramData).

image

With the originally named dRofus addin manifest, once pyRevit's user profile files are in place, the original error does not occur and dRofus' addin loads fine. If I prefix the dRofus manifest with "ZZ", it throws the error posted above.

Ugh

Always something :)

Okay closing this for now since it's technically not a pyRevit issue. Feel free to open again if more info comes out.

Ok, it'z bizarre that it is only causing the error on first load when dRofus addin exists. I'll talk to the developers to see if they have any insight.

pyRevit compiled all the C# code under ...\pyrevitlib\pyrevit\loader\basetypes on the fly at first Revit load and stores the compiled DLLs in %appdata%\pyRevit\20XX for each Revit version. On next launches, it loads those DLLs if the pyRevit code has not changed to increase performance and reduce load times. Somehow this exception occurs in there after the first compile. It has to have something to do with the loaded MahApps dlls

Just published 4.6.21. Please test and see if the dependency changes, resolves this conflict
https://github.com/eirannejad/pyRevit/releases/tag/v4.6.21

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AlexVilaOrtega picture AlexVilaOrtega  路  3Comments

kuldeep3618x picture kuldeep3618x  路  4Comments

jkcameron picture jkcameron  路  5Comments

thazell picture thazell  路  5Comments

DuncanLithgow picture DuncanLithgow  路  3Comments