<div dir="ltr"><div><div><div>I tried it, but the __init__ method doesn't make it to the connectToServer line, it stops at creating the QLocalSocket (I think)  <<a href="http://self.ls">self.ls</a>=QtNetwork.QLocalSocket()><br>

<br></div>This seems like some sort of configuration issue.  I will see if I can find some Qt test code to see if it works (and how) - unless you have other suggestions.<br><br></div>Have people gotten farther than this with pyKst on Windows?  This is a problem that is hard to miss.<br>

<br></div>Thanks.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 16, 2014 at 7:39 PM, 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">Maybe try running:<br>
<br>
kst2 --serverName=TestPlugins<br>
<br>
before you run testplugins.py<br>
<br>
cbn<br>
<div class="HOEnZb"><div class="h5"><br>
On July 16, 2014 7:34:27 PM Barth Netterfield wrote:<br>
<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 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.  I<br>
> > didn't have Kst running since I thought the Client class would start 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>> wrote:<br>
> > > Hi,<br>
> > ><br>
> > >     Everything built fine.  When I try testdataobjects.py Python dies,<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 manually,<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 out<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, it<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 it.<br>
> > >> If<br>
> > >> you have the correct packages installed (and I don't remember what they<br>
> > >> are) then "make html" will create pyKst/html/_build/html/index.html.<br>
> > >><br>
> > >> This stuff is definitely alpha (which means some stuff might 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 do<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>
wrote:<br>
> > >>> Hi,<br>
> > >>><br>
> > >>>     In the CMake GUI I turned on kst_python, kst_python_build but left<br>
> > >>><br>
> > >>> kst_python_prefix blank, hoping cmake would use some sort of default<br>
> > >>> path<br>
> > >>> (I did try giving it a path but it make no difference to the 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>
</div></div></blockquote></div><br></div>