<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 22: 'Cannot connect TCP/IP data reporter' when using MacOS</title><link>https://sourceforge.net/p/daetools/bugs/22/</link><description>Recent changes to 22: 'Cannot connect TCP/IP data reporter' when using MacOS</description><atom:link href="https://sourceforge.net/p/daetools/bugs/22/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 11 Mar 2019 15:11:27 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/daetools/bugs/22/feed.rss" rel="self" type="application/rss+xml"/><item><title>#22 'Cannot connect TCP/IP data reporter' when using MacOS</title><link>https://sourceforge.net/p/daetools/bugs/22/?limit=25#0e9f/6a18</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Jaime,&lt;/p&gt;
&lt;p&gt;It runs on the local machine (localhost). If it can't connect then it is a problem with i.e. windows firewall. Can you check that? Otherwise, just use the following class:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;daePickleDataReporter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;daeDataReporterFile&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="c1"&gt;# Saves data as the Python pickle which can be opened in DAE Plotter.&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="fm"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;daeDataReporterFile&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="fm"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;WriteDataToFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;daetools.dae_plotter.data_receiver_io&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pickleProcess&lt;/span&gt;
            &lt;span class="n"&gt;pickleProcess&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Process&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ConnectString&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="ne"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="s1"&gt;'Cannot write results in the Python pickle format:&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;You can instantiate it in an usual way:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;datareporter = daePickleDataReporter()
datareporter.Connect("filename.simulation", simName)
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Then you can open the created file in DAE Plotter and use it as usual.&lt;/p&gt;
&lt;p&gt;Dragan&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ciroki</dc:creator><pubDate>Mon, 11 Mar 2019 15:11:27 -0000</pubDate><guid>https://sourceforge.net6171b92be18edbd632de27ab135422723e17a6d9</guid></item><item><title>#22 'Cannot connect TCP/IP data reporter' when using MacOS</title><link>https://sourceforge.net/p/daetools/bugs/22/?limit=25#0e9f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I seem to be getting the same error. I am running DAE Tools on macOS through a windows server. I tried again on a windows machine through the same server and still seem to be getting the error. I ran the command you mentioned and the dae plotter did open. However, when I run any script, even the tutorials, I still get the same error with the message 'Cannot connect to data reporter! Did you forget to start DAE Tools Plotter?'. I got this message even when DAE Tools Plotter seemed to be open once I had run the command you mentioned above. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ciroki</dc:creator><pubDate>Mon, 11 Mar 2019 13:15:26 -0000</pubDate><guid>https://sourceforge.net2c7df50a745caa78f0e87265b1dea468066da388</guid></item><item><title>#22 'Cannot connect TCP/IP data reporter' when using MacOS</title><link>https://sourceforge.net/p/daetools/bugs/22/?limit=25#7cf5</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Jaime,&lt;/p&gt;
&lt;p&gt;Good, thanks a lot for checking it. &lt;br/&gt;
I should add it to the documentation to make clear what needs to be done when running on macOS.&lt;/p&gt;
&lt;p&gt;Cheers&lt;br/&gt;
Dragan&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ciroki</dc:creator><pubDate>Fri, 22 Jun 2018 10:46:42 -0000</pubDate><guid>https://sourceforge.net285e9c10e078fa54a7d3d6598efa1ece981f56e0</guid></item><item><title>#22 'Cannot connect TCP/IP data reporter' when using MacOS</title><link>https://sourceforge.net/p/daetools/bugs/22/?limit=25#1a37</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Dragan,&lt;/p&gt;
&lt;p&gt;You are correct. It works if I run python -m daetools.dae_plotter.plotter previously.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Jaime&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jaime Souza</dc:creator><pubDate>Fri, 22 Jun 2018 10:33:57 -0000</pubDate><guid>https://sourceforge.net5c805dcdb2169ee6052d8f5de196c7b91eb51837</guid></item><item><title>#22 'Cannot connect TCP/IP data reporter' when using MacOS</title><link>https://sourceforge.net/p/daetools/bugs/22/?limit=25#d560</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Jaime,&lt;/p&gt;
&lt;p&gt;It is possible to use the DAE Plotter GUI, just there are problems with starting it automatically in macOS when one attempts to connect the tcp/ip data reporter. Previously, one had to manually start the DAE Plotter GUI. Now, it will try to start it before connecting. This part does not work in macOS at the moment. There you have to start it using i.e.:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;python -m daetools.dae_plotter.plotter
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Please try and let me know if it works.&lt;/p&gt;
&lt;p&gt;Cheers&lt;br/&gt;
Dragan&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ciroki</dc:creator><pubDate>Thu, 21 Jun 2018 09:04:56 -0000</pubDate><guid>https://sourceforge.net8e89fc178570686d5e41697feaa79ea97dff0e65</guid></item><item><title>'Cannot connect TCP/IP data reporter' when using MacOS</title><link>https://sourceforge.net/p/daetools/bugs/22/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is not possible to use the GUI in MacOS.&lt;/p&gt;
&lt;p&gt;There is a error with the TCP/IP data reporter. For instance, if I try to run  (python tutorial14.py console), I get:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;Cannot connect TCPIPDataReporter: Invalid argument
Traceback (most recent call last):
  File "tutorial14.py", line 325, in &amp;lt;module&amp;gt;
    run(guiRun=guiRun)
  File "tutorial14.py", line 314, in run
    **kwargs)
  File "/Users/jaimenms/PycharmProjects/study-daetools/.venv/lib/python3.6/site-packages/daetools-1.8.0-py3.6-macosx-10.6-intel.egg/daetools/dae_simulator/activity.py", line 102, in simulate
    raise RuntimeError('Cannot connect TCP/IP data reporter')
RuntimeError: Cannot connect TCP/IP data reporter
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Or with the gui (python tutorial14.py), after I press Start / Run, I get "Cannot connect data reporter! Did you forget to start DAE Tools Reporter?".&lt;/p&gt;
&lt;p&gt;Obs.: My firewall is off, the port 50000 is free and the 127.0.0.1 is my localhost.&lt;/p&gt;
&lt;p&gt;Obs.:  It is not a big deal because I am actually working with Pandas.&lt;/p&gt;
&lt;p&gt;Obs.:  I found in the source codes that file DataReporting/tcpip_data_reporter.cpp has a commentary thaty can explain it "// There is  problem with the boost::process::spawn function in macOS."&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jaime&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jaime Souza</dc:creator><pubDate>Thu, 21 Jun 2018 08:27:05 -0000</pubDate><guid>https://sourceforge.netfcc3600dbf4a71bda5ebb2e0a5de5653ddd2f0fa</guid></item></channel></rss>