Found the problem. There were actually two problems. The first problem is 
that using “git” to pull pyjamas from github did not pull all the files. In 
fact, almost all of the files for pyjd were missing from the pyjd 
directory. This was the cause of the timerdemo example not working, failing 
with the “threading” not an module attribute error.  The second problem is 
that you can no longer pass integer values to describe width and height in 
terms of pixels. You must specify pixels as something like “80px”, 
otherwise things error out under pyjd but work fine when compiled to 
javascript. Here is the post that finally clued me in to this problem.

https://groups.google.com/forum/#!msg/pyjamas-dev/ONi--omQnWE/5yNq67XhXcAJ

I found that with the following two fixes, pyjd seems to  work under 
Windows 7, (at least for my code)

1. Instead of using git to pull pyjamas, pull the pyjamas zip file from git 
hub.

2. Every place where a width or height is specified as a number of pixels 
as an integer must be changed to be a string with “px” at the end.

Anyone have a clue as why most of the files would be missing from the pyjd 
folder when pulling pyjamas using git?

I hope this post saves someone some time. It took me several days to figure 
this out.


-- 



Reply via email to