Irmen de Jong | 30 Jan 21:24 2015
Picon

Pyro 4.33 released!


Hi,

Pyro 4.33 has just been released!

Get it from Pypi:  http://pypi.python.org/pypi/Pyro4/
Or straight from Github:  https://github.com/irmen/Pyro4
Documentation: http://pythonhosted.org/Pyro4/index.html

Most important changes:

added Pyro4.utils.httpgateway, this allows clients (such as a web browser) to use a
simple http interface to call Pyro objects. See the new 'http' example.
test.echoserver now correctly deals with a specified hmac key in combination with
name server usage
some raised exceptions had a __cause__ added on Python 2.x as well, this has been
corrected (it could cause unwanted serialization errors)

Have fun!

Irmen de Jong

Irmen de Jong | 30 Jan 21:48 2015
Picon
Picon

Pyro 4.33 released!

(and once again, sourceforge seems to have eaten my first message....)

Hi,

Pyro 4.33 has just been released!

Get it from Pypi:  http://pypi.python.org/pypi/Pyro4/
Or source from Github:  https://github.com/irmen/Pyro4
Documentation: http://pythonhosted.org/Pyro4/index.html

Most important changes:

- added Pyro4.utils.httpgateway, this allows clients (such as a web browser) to use a
simple http interface to call Pyro objects. See the new 'http' example.
- test.echoserver now correctly deals with a specified hmac key in combination with
name server usage
- some raised exceptions had a __cause__ added on Python 2.x as well, this has been
corrected (it could cause unwanted serialization errors)

Have fun!

Irmen de Jong

------------------------------------------------------------------------------
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/
(Continue reading)

Irmen de Jong | 30 Jan 22:08 2015
Picon
Picon

mailing list still dropping messages

Bah,
the list still seems to have intermittent problems. My two previous messages
(announcement of Pyro 4.33) are just gone, it seems.
I've opened a ticket with sourceforge support but to be honest I don't think it will
help much. Because if it was a known problem you would expect that it was mentioned on
their status page/twitter feed, and it is not.

Did anyone receive the 4.33 announcement message?

I'm wondering what to do when this problem persists, it really starts to annoy me now :(

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/
Irmen de Jong | 27 Jan 03:48 2015
Picon

Something interesting for 4.33

Something interesting coming in 4.33;
https://github.com/irmen/Pyro4/commit/126097bca8ef8c05d4ca51aaf4a7d19859f47031

The file is named httpgateway.py and leverages Pyro's json serializer.

Have fun :)

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/
Luca Delucchi | 21 Jan 11:30 2015
Picon

connect two different machine

Hi everybody,

I'm new user of Pyro, I read documentation and tutorial, I create a
test for my library and it work perfectly on localhost.
Now I'm trying to connect two different machine, I launched my script
on the server and it works correctly

python grass_stem.py
Object <__main__.stemGRASS instance at 0x7f3402fb8b48>:
    uri = PYRO:obj_b2c0d990fa2241a0b30a9de0329a8519@...:39559
    name = stem.grass
Pyro daemon running.

python -m Pyro4.nsc --host=10.0.100.251 list
--------START LIST
Pyro.NameServer --> PYRO:Pyro.NameServer@...:9090
stem.grass --> PYRO:obj_b2c0d990fa2241a0b30a9de0329a8519@...:39559
--------END LIST

When I try to work from my client I obtain these errors

python -m Pyro4.nsc --host=10.0.100.251 list
Failed to locate the name server: Failed to locate the nameserver

import Pyro4
import os
gs = Pyro4.Proxy("PYRONAME:stem.grass@...:39559")
gs.initialize(os.getpid(), '/home/lucadelu/grassdata/',
'UTM32_ETRS89', '/home/lucadelu/bin/grass70', 25832)

(Continue reading)

Irmen de Jong | 11 Jan 22:32 2015
Picon
Picon

Pyro 4.32 released


(another attempt, Sourceforge/mailman somehow refuses to accept this message to the list)

Hi,

Pyro 4.32 has just been released!

Get it from Pypi:  http://pypi.python.org/pypi/Pyro4/
Or straight from Github:  https://github.com/irmen/Pyro4
Documentation: http://pythonhosted.org/Pyro4/index.html

Changes:

- json serializer can now deal with set() types; they will be converted to
tuples/lists instead. (similar to what serpent does on older Python versions)
- this also fixes the problem that the proxy metadata feature used to crash when using
json as serializer (because it used sets to transfer the data.
  You had to turn the metadata feature off to be able to use the json serializer at all)
