Stockmarket tutorial help
Marcell Legeza <[email protected]> Mon, 24 Feb 2014 22:11:32 +0100
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <CABDv_r7uv=sq_mLHkzWPT-eOOd-UrF6j-q205Pw8G2orQvJdSw@mail.gmail.com> |
Hello!
I would like to ask for help regarding the stockmarket tutorial. I have a
clean ubuntu installation in which i copy-pasted the code of the tutorial.
I start the nameserver and the stockmarket cannot connect to it. The full
error is here:
Traceback (most recent call last):
File "/usr/local/lib/python3.3/dist-packages/Pyro4/naming.py", line 334,
in locateNS
proxy.ping()
File "/usr/local/lib/python3.3/dist-packages/Pyro4/core.py", line 160, in
__call__
return self.__send(self.__name, args, kwargs)
File "/usr/local/lib/python3.3/dist-packages/Pyro4/core.py", line 306, in
_pyroInvoke
msg = Message.recv(self._pyroConnection, [Pyro4.message.MSG_RESULT])
File "/usr/local/lib/python3.3/dist-packages/Pyro4/message.py", line 160,
in recv
msg = cls.from_header(connection.recv(cls.header_size))
File "/usr/local/lib/python3.3/dist-packages/Pyro4/socketutil.py", line
456, in recv
return receiveData(self.sock, size)
File "/usr/local/lib/python3.3/dist-packages/Pyro4/socketutil.py", line
193, in receiveData
raise err
Pyro4.errors.ConnectionClosedError: receiving: not enough data
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "stockmarket.py", line 63, in <module>
main()
File "stockmarket.py", line 53, in main
ns = Pyro4.locateNS()
File "/usr/local/lib/python3.3/dist-packages/Pyro4/naming.py", line 340,
in locateNS
raise e
Pyro4.errors.NamingError: Failed to locate the nameserver
legezam@ubuntu:~/PycharmProjects/PyroTutorial$ python3 stockmarket.py
Traceback (most recent call last):
File "/usr/local/lib/python3.3/dist-packages/Pyro4/naming.py", line 334,
in locateNS
proxy.ping()
File "/usr/local/lib/python3.3/dist-packages/Pyro4/core.py", line 160, in
__call__
return self.__send(self.__name, args, kwargs)
File "/usr/local/lib/python3.3/dist-packages/Pyro4/core.py", line 306, in
_pyroInvoke
msg = Message.recv(self._pyroConnection, [Pyro4.message.MSG_RESULT])
File "/usr/local/lib/python3.3/dist-packages/Pyro4/message.py", line 160,
in recv
msg = cls.from_header(connection.recv(cls.header_size))
File "/usr/local/lib/python3.3/dist-packages/Pyro4/socketutil.py", line
456, in recv
return receiveData(self.sock, size)
File "/usr/local/lib/python3.3/dist-packages/Pyro4/socketutil.py", line
193, in receiveData
raise err
Pyro4.errors.ConnectionClosedError: receiving: not enough data
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "stockmarket.py", line 63, in <module>
main()
File "stockmarket.py", line 53, in main
ns = Pyro4.locateNS()
File "/usr/local/lib/python3.3/dist-packages/Pyro4/naming.py", line 340,
in locateNS
raise e
Pyro4.errors.NamingError: Failed to locate the nameserver
I have tried it with ufw disabled and enabled with corresponding rules, and
still no change. The interesting part is that the warehouse example (with
servesimple) works exactly as it is descripted in the tutorial. (with
nameserver turned on)
The stockmarket stucks at the line: locateNS().
Environment: Ubuntu 64 desktop in VMWare workstation
I am really new to this, please help me!
Thank You in advance!
Regards,
Marcell Legeza
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyro-core