Re: Finally getting where I can replicate problems with stockquotes phase3 tutorial

Kenneth Martin <martin-TxPoQvD3IN4C6LszWs/[email protected]> Thu, 08 Jan 2015 11:11:45 -0500
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
Thanks Irmen, real nice software; I'm mostly getting it working now. I'm 
hoping to use it with PySide with one Gui on a host talking
to a second Gui running on Beaglebone Black. Currently I'm thinking of 
running a QThread to poll a Pyro server. I have seen PyroMP, but I'm 
guessing
the QThread approach will be simpler with better documentation (for me - 
I'm just getting comfortable with Pyro and don't really want to take on 
PyroMP at this time).

Have you thought of using pyyaml for serialization? I have been using 
it, and am very happy with it (especially it's readability - it is utf-8 
based - but I'm not sending much data in my application). I think it 
does serialize objects (haven't done much here). I'm guessing only 
util.py needs to be changed to support it? Not sure how many places; 
it's an extension of JSON, so maybe a simple search will show me 
wherever additions are needed.

Re config; would it be easy that whenever a config paramater is changed, 
to check if this conflicts with an environment variable, and give a 
warning if a conflict occurs? When running three terminals and changing 
configuration, there is a lot of places that need to be compatible. For 
stockquotes with pickle, it looks to me like environment variables in 
two terminals (stockmarket.py terminal and aggregator.py terminal, but 
not necessary in viewer.py terminal, and in all three files). I will 
stick with serpent unless it doesn't work.

When there is a conflict, I find it interesting that it hangs while 
trying to get a lock? This is probably insignificant, I just find it 
interesting.
Thanks again,
-Bit_Pusher
p.s. another possible suggestion, move the configuration help to near 
the beginning so it is read early, or just move the line where PYRO_ 
prepends config parameters to the concept section; I found the 
configuration section really useful.
p.p.s. any thoughts on having Pyro emit a signal in Pyside when data 
comes in to the server, say when the Pyro server is running under a 
QThread? This would be useful for me. If you think it's easy, I might 
give it a go; any thoughts on where changes/additions are needed would help.
On 15-01-07 05:52 PM, Irmen de Jong wrote:
> On 7-1-2015 21:03, Kenneth Martin wrote:
>
>> 1) Tutorial works fine with serpent serializer.
>
> Well, I'll be damned :-)
>
> It appears that in the current Pyro version not only the warehouse tutorial but ALSO the
> stockmarket tutorial code indeed does work fine with serpent. No pickle config at all
> necessary.
>
> This makes things a lot easier (for the tutorial) and I will remove it from the tutorial
> code and from the docs!
>
>
> In the meantime you can make things work at your end, without fiddling with serializer
> settings, by doing this:
> - ignore the comments about setting the PYRO_SERIALIZERS_ACCEPTED environment var
> - remove the two lines of code that set the pickle serializer from all three source
> files from the stockmarket tutorial.
>
>
> Apologies for the confusion this caused on your end. However, the tutorial does actually
> also work fine as written currently (with pickle serialization configured).
>
>
> Irmen
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Pyro-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyro-core

-- 
Kenneth Martin, President
Granite SemiCom Inc.
555 Richmond St. W, BX1200/Suite 905
Toronto ON
416 640-2626, www.granitesemi.com


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net