# Create my first saleae python object

**URL:** <https://discuss.saleae.com/t/create-my-first-saleae-python-object/1655>\
**Category:** Logic 2 Software\
**Created:** [June 22, 2022, 8:52pm UTC](https://discuss.saleae.com/t/create-my-first-saleae-python-object/1655 "2022-06-22T20:52:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guyfomen](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@guyfomen](https://discuss.saleae.com/u/guyfomen)\
**Post date:** [June 22, 2022, 8:52pm UTC](https://discuss.saleae.com/t/create-my-first-saleae-python-object/1655/1 "2022-06-22T20:52:10Z")

</div>

Hi everyone,  
it is my first time with saleae.  
I’ve installed it on my windows machine and launch a notebook. My problem  
is that I can’t create an Saleae object. Here is my code

```auto
import saleae
from saleae import Saleae
s = Saleae()

```

I’m having this error message:  
INFO:saleae.saleae:Could not connect to Logic software, attempting to launch it now

Output exceeds the size limit. Open the full output data in a text editor

**ConnectionRefusedError** Traceback (most recent call last) File **c:\Users\guyfo\anaconda3\envs\Hexagon\lib\site-packages\saleae\saleae.py:211** , in Saleae. **init**** (self, host, port, quiet, args)**210 self.\_s = socket.socket(socket.AF\_INET, socket.SOCK\_STREAM)**→ 211**self.\_s.connect((host, port)) 212 except ConnectionRefusedError:**ConnectionRefusedError**: [WinError 10061] Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée

how can I solve the issue ?

---

<div class="post-metadata">

**Author:** ![markgarrison](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/markgarrison/32/23_2.png) [@markgarrison](https://discuss.saleae.com/u/markgarrison)\
**Post date:** [June 28, 2022, 1:56am UTC](https://discuss.saleae.com/t/create-my-first-saleae-python-object/1655/2 "2022-06-28T01:56:40Z")

</div>

Hello! Sorry for the trouble!

The Saleae python package actually only works with the Logic 1.x software. When you construct the Saleae class, it tries to find the 1.x software installed on your computer. You can see the search logic here:

> <https://github.com/ppannuto/python-saleae/blob/7dd9bd4921ec8b73466894133fc6254822cb2174/saleae/saleae.py#L104>

You can find the legacy 1.x software here:

> **[Logic 1.x Download](https://support.saleae.com/logic-software/legacy-software/older-software-releases)**

Note, since we don’t have a windows installer anymore, you have to either (A) start the Logic software manually, and make sure the socket server is enabled before running your python code, or (B) provide the path to Logic.exe to the Saleae class.

Sorry for the trouble! We’re working on an API for the new software right now.

---

<div class="post-metadata">

**Author:** ![guyfomen](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@guyfomen](https://discuss.saleae.com/u/guyfomen)\
**Post date:** [June 28, 2022, 1:15pm UTC](https://discuss.saleae.com/t/create-my-first-saleae-python-object/1655/3 "2022-06-28T13:15:07Z")

</div>

Hi Mark,  
Thank you so much for your feedback. I was able last week to find  
that going through the official web site of Saleae.  
I downloaded the Logic 1.x version and I’ve been working with both.  
Thank you once again and have a good day  
Regards,  
Guy Fomen
