[Errno 61] Connection refused when trying to call a remote object method
Francesco Petralia <[email protected]> Mon, 27 Oct 2014 12:56:16 +0100
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <CAL-shCwgoFVaeVjtKuinoNVFDC=SX-CUEM9CvkFESq2i+GedZg@mail.gmail.com> |
Hello all. I'm facing a new error, I try to give you an exhaustive
explanation:
When I try to call a remote object error, the following error appears:
Traceback (most recent call last):
File "/../ATLD/src/Pyro4/core.py", line 407, in __pyroCreateConnection
sock = socketutil.createSocket(connect=connect_location,
reuseaddr=Pyro4.config.SOCK_REUSE, timeout=self.__pyroTimeout)
File "/../ATLD/src/Pyro4/socketutil.py", line 320, in createSocket
sock.connect(connect)
ConnectionRefusedError: [Errno 61] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/../ATLD/src/graphical_user_interface.py", line 298, in
start_analysis
results = self.proxy[0].get_results()
File "/../ATLD/src/Pyro4/core.py", line 231, in __getattr__
self._pyroGetMetadata()
File "../ATLD/src/Pyro4/core.py", line 457, in _pyroGetMetadata
self.__pyroCreateConnection()
File "../ATLD/src/Pyro4/core.py", line 423, in __pyroCreateConnection
raise ce
Pyro4.errors.CommunicationError: cannot connect: [Errno 61] Connection
refused
I really don't understand what's going on.
Object are successfully registered, this is the first think that I've
checked:
<Pyro4.core.Proxy at 0x104953438, connected, for
PYRO:Pyro.NameServer@localhost:9090>
PYRO:obj_886f17575afb4f068c9c210d021223dc-GxbkDS12Q9BJ3c5yGB5LcA@public.gmane.org:51106
python3 -m Pyro4.nsc list gives this output:
--------START LIST
Pyro.NameServer --> PYRO:[email protected]:9090
My_Object_0 -->
PYRO:obj_886f17575afb4f068c9c210d021223dc-GxbkDS12Q9BJ3c5yGB5LcA@public.gmane.org:51106
--------END LIST
I also tried to telnet 155.185.73.155 on port 51106
>>>telnet 155.185.73.155 51106
>>>Trying 155.185.73.155...
>>>telnet: connect to address 155.185.73.155: Connection refused
>>>telnet: Unable to connect to remote host
Here's some code inside my Object class:
daemon = Pyro4.Daemon(analyzer.get_ip_address())
uri_text_analyzer = daemon.register(analyzer)
__NS__.register(__PYRO_OBJ_NAME__, uri_text_analyzer)
daemon.requestLoop()
In another module I have:
ns = Pyro4.naming.locateNS()
uri_text_analyzer = ns.lookup(self.my_object_name + str(identifier))
self.proxy.append(Pyro4.Proxy(uri_text_analyzer))
#This following line is the one that raises the error
results = self.proxy[0].get_results()
Further specs: I'm running it on Mac OS X Yosemite, with Python3.4 and
PyRO4.
If you need other infos feel free to ask.
Thanks in advance for your help.
------------------------------------------------------------------------------
_______________________________________________
Pyro-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyro-core