- flame explicitly checks for pickle to be enabled instead of causing connection level
errors
- PYRONAME uri resolving now also uses the _pyroHmacKey set on the proxy (if any)
- proxy no longer locks up in pyroRelease when a protocol error occurs while getting
the metadata
- stockquotes tutorial doesn't actually require pickle anymore, so removed that from
code and docs
- distributed-computing example now uses a custom class deserializer instead of
relying on pickle
- distributed-computing example no longer overflows on older python versions (<3.x)
- serpent library dependency updated to 1.8
- setup.py no longer fails when it can't import Pyro4 (it no longer needs to do so)
(Continue reading)

Irmen de Jong | 11 Jan 13:36 2015
Picon

test2

test2

(sorry, sourceforge seems to have trouble putting some messages on the list)

------------------------------------------------------------------------------
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
Irmen de Jong | 11 Jan 13:27 2015
Picon
Picon

test

test

------------------------------------------------------------------------------
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
Kenneth Martin | 7 Jan 21:03 2015

Finally getting where I can replicate problems with stockquotes phase3 tutorial

I've been going back and forth a number of times and I can now replicate 
issue.

Details: running Debian Linux beaglebone 3.8.13-bone47 #1 SMP Fri Apr 11 
01:36:09 UTC 2014 armv7l GNU/Linux
on a Beaglebone Black C.
Pyro4: 4.31

1) Tutorial works fine with serpent serializer.

2) I have not spent time to figure out if I need to set environment 
variable SERIALIZERS_ACCEPTED
in all three terminals or just in terminal with stockmarket.py, or in 
both terminals with stockmarket.py and aggregator.py, but for tests, I 
am setting in all three terminal windows to be sure. (actually see j 
below - I did spend some time and it appears only terminal 0 needs the 
environment variable). I also change
Pyro4.config.SERIALIZER = 'pickle'
Pyro4.config.SERIALIZERS_ACCEPTED.add('pickle')
in all three files

3) Note: even with serpent, tutorial does not work with
     Pyro4.config.COMMTIMEOUT = 4.0
I believe problem is with aggregator.py and error message is not getting 
enough data (probably from viewer.py)

4) After running successfully with serpent, and going back to running 
with pickle;
a) I stop all programs including name server.
b) I set environment variables in all three terminals
(Continue reading)

Kenneth Martin | 7 Jan 00:06 2015

locateNS() hangs when running stockquotes example in tutorial

Disclaimer, I'm brand new to Pyro4 and may be doing something stupid.
Details: running Debian Linux beaglebone 3.8.13-bone47 #1 SMP Fri Apr 11 01:36:09 UTC 2014 armv7l GNU/Linux
on a Beaglebone Black C.
Pyro4: 4.31

I set the environment variable per tutorial:
export PYRO_SERIALIZERS_ACCEPTED=pickle, but I may have done this after running >pyro4-ns &

When running the stockquote tutorial phase 3, I determined using winpdb that aggregator.py was hanging on line 34
    ns = Pyro4.locateNS()

I then changed serializer to serpent (environment variables and code in three programs and example worked),
I then changed back to pickle, and now it worked.
I'm guessing that I may have started the nameserver before I set the environment variable, but if I now unset it,
I get lots of errors when starting the nameserver so I can't replicate it.

When it was hanging, I believe it was hanging while waiting to acquire a lock starting with __, in a release function, but since I
can't replicate it, I can't be more exact.

Summary, there may be a problem with the tutorial in 4.31 in an out of the box set-up.
Also, maybe some checks for consistency on serializers might help. Not sure if this helps, but for new users having the tutorials
work is so critical, I thought it might be worth taking the time, as Pyro4 looks like a great module; Irmen, much appreciated.

Bit_Pusher

------------------------------------------------------------------------------
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
Pyro-core@...
https://lists.sourceforge.net/lists/listinfo/pyro-core
Irmen de Jong | 13 Dec 00:21 2014
Picon

Pyro 4.31 released!


Hi,

Pyro 4.31 has just been released!

Get it from Pypi:  http://pypi.python.org/pypi/Pyro4/
Or straight from Github:  https://github.com/irmen/Pyro4
Documentation: http://pythonhosted.org/Pyro4/index.html

Changes:

locateNS now properly sets provided hmac key on proxy returned via broadcast lookup
terminate call added to flame remoteconsole

Have fun!

Irmen de Jong


Gmane