[Kst] Building Python cmake error

Kevin Burr kburr at kylowave.com
Thu Jul 17 15:32:50 UTC 2014


The PyQt IPC demo which uses QLocalSocket works fine.  I am trying to
figure out why...


On Thu, Jul 17, 2014 at 11:25 AM, Barth Netterfield <
barth.netterfield at utoronto.ca> wrote:

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


More information about the Kst mailing list