Hello, Manuel486, sorry for interrupting.
I also encountered the same problem. how to launch correctly dll in pyRevit?
[Connecting libraries to pyRevit - #4 by Andrey-SPGR]
@Manuel486, I had similar warnings/issues. However, I was able to get my command to finally load with an invokebutton once I deleted the following folder, which pyRevit generates at Revit startup:
%appdata%\pyRevit\2023
The location might be different on your machine, but it’s saved in the same directory as the pyRevit_config.ini file. It seems that pyRevit will read the updated invokebutton when I do this. A Revit restart or pyRevit reload didn’t cut it. Maybe this helps? Also, if someone could explain why this works, I’d like to learn.