I'm writing an addon (let's call it MyAddon) which depends on other addon (say DependencyAddon). If I install DependencyAddon first and then install MyAddon all works fine. Otherwise I get an ImportError, which is obvious.

Is it possible to show custom error message "Install DependencyAddon first" instead of traceback?

  • $\begingroup$ Do you know about the try/except Python statement? $\endgroup$
    – TheLabCat
    May 29, 2021 at 4:09
  • 1
    $\begingroup$ Could enable / disable if already installed blender.stackexchange.com/questions/58202/… Else Answer here, blender.stackexchange.com/a/213191/15543 possibly also answers here somewhat. $\endgroup$
    – batFINGER
    May 29, 2021 at 8:02
  • $\begingroup$ @ZargulTheWizard Yeah, I know about try/except. But in this case I'm getting even bigger traceback because of "During handling of the above exception, another exception occurred" $\endgroup$ May 29, 2021 at 8:53
  • $\begingroup$ @batFINGER Thanks! The second link is quite useful. $\endgroup$ May 29, 2021 at 8:54


You must log in to answer this question.

Browse other questions tagged .