FC | 13 Nov 11:39 2013
Picon

TR: HMAC_KEY

 

 

De : FC [mailto:fcabarrus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Envoyé : dimanche 10 novembre 2013 18:56
À : 'pyro-core-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org'
Objet : HMAC_KEY

 

Hi,

 

How to connect to a secure flameserver?

 

Server side:  python -m Pyro4.utils.flameserver -H 192.168.1.102 -p 64444 -k 123456

 

 

Client side:  flame=Pyro4.utils.flame.connect("192.168.1.102:64444, key=123456") ?        

 

 

I want explanation for connecting on a server with HMAC_Key

 

 

Thanks,

 

Attachment (Félicien CABARRUS.vcf): application/octet-stream, 4989 bytes
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
Pyro-core@...
https://lists.sourceforge.net/lists/listinfo/pyro-core
FC | 10 Nov 23:56 2013
Picon

HMAC_KEY

Hi,

 

How to connect to a secure flameserver?

 

Server side:  python -m Pyro4.utils.flameserver -H 192.168.1.102 -p 64444 -k 123456

 

 

Client side:  flame=Pyro4.utils.flame.connect("192.168.1.102:64444, key=123456") ?        

 

 

I want explanation for connecting on a server with HMAC_Key

 

 

Thanks,

 

Attachment (Félicien CABARRUS.vcf): application/octet-stream, 4989 bytes
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
Pyro-core@...
https://lists.sourceforge.net/lists/listinfo/pyro-core
Andrii Pavlyk | 5 Nov 09:50 2013

: capability to use <at> property for remote object

Hello,

 

Could you, please, help me to resolve issue I encountered trying to use Pyro?

 

I perform the following code

on server:

 

import Pyro4

 

class CTestClassWProperty(object):

 

    def __init__(self):

        super().__init__()

 

        self.__test_property = "Value to check"

 

    <at> property

    def test_property(self):

        return self.__test_property

 

    def print_test_property(self):

        print("The test property is '{}'".format(self.test_property))

        return self.test_property

 

if __name__ == '__main__':

    class_w_property=CTestClassWProperty()

    daemon=Pyro4.Daemon()

    uri=daemon.register(class_w_property)

    print("Ready. Object uri = {}".format(uri))

    daemon.requestLoop()

 

on client:

 

import Pyro4

 

uri=input("What is the Pyro uri of the class with property object? ").strip()

 

class_w_property=Pyro4.Proxy(uri)

print(class_w_property.test_property)

print(class_w_property.print_test_property())

 

The output of client code is below:

 

<Pyro4.core._RemoteMethod object at 0x0000000002AB1128>

Value to check

 

So, as you can see, when get the CTestClassWProperty <at> property with no Pyro there is its value printed out.

When get the <at> property for Pyro object of the corresponding class there is _RemoteMethod object printed out instead of this property’s value.

 

Therefore question is

How to use <at> property of classes via their Pyro object with no any changes in remote class?

 

 

Thanks for your help.

 

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
Pyro-core@...
https://lists.sourceforge.net/lists/listinfo/pyro-core
Richard van Bemmelen | 1 Nov 14:41 2013
Picon

Pyro4.Proxy() does not check for nameserver yet?

I was trying some tests with the nameserver not yet running.
Apparenty putting 'try .. except' around:

debug = Pyro4.Proxy("PYRONAME:debugserver <at> %s:9090" % nshost) 

did not detect that the name server was not running.
That was detected when I executed the next statement:

debug.set(..)

so actually calling a function on the remote object.

Is this behaviour expected?

Richard


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
Pyro-core@...
https://lists.sourceforge.net/lists/listinfo/pyro-core
Giovanni Porcari | 29 Oct 11:11 2013
Picon

Creating proxies with different hmac_key

Hi all

i am using pyro4 and I should  connect to different pyro4 daemons in different servers that uses different hmac_keys.

So I would like to write :

proxy_to_foo = Pyro4.Proxy(uri_foo,hmac_key='myfookey')
proxy_to_bar = Pyro4.Proxy(uri_bar,hmac_key='mybarkey')

But unfortunately i can only use Pyro4.config.HMAC_KEY= 'mykey'

Any suggestion ?

Thank you


G.
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
Pyro-core@...
https://lists.sourceforge.net/lists/listinfo/pyro-core
Richard van Bemmelen | 29 Oct 12:05 2013
Picon

trying to do remote ODBC with Pyro4 and Flameserver

I am trying to use Pyro4 to execute a remote ODBC python function.
This function runs fine on the remote machine.
When trying to run it remotely using the Flameserver I get:

Traceback (most recent call last): File "/Users/richard/Desktop/MyPython/remodbc.py", line 44, in <module> result = flame.module("flame.stuff").query('') File "/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/core.py", line 160, in __call__ return self.__send(self.__name, args, kwargs) File "/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/utils/flame.py", line 81, in __invoke return self.flameserver._invokeModule(module, args, kwargs) File "/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/core.py", line 160, in __call__ return self.__send(self.__name, args, kwargs) File "/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/core.py", line 314, in _pyroInvoke data = serializer.deserializeData(msg.data, compressed=msg.flags & Pyro4.message.FLAGS_COMPRESSED) File "/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/util.py", line 154, in deserializeData return self.loads(data) File "/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/util.py", line 348, in loads return pickle.loads(data) cPickle.UnpicklingError: NEWOBJ class argument has NULL tp_new

Richard

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
Pyro-core@...
https://lists.sourceforge.net/lists/listinfo/pyro-core
Richard van Bemmelen | 22 Oct 15:06 2013
Picon

Connection refused

I do not know why I get this connection refused.
On my Mac runs the name server, with -n ip address. 
Also a server is running registered to this name server.
A client on the Mac can connect, no problem.
On my Ubuntu machine the client gives this error, although it sees the name server. ( Pyro4.nsc list) and Pyro4.nsc ping says 'name server ping ok' 

Richard
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
Pyro-core@...
https://lists.sourceforge.net/lists/listinfo/pyro-core
Richard van Bemmelen | 22 Oct 10:48 2013
Picon

deamon.requestloop() in another thread?

If I want to add Pyro functionality to an existing program (make it a Pyro server) I would like the daemon.requestloop() not to interfere with the program. Is it possible to start this in another thread?


Richard 
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
Pyro-core@...
https://lists.sourceforge.net/lists/listinfo/pyro-core
Richard van Bemmelen | 19 Oct 09:16 2013
Picon

Running it on different machines

I started the name server on my Ubuntu machine with -n host_name.
(BTW, the manual is a bit confusing here, because it seems that the host name can be an arbitrary string, but that does not work. I just put the ip address here, and that was accepted).

But now trying to locate the name server from my Mac fails. 
It gives : "failed to locate the nameserver".

I can ping both machines, although there are in a different address range.

Richard
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
Pyro-core@...
https://lists.sourceforge.net/lists/listinfo/pyro-core
Richard van Bemmelen | 18 Oct 23:03 2013
Picon

Can I register a function (not a class) ?

Since in Python everything is an object, I thought this would be possible to but it does not work.

Richard
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
Pyro-core@...
https://lists.sourceforge.net/lists/listinfo/pyro-core
Richard van Bemmelen | 18 Oct 17:46 2013
Picon

Serializer "serpent" is unknown or not available

I just installed Pyro 4.22 on a Mac, a Linux Ubuntu machine and a Windows 7 PC.
On Mac I can start the name server, on Linux and Windows I get the above error.

Any clues?

By the way, Pyro looks very promising, I can't wait to make stuff with it!

Richard van Bemmelen
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
Pyro-core@...
https://lists.sourceforge.net/lists/listinfo/pyro-core

Gmane