I've been trying to install Pyjamas for Windows using these instructions:
https://github.com/pyjs/pyjs/wiki/installingpyjamasandpyjamasdesktopforwindows

I'm running Python2.7, but that seems okay.
Comtypes doesn't install because Python was installed "for all users" so I 
manually copied the registry entries from HKEY_LOCAL_MACHINE to 
HKEY_CURRENT USER.
After that, the basics seem to be there but nothing really works.

I can get "helloworld" and " hangman" to run under pyjd.bat but they throw 
constant exceptions like this:

Traceback (most recent call last):
  File "C:\Packages\Pyjamas\pyjs\runners\mshtmlevents.py", line 243, in 
IDispatch_Invoke
    result = mth(self.sender, event, None)
  File "/cygdrive/h/Brian/build/pyjs/site-packages/pyjamas/DOM.py", line 
141, in _dispatchEvent
  File "/cygdrive/h/Brian/build/pyjs/site-packages/pyjamas/DOM.py", line 
990, in dispatchEvent
  File "/cygdrive/h/Brian/build/pyjs/site-packages/pyjamas/DOM.py", line 
1027, in dispatchEventImpl
  File "C:\Packages\Pyjamas\library\pyjamas\ui\Widget.py", line 73, in 
onBrowserEvent
    MouseHandler.onBrowserEvent(self, event)
  File "C:\Packages\Pyjamas\library\pyjamas\ui\MouseListener.py", line 65, 
in onBrowserEvent
    return fireMouseEvent(self._mouseListeners, self, event)
  File "C:\Packages\Pyjamas\library\pyjamas\ui\MouseListener.py", line 43, 
in fireMouseEvent
    to_element = DOM.eventGetToElement(event)
  File "/cygdrive/h/Brian/build/pyjs/site-packages/pyjamas/DOM.py", line 
417, in eventGetToElement
  File "C:\Python27\lib\site-packages\comtypes\client\lazybind.py", line 
142, in __getattr__
    descr = self.__bind(name, DISPATCH_METHOD | DISPATCH_PROPERTYGET)
  File "C:\Python27\lib\site-packages\comtypes\client\lazybind.py", line 
107, in __bind
    descr = self._tcomp.Bind(name, invkind)[1]
  File "C:\Python27\lib\site-packages\comtypes\typeinfo.py", line 361, in 
Bind
    raise NameError("Name %s not found" % name)
NameError: Name relatedTarget not found
ERROR:comtypes._comobject:Exception in IDispatch.Invoke implementation:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\comtypes\_comobject.py", line 62, in 
call_with_this
    result = mth(*args, **kw)
  File "C:\Packages\Pyjamas\pyjs\runners\mshtmlevents.py", line 245, in 
IDispatch_Invoke
    sys.stderr.write( traceback.print_exc() )
TypeError: expected a character buffer object

I can't compile them, either.  It always ends like this:

  File "C:\Packages\Pyjamas\pyjs\src\pyjs\linker.py", line 405, in 
visit_module
    self.visit_modules(deps, platform, file_path)
  File "C:\Packages\Pyjamas\pyjs\src\pyjs\linker.py", line 314, in 
visit_modules
    self.visit_module(p, override_paths, platform, module_name=mn)
  File "C:\Packages\Pyjamas\pyjs\src\pyjs\linker.py", line 327, in 
visit_module
    self.merge_resources(dir_name)
  File "C:\Packages\Pyjamas\pyjs\src\pyjs\browser.py", line 148, in 
merge_resources
    with open(base_css_path, 'w') as base_css:
IOError: [Errno 22] invalid mode ('w') or filename: 
'C:\\Packages\\Pyjamas\\examples\\hangman\\output\\base.css'

I've checked and a "output/base.css" has been created and is about 1.8KiB 
in size.

Is there something I'm missing?


I have to say, trying to use pyjs has been one of the most frustrating 
experiences in recent memory.  Nothing has "just worked", either under 
Linux or under Windows.

-- Brian

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to