I'm hoping someone has seen this problem before and may be able to suggest
a fix or workaround. Under windows 7 64bit, running the timerdemo.py
example using pyjd fails with the following stack trace:
Traceback (most recent call last):
File "timerdemo.py", line 306, in <module>
onModuleLoad()
File "timerdemo.py", line 301, in onModuleLoad
timerdemo()
File "timerdemo.py", line 265, in __init__
clock = Clock()
File "timerdemo.py", line 72, in __init__
self.onClick(self.button)
File "timerdemo.py", line 83, in onClick
self.timer.scheduleRepeating(1000)
File "C:\pyjamas\library\pyjamas\Timer.py", line 168, in scheduleRepeating
self.__tid = self.__setInterval(periodMillis)
File "C:\pyjamas\library\pyjamas\Timer.py", line 188, in __setInterval
def __setInterval(self, periodMillis):
AttributeError: 'module' object has no attribute 'threading'
I notice that a similar error occurs when testing the menu functions of the
kitchensink example under pyjd.
I spent about a day looking for some type of workaround, with no luck. I
thought it might be somehow related to the install problem with
comtypes-0.6.2.win32.exe, which will only install if one installs python
for only "yourself" and not for "all users". My theory was that comtypes
perhaps had an issue where the install depended on installing just for
yourself, but then at run time required registry entries for all users. So
I installed python just for myself and not for all users,successfully
installed comtypes, and then backfilled the python registry entries for all
users with the hope that comtypes would then work properly. Too bad my
theory was wrong. I'm assuming that the issue is in comtypes, but I could
be wrong. Perhaps there is some windows 7 configuration item I am missing
or something? I found developing using pyjd under Windows XP to be very
convenient. One can develop very quickly and then periodically compile to
javascript and test under various browsers. I'm hoping to continue this way
of working under Windows 7 64 bit. But at the moment I'm completely stuck
with this problem. Any help would be most appreciated.
--