Import Client Module Error - AttributeError: ‘module’ object has no attribute - Talk Python

Hi @chrislarge305,

I can confirm that, as @alcampopiano suspected, the issue is a circular import, which Python doesn’t like! You’re importing AddMeasurementComponent from navigation, and you’re importing navigation from AddMeasurementComponent.

One way to solve this problem is to import the navigation module from inside the button-click function, eg:

  def button_save_click(self, **event_args):
    from .. import navigation

    # ...
7 Likes