AttributeError: 'function' object has no attribute 'Manager'

I am trying the API for automation testing. However, I have got two issues. Can anyone help me? Thanks!

  1. “from saleae import automation” → cannot import automation because automation is not declared in all
    2.“with automation.Manager.launch(application_path) as manager” → in
    with saleae.automation.Manager.launch(application_path) as manager:
    AttributeError: ‘function’ object has no attribute ‘Manager’

Hi @yujieguo1990,

I think you might be using the saleae PyPi package instead of the logic2-automation package. Could you confirm? You will want to make sure that only one is installed to avoid conflicts when importing.

pip install logic2-automation


Hi Ryan, thanks for the prompt reply. I have resolved the issue. Somehow, there are 3 python files in Saleae folder. I have removed them and script works as desired.

Glad you figured it out! Yep, those are from the saleae package, which is for Logic 1 and is separate from logic2-automation - unfortunately they share the same package name. Sorry for the confusion.