<div dir="ltr">The PyQt IPC demo which uses QLocalSocket works fine.  I am trying to figure out why...<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 17, 2014 at 11:25 AM, Barth Netterfield <span dir="ltr"><<a href="mailto:barth.netterfield@utoronto.ca" target="_blank">barth.netterfield@utoronto.ca</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On July 16, 2014 7:54:20 PM Kevin Burr wrote:<br>
<br>
> I tried it, but the __init__ method doesn't make it to the connectToServer<br>
> line, it stops at creating the QLocalSocket (I think)  <<a href="http://self.ls" target="_blank">self.ls</a><br>
> =QtNetwork.QLocalSocket()><br>
<br>
</div>Yeah... I was just hoping...<br>
<div class=""><br>
> This seems like some sort of configuration issue.  I will see if I can find<br>
> some Qt test code to see if it works (and how) - unless you have other<br>
> suggestions.<br>
<br>
</div>No.  I'm clueless.  Thanks for trying to work this out.<br>
<div class=""><br>
> Have people gotten farther than this with pyKst on Windows?  This is a<br>
> problem that is hard to miss.<br>
<br>
</div>Indeed.  I have just re-written it to (I thought) be able to run on Windows<br>
but all of my development and testing has been on Linux (where it seems to<br>
work pretty well actually).  You are the very first person to even see it I<br>
think (except the commit logs...).<br>
<br>
I really appreciate your willingness to look at this.  My hope had been that<br>
pyside and/or PyQt4 would work fine on Windows - so that is the only semi-non-<br>
standard thing in the entire binding.  But it is failing at the very very<br>
beginning.  Which is... odd.<br>
<br>
sigh...<br>
<div class="HOEnZb"><div class="h5"><br>
> Thanks.<br>
><br>
><br>
> On Wed, Jul 16, 2014 at 7:39 PM, Barth Netterfield <<br>
><br>
> <a href="mailto:barth.netterfield@utoronto.ca">barth.netterfield@utoronto.ca</a>> wrote:<br>
> > Maybe try running:<br>
> ><br>
> > kst2 --serverName=TestPlugins<br>
> ><br>
> > before you run testplugins.py<br>
> ><br>
> > cbn<br>
> ><br>
> > On July 16, 2014 7:34:27 PM Barth Netterfield wrote:<br>
> > > Very odd... that should work.  The internet has no complaints about it.<br>
> > ><br>
> > > What Windows are you using?<br>
> > ><br>
> > > cbn<br>
> > ><br>
> > > On July 16, 2014 6:02:14 PM Kevin Burr wrote:<br>
> > > > As far as I can tell using Spyder, testdataobjects.py makes it into<br>
> > > > client=kst.Client("TestPlugins") as far as<br>
> > > ><br>
> > > >  36: <a href="http://self.ls" target="_blank">self.ls</a>=QtNetwork.QLocalSocket()<br>
> > > ><br>
> > > > in pykst.py, and then dies without an error message - or at least one<br>
> > > > I<br>
> > > > know how to find with my limited knowledge of Python.<br>
> > > ><br>
> > > > I've tried importing from both PyQt4 and PySide with the same results.<br>
> ><br>
> >  I<br>
> ><br>
> > > > didn't have Kst running since I thought the Client class would start<br>
> > > > it<br>
> > > > for<br>
> > > > me.<br>
> > > ><br>
> > > > Any suggestions?<br>
> > > ><br>
> > > > Thank-you<br>
> > > ><br>
> > > > On Tue, Jul 15, 2014 at 9:34 PM, Kevin Burr <<a href="mailto:kburr@kylowave.com">kburr@kylowave.com</a>><br>
> ><br>
> > wrote:<br>
> > > > > Hi,<br>
> > > > ><br>
> > > > >     Everything built fine.  When I try testdataobjects.py Python<br>
> ><br>
> > dies,<br>
> ><br>
> > > > >     but<br>
> > > > ><br>
> > > > > I need to see if it is problem with my environment and try out your<br>
> > > > > changes<br>
> > > > > to the scripts before I can say it is really a problem.<br>
> > > > ><br>
> > > > >     I am using WinPython because it contains all the necessary math<br>
> > > > ><br>
> > > > > packages and will be easy to install when I pass this on to other<br>
> > > > > people.<br>
> > > > > It shouldn't be any different from installing all the pieces<br>
> ><br>
> > manually,<br>
> ><br>
> > > > > but<br>
> > > > > you never know.<br>
> > > > ><br>
> > > > > Thank-you!<br>
> > > > ><br>
> > > > ><br>
> > > > > On Tue, Jul 15, 2014 at 11:57 AM, Barth Netterfield <<br>
> > > > ><br>
> > > > > <a href="mailto:netterfield@astro.utoronto.ca">netterfield@astro.utoronto.ca</a>> wrote:<br>
> > > > >> Sorry for the slow reply...<br>
> > > > >><br>
> > > > >> It is only in git.  as far as I know, it is not packaged.<br>
> > > > >><br>
> > > > >> To get pykst working:<br>
> > > > >> Install python 2 (>~2.7)<br>
> > > > >> install numpy and scipy<br>
> > > > >> install pyside or PyQt4<br>
> > > > >><br>
> > > > >> If you use PyQt4, then you need to edit pyKst/pykst.py to comment<br>
> ><br>
> > out<br>
> ><br>
> > > > >> the<br>
> > > > >> line<br>
> > > > >><br>
> > > > >>   from PySide import QtCore, QtNetwork<br>
> > > > >><br>
> > > > >> and uncomment the line<br>
> > > > >><br>
> > > > >>   from PyQt4 import QtCore, QtNetwork<br>
> > > > >><br>
> > > > >> (I use PySide but both should be just fine).<br>
> > > > >><br>
> > > > >> Then you need to copy pykst.py to the python directory (in ubuntu,<br>
> ><br>
> > it<br>
> ><br>
> > > > >> is<br>
> > > > >> /usr/lib/python2.7).<br>
> > > > >><br>
> > > > >> Then it should "just work".<br>
> > > > >><br>
> > > > >> In pyKst/demo are some files, some of which work.  You might try<br>
> > > > >> testdataobjects.py<br>
> > > > >><br>
> > > > >> Documentation is available in pyKst/html.  But you have to build<br>
> > > > >> it.<br>
> > > > >> If<br>
> > > > >> you have the correct packages installed (and I don't remember what<br>
> ><br>
> > they<br>
> ><br>
> > > > >> are) then "make html" will create<br>
> > > > >> pyKst/html/_build/html/index.html.<br>
> > > > >><br>
> > > > >> This stuff is definitely alpha (which means some stuff might<br>
> > > > >> work...<br>
> > > > >> but<br>
> > > > >> might break... and might change... and might not match the<br>
> > > > >> documentation.)<br>
> > > > >><br>
> > > > >>  But I would really appreciate real world testing and am definitely<br>
> > > > >>  open<br>
> > > > >>  to<br>
> > > > >><br>
> > > > >> suggestions on how to make the API better!<br>
> > > > >><br>
> > > > >> also: I'm developing in linux, and have no idea how to get python<br>
> > > > >> running<br>
> > > > >> in windows, or how to install packages in OsX or windows, or how to<br>
> ><br>
> > do<br>
> ><br>
> > > > >> almost anything in OsX or windows.   It might be really easy.   But<br>
> > > > >> everything here refers to linux....<br>
> > > > >><br>
> > > > >> cbn<br>
> > > > >><br>
> > > > >> On Tue, Jul 15, 2014 at 11:35 AM, Kevin Burr <<a href="mailto:kburr@kylowave.com">kburr@kylowave.com</a>><br>
> ><br>
> > wrote:<br>
> > > > >>> Hi,<br>
> > > > >>><br>
> > > > >>>     In the CMake GUI I turned on kst_python, kst_python_build but<br>
> ><br>
> > left<br>
> ><br>
> > > > >>> kst_python_prefix blank, hoping cmake would use some sort of<br>
> ><br>
> > default<br>
> ><br>
> > > > >>> path<br>
> > > > >>> (I did try giving it a path but it make no difference to the<br>
> > > > >>> error)<br>
> > > > >>><br>
> > > > >>>     When I did a configure I received this error:<br>
> > > > >>>           CMake Error at CMakeLists.txt:362 (add_subdirectory):<br>
> > > > >>>           The source directory<br>
> > > > >>><br>
> > > > >>>           E:/Work/kst/pyKst<br>
> > > > >>><br>
> > > > >>>           does not contain a CMakeLists.txt file.<br>
> > > > >>><br>
> > > > >>>     The pyKst directory doesn't contain a cmake file, but the<br>
> > > > >>><br>
> > > > >>> cmake/pyKst directory does.<br>
> > > > >>><br>
> > > > >>>      Is there something obvious I have done wrong?<br>
> > > > >>><br>
> > > > >>> Thank-you<br>
> > > > >>><br>
> > > > >>> _______________________________________________<br>
> > > > >>> Kst mailing list<br>
> > > > >>> <a href="mailto:Kst@kde.org">Kst@kde.org</a><br>
> > > > >>> <a href="https://mail.kde.org/mailman/listinfo/kst" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
> > > > >><br>
> > > > >> --<br>
> > > > >> C. Barth Netterfield<br>
> > > > >> University of Toronto<br>
> > > > >> <a href="tel:416-845-0946" value="+14168450946">416-845-0946</a><br>
> > > > >><br>
> > > > >><br>
> > > > >> _______________________________________________<br>
> > > > >> Kst mailing list<br>
> > > > >> <a href="mailto:Kst@kde.org">Kst@kde.org</a><br>
> > > > >> <a href="https://mail.kde.org/mailman/listinfo/kst" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
> ><br>
> > --<br>
> > Barth Netterfield<br>
> > University of Toronto<br>
> > <a href="tel:416-845-0946" value="+14168450946">416-845-0946</a><br>
> > _______________________________________________<br>
> > Kst mailing list<br>
> > <a href="mailto:Kst@kde.org">Kst@kde.org</a><br>
> > <a href="https://mail.kde.org/mailman/listinfo/kst" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
<br>
--<br>
Barth Netterfield<br>
University of Toronto<br>
<a href="tel:416-845-0946" value="+14168450946">416-845-0946</a><br>
</div></div></blockquote></div><br></div>