Create my first saleae python object

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

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\, 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 ?

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:

You can find the legacy 1.x software here:

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.

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
Guy Fomen