Re: trying to upgrade Pyro
Richard <[email protected]> Fri, 06 Mar 2015 09:27:02 +0100
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============2215459670131477956==
Content-Type: multipart/alternative;
boundary="------------070505000805080606000807"
This is a multi-part message in MIME format.
--------------070505000805080606000807
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Ok, I just had to add the following line to my client:
Pyro4.config.SERIALIZER = "pickle" # flame requires pickle serializer
Problem solved!
Richard
On 06/03/15 09:01, Richard wrote:
> Since I did not install my previous version of Pyro via wheels, I
> tried this:
>
> sudo easy_install Pyro4==4.32
>
> This changes the current version of Pyro to use 4.32.
> But now I got:
>
> File "/Users/richard/Desktop/MyPython/remco/remco.py", line 31, in
> <module>
> flame = Pyro4.utils.flame.connect("10.0.1.29:9900") # my PI
> File
> "/Library/Python/2.7/site-packages/Pyro4-4.32-py2.7.egg/Pyro4/utils/flame.py",
> line 315, in connect
> raise Pyro4.errors.ProtocolError("Flame requires the pickle
> serializer")
> Pyro4.errors.ProtocolError: Flame requires the pickle serializer
> logout
>
> ???
>
> On 05/03/15 23:10, Richard wrote:
>> When I look at the output of my Mac program, it still sees the older
>> Pyro version:
>>
>> File "/Users/richard/Desktop/MyPython/remco/remco.py", line 31, in
>> <module>
>> flame = Pyro4.utils.flame.connect("10.0.1.29:9900") # my PI
>> File
>> "/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/utils/flame.py",
>> line 298, in connect
>> proxy._pyroBind()
>> File
>> "/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/core.py",
>> line 271, in _pyroBind
>> return self.__pyroCreateConnection(True)
>> File
>> "/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/core.py",
>> line 358, in __pyroCreateConnection
>> msg = Message.recv(conn, None)
>> File
>> "/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/message.py",
>> line 156, in recv
>> msg = cls.from_header(connection.recv(cls.header_size))
>> File
>> "/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/message.py",
>> line 140, in from_header
>> raise errors.ProtocolError("invalid data or unsupported protocol
>> version")
>> Pyro4.errors.ProtocolError: invalid data or unsupported protocol version
>> logout
>>
>> while installing 4.32 gave this output earlier:
>>
>> RMA:Downloads richard$ sudo pip install Pyro4-4.34-py2.py3-none-any.whl
>> Unpacking ./Pyro4-4.34-py2.py3-none-any.whl
>> Downloading/unpacking serpent>=1.8 (from Pyro4==4.34)
>> Downloading serpent-1.9-py2.py3-none-any.whl
>> Installing collected packages: Pyro4, serpent
>> Found existing installation: serpent 1.4
>> Uninstalling serpent:
>> Successfully uninstalled serpent
>> Successfully installed Pyro4 serpent
>> Cleaning up...
>>
>>
>>
>> On 05/03/15 22:47, Richard wrote:
>>> On my Mac I had Pyro 4.22. On my Raspberry Pi 2 I just installed
>>> Pyro 4.32 (wheel).
>>> When trying to communicate I got the protocol version error. Looking
>>> at the versions, my Mac was on 46, the Pi was on 47.
>>> So I installed the 4.32 version also on the Mac. But after that, the
>>> protocol version was still on 46.
>>> What could be wrong here?
>>>
>>> Richard
>>>
>>
>
--------------070505000805080606000807
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ok, I just had to add the following line to my client:<br>
<br>
<meta charset="utf-8">
Pyro4.config.SERIALIZER = "pickle" # flame requires pickle
serializer<br>
<br>
Problem solved!<br>
<br>
Richard<br>
<div class="moz-cite-prefix">On 06/03/15 09:01, Richard wrote:<br>
</div>
<blockquote cite="mid:[email protected]" type="cite">Since
I did not install my previous version of Pyro via wheels, I tried
this:
<br>
<br>
sudo easy_install Pyro4==4.32
<br>
<br>
This changes the current version of Pyro to use 4.32.
<br>
But now I got:
<br>
<br>
File "/Users/richard/Desktop/MyPython/remco/remco.py", line 31,
in <module>
<br>
flame = Pyro4.utils.flame.connect("10.0.1.29:9900") # my PI
<br>
File
"/Library/Python/2.7/site-packages/Pyro4-4.32-py2.7.egg/Pyro4/utils/flame.py",
line 315, in connect
<br>
raise Pyro4.errors.ProtocolError("Flame requires the pickle
serializer")
<br>
Pyro4.errors.ProtocolError: Flame requires the pickle serializer
<br>
logout
<br>
<br>
???
<br>
<br>
On 05/03/15 23:10, Richard wrote:
<br>
<blockquote type="cite">When I look at the output of my Mac
program, it still sees the older Pyro version:
<br>
<br>
File "/Users/richard/Desktop/MyPython/remco/remco.py", line 31,
in <module>
<br>
flame = Pyro4.utils.flame.connect("10.0.1.29:9900") # my
PI
<br>
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/utils/flame.py",
line 298, in connect
<br>
proxy._pyroBind()
<br>
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/core.py",
line 271, in _pyroBind
<br>
return self.__pyroCreateConnection(True)
<br>
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/core.py",
line 358, in __pyroCreateConnection
<br>
msg = Message.recv(conn, None)
<br>
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/message.py",
line 156, in recv
<br>
msg = cls.from_header(connection.recv(cls.header_size))
<br>
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/message.py",
line 140, in from_header
<br>
raise errors.ProtocolError("invalid data or unsupported
protocol version")
<br>
Pyro4.errors.ProtocolError: invalid data or unsupported protocol
version
<br>
logout
<br>
<br>
while installing 4.32 gave this output earlier:
<br>
<br>
RMA:Downloads richard$ sudo pip install
Pyro4-4.34-py2.py3-none-any.whl
<br>
Unpacking ./Pyro4-4.34-py2.py3-none-any.whl
<br>
Downloading/unpacking serpent>=1.8 (from Pyro4==4.34)
<br>
Downloading serpent-1.9-py2.py3-none-any.whl
<br>
Installing collected packages: Pyro4, serpent
<br>
Found existing installation: serpent 1.4
<br>
Uninstalling serpent:
<br>
Successfully uninstalled serpent
<br>
Successfully installed Pyro4 serpent
<br>
Cleaning up...
<br>
<br>
<br>
<br>
On 05/03/15 22:47, Richard wrote:
<br>
<blockquote type="cite">On my Mac I had Pyro 4.22. On my
Raspberry Pi 2 I just installed Pyro 4.32 (wheel).
<br>
When trying to communicate I got the protocol version error.
Looking at the versions, my Mac was on 46, the Pi was on 47.
<br>
So I installed the 4.32 version also on the Mac. But after
that, the protocol version was still on 46.
<br>
What could be wrong here?
<br>
<br>
Richard
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>
--------------070505000805080606000807--
--===============2215459670131477956==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
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/
--===============2215459670131477956==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Pyro-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyro-core
--===============2215459670131477956==--