I have just tried running an app in pyjd (MSHTML on Windows 7) using 
what I think is the most recent commit b7cbeb10.....

After import pyjd it fails on the next import statement. I tried the 
KitchenSink example instead. Exactly the same result. Here is the 
traceback from that:

Traceback (most recent call last):
   File "C:\pyjamas\examples\kitchensink\KitchenSink.py", line 3, in 
<module>
     from pyjamas.ui.Button import Button
   File "C:\pyjamas\pyjd\imputil.py", line 140, in _import_hook
     return importer._finish_import(top_module, parts[1:], fromlist)
   File "C:\pyjamas\pyjd\imputil.py", line 253, in _finish_import
     bottom = self._load_tail(top, parts)
   File "C:\pyjamas\pyjd\imputil.py", line 349, in _load_tail
     m = self._import_one(m, part, fqname)
   File "C:\pyjamas\pyjd\imputil.py", line 299, in _import_one
     module = self._process_result(result, fqname)
   File "C:\pyjamas\pyjd\imputil.py", line 329, in _process_result
     exec code in module.__dict__
   File "C:\pyjamas\library\pyjamas\ui\Button.py", line 17, in <module>
     from pyjamas import Factory
   File "C:\pyjamas\pyjd\imputil.py", line 140, in _import_hook
     return importer._finish_import(top_module, parts[1:], fromlist)
   File "C:\pyjamas\pyjd\imputil.py", line 280, in _finish_import
     self._import_fromlist(bottom, fromlist)
   File "C:\pyjamas\pyjd\imputil.py", line 368, in _import_fromlist
     submod = self._import_one(package, sub, subname)
   File "C:\pyjamas\pyjd\imputil.py", line 299, in _import_one
     module = self._process_result(result, fqname)
   File "C:\pyjamas\pyjd\imputil.py", line 329, in _process_result
     exec code in module.__dict__
   File "C:\pyjamas\library\pyjamas\Factory.py", line 9, in <module>
     from pyjamas import log
   File "C:\pyjamas\pyjd\imputil.py", line 140, in _import_hook
     return importer._finish_import(top_module, parts[1:], fromlist)
   File "C:\pyjamas\pyjd\imputil.py", line 280, in _finish_import
     self._import_fromlist(bottom, fromlist)
   File "C:\pyjamas\pyjd\imputil.py", line 368, in _import_fromlist
     submod = self._import_one(package, sub, subname)
   File "C:\pyjamas\pyjd\imputil.py", line 299, in _import_one
     module = self._process_result(result, fqname)
   File "C:\pyjamas\pyjd\imputil.py", line 329, in _process_result
     exec code in module.__dict__
   File "C:\pyjamas\library\pyjamas\log.py", line 7, in <module>
     __logger = logging.getAppendLogger('log', logging.DEBUG, '%(message)s')
   File "C:\pyjamas\library\pyjamas\logging\__init__.py", line 32, in 
getAppendLo
gger
     return getLoggerForHandler(AppendHandler(name), name, level, fmt)
   File "C:\pyjamas\library\pyjamas\logging\handlers.py", line 26, in 
__init__
     super(AppendHandler, self).__init__()
TypeError: super() argument 1 must be type, not classobj

I think this is a generic pyjd issue, not MSHTML. I don't want to be 
censorious but please, guys, get a working pyjd implementation and use 
it to test before you commit.

P.

Reply via email to