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

**URL:** <https://discuss.saleae.com/t/attributeerror-function-object-has-no-attribute-manager/2640>\
**Category:** Logic 2 Software\
**Created:** [January 3, 2024, 7:33pm UTC](https://discuss.saleae.com/t/attributeerror-function-object-has-no-attribute-manager/2640 "2024-01-03T19:33:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yujieguo1990](https://avatars.discourse-cdn.com/v4/letter/y/58f4c7/32.png) [@yujieguo1990](https://discuss.saleae.com/u/yujieguo1990)\
**Post date:** [January 3, 2024, 7:33pm UTC](https://discuss.saleae.com/t/attributeerror-function-object-has-no-attribute-manager/2640/1 "2024-01-03T19:33:11Z")

</div>

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’

---

<div class="post-metadata">

**Author:** ![huffman](https://avatars.discourse-cdn.com/v4/letter/h/71e660/32.png) [@huffman](https://discuss.saleae.com/u/huffman)\
**Post date:** [January 3, 2024, 8:55pm UTC](https://discuss.saleae.com/t/attributeerror-function-object-has-no-attribute-manager/2640/2 "2024-01-03T20:55:40Z")

</div>

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`

Ryan

---

<div class="post-metadata">

**Author:** ![yujieguo1990](https://avatars.discourse-cdn.com/v4/letter/y/58f4c7/32.png) [@yujieguo1990](https://discuss.saleae.com/u/yujieguo1990)\
**Post date:** [January 3, 2024, 9:50pm UTC](https://discuss.saleae.com/t/attributeerror-function-object-has-no-attribute-manager/2640/3 "2024-01-03T21:50:59Z")

</div>

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.

 ![MicrosoftTeams-image](https://canada1.discourse-cdn.com/flex030/uploads/saleae/original/2X/0/0351f6f15633fbe6d51a3d4e4d81fcf475a2c5d1.png)

---

<div class="post-metadata">

**Author:** ![huffman](https://avatars.discourse-cdn.com/v4/letter/h/71e660/32.png) [@huffman](https://discuss.saleae.com/u/huffman)\
**Post date:** [January 3, 2024, 9:54pm UTC](https://discuss.saleae.com/t/attributeerror-function-object-has-no-attribute-manager/2640/4 "2024-01-03T21:54:13Z")

</div>

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.

Ryan
