<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr"><div>Hi Ighoyot,<span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;"><br></span></div><div><br></div><div>I suspect you might not have configured the host and port correctly. cc-ing Teon as he&#39;s the expert on the LSL client. Can you give us the full steps to reproduce? How did you configure your LSL recorder?<br></div><div><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;"></span></div><div><br></div><div>Mainak</div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 2, 2019 at 4:04 AM Ben Ighoyota Ajenaghughrure &lt;<a href="mailto:ighoyota@tlu.ee">ighoyota@tlu.ee</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)">        External Email - Use Caution        </span></p><p></p><div dir="ltr">Dear Python MNE community,<div><br></div><div>I am new to real-time signal acquisition and need some help here.</div><div><br></div><div>I have installed LSL recorder and  assumed this to be server. I want to acquire and process the bio-signals with Python MNE  real-time LSLClient. However i keep getting some errors as shown below, i tried to do pip install mne_realtime but that does not work for me either, i am not sure why it is failing to connect to server</div><div><br></div><div>I am assuming that the LSL recorder is the server, unless i am wrong, please then can someone point me to the right direction where i can i find the LSLserver for MNE</div><div><br></div><div>CODE</div><div>import matplotlib.pyplot as plt<br></div><div>from mne.datasets import sample<br>from <a href="http://mne.io" target="_blank">mne.io</a> import read_raw_fif<br>from mne.realtime import LSLClient, MockLSLStream<br><br>print(__doc__)<br>with LSLClient(info=None,host=&#39;localhost&#39;, port=None, tmin=None, tmax=2, buffer_size=1000, verbose=None) as client:<br>        client_info = client.get_measurement_info()<br>        sfreq = int(client_info[&#39;sfreq&#39;])<br>        # let&#39;s observe ten seconds of data<br>        for ii in range(n_epochs):<br>            print(&#39;Got epoch %d/%d&#39; % (ii + 1, n_epochs))<br>            plt.cla()<br>            epoch = client.get_data_as_epoch(n_samples=sfreq, Picks=&#39;Audio&#39;)<br>            epoch.average().plot(axes=ax)<br>            plt.pause(1.)<br>        plt.draw()<br>print(&#39;Streams closed&#39;)<br><br><b>OUTPUT</b><br>== RESTART: C:\Users\default.DMXIA_SIMO83\Desktop\DATA WARE PROJECT\test.py ==<br>None<br><br>Warning (from warnings module):<br>  File &quot;C:\Program Files (x86)\Python37-32\lib\site-packages\mne\utils\docs.py&quot;, line 622<br>    warnings.warn(msg, category=DeprecationWarning)<br>DeprecationWarning: Class LSLClient is deprecated; The realtime module is being deprecated from `mne-python` and moved to its own package, `mne-realtime`. To install, please use `$ pip install mne_realtime`.<br>Client: Waiting for server to start<br>Traceback (most recent call last):<br>  File &quot;C:\Users\default.DMXIA_SIMO83\Desktop\DATA WARE PROJECT\test.py&quot;, line 12, in &lt;module&gt;<br>    with LSLClient(info=None,host=&#39;localhost&#39;, port=None, tmin=None, tmax=2, buffer_size=1000, verbose=None) as client:<br>  File &quot;C:\Program Files (x86)\Python37-32\lib\site-packages\mne\realtime\base_client.py&quot;, line 76, in __enter__<br>    raise RuntimeError(&#39;Could not connect to Client.&#39;)<br>RuntimeError: Could not connect to Client.<br></div><div><br></div><div><br></div><div>Looking forward to your reply</div><div><br></div><div>Best Regards</div><div><div><div dir="ltr" class="gmail-m_2149534523612406889gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;">A. Ighoyota ben</span></div><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;">Junior Researcher HCI (PhD in-view) </span></div><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;;font-size:12.8px">Tallinn University, Estonia</span><br></div><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;">School of digital Technologies.</span></div><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;">mobile:<a href="tel:+372%205832%206393" value="+37258326393" style="color:rgb(17,85,204)" target="_blank">+372582</a>78794</span></div><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;">skype: ighoyota-ben</span></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote></div></div>