-
-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyRevit addin does not load after installation of pyRevit 4.6.19 #579
Comments
Did you read the template issue contents? Did you try using the |
Hm. Seems like you are missing dependencies for whatever reason. Take a look at the |
I have the same NLog version as LauraGong, but I am able to uninstall it. Reinstalling did not help. I also tried uninstalling manually. |
@LauraGong I'm sorry for the inconvenience this has cause. Most probably this is a dependency conflict with another add-on. The registry keys are under |
@LauraGong and @clooz8 What Revit version and windows are you testing this on? if you can run the |
@feait The gitkraken install video on youtube is quite old and talks about a much older pyRevit version. See Deployment page on pyRevit Blog |
@eirannejad I am sorry, but after removing the pyRevit entries under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and cleaning up my Add-ons, the same problem returns. |
@eirannejad I thought as much! Just can't get it to work on Windows 7 it seems. I ran the debug, hope it helps. Results below:
|
@feait I need more info on the process for Windows 7. What happens after you run the installer? Does it fail or it installs but pyRevit doesn't load? Have you tried running |
The installer ran with no errors, pyRevit just didn't load when you opened Revit after. I noticed the debug seemed to be identifying Revit 2014 on the machine, generating an error as it is not actually installed on the machine (uninstalled years ago), and then stopping before detecting the other Revit versions installed. I've now deleted all registry entries relating to Revit 2014 and it seemed to have made a difference. It started to identify the 3 versions I do have installed (2016/2017/2019). I tried uninstalling pyRevit and then reinstalling. The add-in script then ran correctly when i opened Revit! Happy days! Thanks for the help and all the time I will save using pyRevit! |
@feait Is there any chance you can get me the build code of your 2014 Revit? Version is listed in the debug log but not the build code. This way I can add it to the code so it recognizes that version from now on. |
@eirannejad I'm afraid I may have deleted any reference to that when I did the registry purge. Sorry. Only further information I can offer is that it was likely last updated with the patch from 10 July 2014 as we have that archived. The patch had file version 19.0.53.0. |
@gdemol @LauraGong @clooz8 Any updates? Did this get resolved for as well? |
@eirannejad I am sorry, but actually not. As posted before I tried to remove the registry keys, but I still get the 'old' Nlog |
Hey all. Does 4.6.22 solve this issue? |
Okay seems like I need to recompile NLog too 🤦🏻♂️ Thanks for the feedback. I’ll push a solution on .23 release |
Great! Thanks for al the effort :) |
@gdemol Would you mind loading your Revit without pyRevit but with RevitPythonShell and run the script below in RPS? I'm trying to gather loaded assembly data to see which addon loads a different version of NLog from System import AppDomain, Version
for loadedAssembly in AppDomain.CurrentDomain.GetAssemblies():
loc = ''
try:
loc = loadedAssembly.Location
except Exception:
pass
print('{0}{1}{2}'.format(
loadedAssembly.GetName().Name.ljust(50),
str(loadedAssembly.GetName().Version).ljust(20),
loc)
) |
Oh, I am sorry, i didn't see your reply. Of course, you'll find the results attached: |
@gdemol Okay would you mind running the same code in RPS this time With pyRevit loaded (it is okay if it breaks on load. Just continue and run the code in RPS)? The last report doesn't have any NLog modules loaded so I'm thinking the assembly resolver might be loading an incorrect version when pyRevit is loading and asks for NLog. Paste the results in a text file. It's easier to work than Excel. Thanks |
Yeah, no problem. Here you'll find the results with pyRevit loaded (it did break on load): |
@gdemol Okay so the issue is that you have a different NLog version installed on your machine's GAC. When loading, dotnet assembly resolver grabs that NLog and pyRevit fails on load. GAC is at Temp solution is to remove the NLog from GAC so Revit loads the NLog provided by pyRevit. |
Renamed |
Nice! This works :) Great job! |
This morning I installed pyRevit 4.6.19 here: C:\Users\gmol\AppData\Roaming\pyRevit-Master
After that I started up Revit 2019, but pyRevit does not show up. What could be wrong or how can I load the addin manually?
Thanks in advance!
The text was updated successfully, but these errors were encountered: