Strange... I've started a fresh system, used apt-get to install the debian 
packages

steve@debian:~/Development/pyjamas/examples/minesweeper$ dpkg -l | grep pyjamas
ii  pyjamas-desktop                      0.7~+pre2-3                       
Python web widget toolkit (Desktop version)
ii  pyjamas-ui                           0.7~+pre2-3                       
Python Pyjamas Web Widget Set library

steve@debian:~/Development/pyjamas/examples/minesweeper$ dpkg -l | grep xul
ii  xulrunner-1.9.1                      1.9.1.16-12                       XUL 
+ XPCOM application runner

steve@debian:~/Development/pyjamas/examples/minesweeper$ dpkg -l | grep xpcom
ii  python-xpcom                         1:0.0~hg20100212-5                
XPCOM bindings for Python

Got the latest pyjamas from git and ran minesweeper:

steve@debian:~/Development/pyjamas/examples/minesweeper$ python minesweeper.py 
returning /home/steve/.pyjd/prefs.js for key NS_APP_PREFS_50_FILE
loaded
set_main_frame <Browser object at 0x40990a0 (hulahop+webview+WebView at 
0x29a78c0)>
xmlHttp POST None None 
file:///home/steve/Development/pyjamas/examples/minesweeper/public//minesweeper/default/call/jsonrpc
 {"params": [], "jsonrpc": "2.0", "id": "ID1", "method": "get_scores"} 
<pyjamas.JSONService.JSONResponseTextHandler object at 0x4194e90> 
['QueryInterface', '__cmp__', '__doc__', '__eq__', '__float__', '__getattr__', 
'__hash__', '__init__', '__int__', '__long__', '__module__', '__neq__', 
'__repr__', '__setattr__', '__str__', '__unicode__', 
'_build_all_supported_interfaces_', '_comobj_', '_do_conversion', 
'_get_classinfo_repr_', '_interface_infos_', '_interface_names_', 
'_interfaces_', '_name_to_interface_iid_', '_object_name_', 
'_remember_interface_info', '_tried_classinfo_', 'queryInterface']
Traceback (most recent call last):
  File "minesweeper.py", line 637, in <module>
    game = Game(8, 8)
  File "minesweeper.py", line 387, in __init__
    self.remote.get_scores(self.remote_handler)
  File "/home/steve/Development/pyjamas/library/pyjamas/JSONService.py", line 
255, in __call__
    params, handler)
  File "/home/steve/Development/pyjamas/library/pyjamas/JSONService.py", line 
137, in sendRequest
    self.headers):
  File "/home/steve/Development/pyjamas/library/pyjamas/HTTPRequest.py", line 
38, in asyncPost
    returnxml, content_type, headers)
  File "/home/steve/Development/pyjamas/library/pyjamas/HTTPRequest.py", line 
172, in asyncImpl
    res = xmlHttp.open(method, url)
  File "<XPCOMObject method 'open'>", line 3, in open
xpcom.Exception: -1041039359 (NS_ERROR_NOT_INITIALIZED)
steve@debian:~/Development/pyjamas/examples/minesweeper$ 

Is the trouble actually xpcom?

thanks for any hints!

-steve

Reply via email to