Re: Using Pyro over 2 networks
Richard <[email protected]> Fri, 03 Oct 2014 15:54:17 +0200
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
In trying to do this, I' am sending 'myself' over, but I get an error:
Traceback (most recent call last):
File "/Users/richard/Desktop/MyPython/hops/hopper.py", line 110, in
<module>
flame.sendmodule("flame.stuff", modulesource)
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 318, in _pyroInvoke
raise data
IndexError: list index out of range
When I send another .py module over, all works fine.
I am using a flame server on the other side, and a small SQLite database
telling hopper.py the IP address of the next hop.
Is there a limitation on what to send over? E.g. can it be a program or
should it be only functions or classes?
I can imagine that when sending over a program the initial code will not
get called?
Richard
On 02/10/14 19:42, Irmen de Jong wrote:
> On 2-10-2014 9:46, Richard wrote:
>> Thanks, but I think this is not the same situation: we do not have a router involved here.
>> I was thinking more in the following way:
>>
>> A python program on PC1 accesses a remote object on PC2 (via Pyro), and that object
>> accesses a remote object on PC3...
>>
> This is indeed what you will have to do.
>
> Like regular network connections between two separated subnets, you have to introduce a
> 'gateway' or 'bridge' in the middle. You have to build this yourself on PC2, and you
> will explicitly need to forward calls to the objects on PC3 because it is not possible
> for your program on PC1 to talk to PC3 directly.
>
> Irmen
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Pyro-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyro-core
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk