Re: connect two different machine
Luca Delucchi <[email protected]> Wed, 21 Jan 2015 16:26:44 +0100
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <CAK4m-3wVrkJ4fMFerxVcufYvg1-bVCEHrk-qHV-WguJDSKdSvQ@mail.gmail.com> |
On 21 January 2015 at 11:30, Luca Delucchi <[email protected]> wrote: > 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-prDWUKxKqPgbxR3XD4mAzA@public.gmane.org:39559 > name = stem.grass > Pyro daemon running. > > > python -m Pyro4.nsc --host=10.0.100.251 list > --------START LIST > Pyro.NameServer --> PYRO:[email protected]:9090 > stem.grass --> PYRO:obj_b2c0d990fa2241a0b30a9de0329a8519-prDWUKxKqPgbxR3XD4mAzA@public.gmane.org: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:[email protected]:39559") > gs.initialize(os.getpid(), '/home/lucadelu/grassdata/', > 'UTM32_ETRS89', '/home/lucadelu/bin/grass70', 25832) > > NamingError: Failed to locate the nameserver > more information: running the server with strace, when I try to query the server from the client I obtain this {sa_family=AF_INET, sin_port=htons(33239), sin_addr=inet_addr("10.0.101.18")}, [16]) = 7 futex(0x7f673c001650, FUTEX_WAKE_PRIVATE, 1) = 1 futex(0x16d1bd0, FUTEX_WAKE_PRIVATE, 1) = 1 futex(0x16d1bd0, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable) futex(0x1825fe0, FUTEX_WAKE_PRIVATE, 1) = 1 futex(0x16d1bd0, FUTEX_WAKE_PRIVATE, 1) = 1 at least the client and the server are in touch :-) > someone can help me? > > Thnaks > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet