Tic Tac Toe example don't work :(

szyk100 szyk100 at o2.pl
Sun Sep 20 15:22:33 BST 2015


Hi
I am try to compile python example from:
http://www.grisby.org/presentations/py10code/tutorial.tar.gz
After some additional packages instalation I finally run 
./gameServer.py -ORBInitRef NameService=corbaloc:iiop:localhost:2809/NameService
and 
./gameClient.py -ORBInitRef NameService=corbaloc:iiop:localhost:2809/NameService
The former output is:
Game Server starting...
Iterator scavenger running...
 GameFactory_i created.
IOR:010000001e00000049444c3a546963546163546f652f47616d65466163746f72793a312e30000000010000000000000064000000010102000c0000003139322e3136382e312e3200638600000e000000fe0cbefe5500001b1b000000000000000200000000000000080000000100000000545441010000001c00000001000000010001000100000001000105090101000100000009010100
Reusing "tutorial" naming context.
GameFactory bound in NameService.
Scavenging dead iterators...
Scavenging dead iterators...
Scavenging dead iterators...
Scavenging dead iterators...
Scavenging dead iterators...
Scavenging dead iterators...
Scavenging dead iterators...
Scavenging dead iterators...
Scavenging dead iterators...
Scavenging dead iterators...
Scavenging dead iterators...
Scavenging dead iterators...
Scavenging dead iterators...
And the later output is:
No games in the GameFactory
GameBrowser initialised
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "./gameClient.pNo games in the GameFactory
GameBrowser initialised
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "./gameClient.py", line 514, in tkloop
    browser.master.mainloop()
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1073, in mainloop
    self.tk.mainloop(n)
RuntimeError: Calling Tcl from different appartmenty", line 514, in tkloop
    browser.master.mainloop()
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1073, in mainloop
    self.tk.mainloop(n)
RuntimeError: Calling Tcl from different appartment
So it apparently does not work. Because there is no game in GameFactory.
I don't know how I can fix it. But I am very keen of Corba. So please help me with that. It is probably easy to fix for you.
regards
Szyk Cech
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20150920/16a8af98/attachment.html>


More information about the omniORB-list mailing list