[Buildbot-devel] Problems with buildbot 0.7.5 on WinXP

Terry.Rankine at csiro.au Terry.Rankine at csiro.au
Tue Jul 31 05:57:22 UTC 2007


Hi john

I swapped from the "windows specific twisted libs" (the one commented
out) to the generic one.
You could chain the try except to keep trying until it found the default
one or just force it like I have.


buildbot/scripts/startup.py

        if platformType == "win32":
            try:
                from twisted.scripts._twistw import run
            except ImportError:
                # from twisted.scripts.twistw import run
                from twisted.scripts.twistd import run
        else:
            from twisted.scripts.twistd import run
        run()

As for the wiki - yes - sounds great. I would be happy to contribute.

As for catching a signal - not really sure where python stops and the
win32 extensions (mark hammonds stuff) starts.
https://sourceforge.net/projects/pywin32/

Terry Rankine

-----Original Message-----
From: John Pye [mailto:john.pye at anu.edu.au] 
Sent: Tuesday, 31 July 2007 1:20 PM
To: Rankine, Terry (E&M, Kensington)
Cc: buildbot-devel at lists.sourceforge.net
Subject: Re: [Buildbot-devel] Problems with buildbot 0.7.5 on WinXP

Hi Terry

Let's work on getting a good set of instructions together for this. If
you have a patch that would be great. Or a method. I have written
instructions that previously worked for me, but no longer do, due to the
updated Twisted package. I have a little experience writing NSIS
installers, so possibly we could come up with a better way for
installing Buildbot on Windows?

I have a wiki page on this topic that you are welcome to use as a place
for annotations, if you wish:
http://ascendwiki.cheme.cmu.edu/Buildbot

Cheers
JP

Terry.Rankine at csiro.au wrote:
> Hi
>  
> I have seen a similar thing on python 2.3.
>  
> I have been using build bot as a windows service running under 
> firestarter (the free version which many virus programs freak out 
> about), there are a few things that made it possible
>  
> http://www.stolennotebook.com/anthony/2006/07/03/running-buildbot-as-a
> -w
> indows-xp-service/
> http://agiletesting.blogspot.com/2005/09/running-python-script-as-wind
> ow
> s.html
>  
> but i couldnt get them working reliably when other user logged on and 
> off the box in question.
>  
> so firestarter seemed to make it work "more often"
>  
> The twisted version i have (i dowloaded the latest stable instead of 
> the buildbot blessed one) changed its API and i changed my 
> site-packages to deal with the new change, and its working ok for now
>  
> Terry Rankine
>
> ________________________________
>
> From: buildbot-devel-bounces at lists.sourceforge.net
> [mailto:buildbot-devel-bounces at lists.sourceforge.net] On Behalf Of 
> Matthieu Brucher
> Sent: Monday, 30 July 2007 1:52 PM
> To: buildbot-devel at lists.sourceforge.net
> Subject: Re: [Buildbot-devel] Problems with buildbot 0.7.5 on WinXP
>
>
> Hi,
>
> I think I encountered the bug as well and I changed twistw for twistd 
> without a problem.
>
> Matthieu
>
>
> 2007/7/30, John Pye <john.pye at anu.edu.au >: 
>
> 	Excuse me if this message has already gone to the list -- I have
been 
> getting email messages saying that there was a fatal delivery error, 
> so I am re-sending...
> 	--- --- ---
> 	
> 	Hi all
> 	
> 	I have tried to install Buildbot as a service on Windows XP.
> Previously
> 	I think this worked, but currently it seems to be broken,
perhaps due 
> to
> 	a new version of Twisted.
> 	
> 	I get an error like this:
> 	
> 	File
> "c:\Python25\lib\site-packages\buildbot\scripts\startup,py", line
> 	114, in launch
> 	    from twisted.scripts.twistw import run
> 	ImportError: No module named twistw
> 	
> 	Originally I thought that the problem was the Buildbot didn't
realise
> 	that 'twistw' has been renamed '_twistw'. But looking at it
further, 
> it
> 	seems to me that Twisted may have changed its API and no longer 
> provides
> 	a 'run' function; 'run' is now a method of the ApplicationRunner

> object,
> 	and it seems that it now requires something like
> 	
> 	W = _twistw.WindowsApplicationRunner(X)
> 	W.run()
> 	
> 	The X is the 'config' argument of the ApplicationRunner in 
> 	twisted.application.app. I'm not sure what it should contain.
> Perhaps
> 	the 'config' value from my 'buildbotstart.py' script at
> 	http://ascendwiki.cheme.cmu.edu/BuildBot
> <http://ascendwiki.cheme.cmu.edu/BuildBot>
> 	
> 	So as far as I can tell this looks like a bug with Buildbot. Can

> anyone
> 	confirm this?
> 	
> 	Cheers
> 	JP
> 	
> 	PS I think it would be rather good if a Windows version of
Buildbot
> 	could be concocted that dealt with this job of installing the 
> Buildbot
> 	service. It's rather tedious and I imagine might not be so hard
to
> 	automate. But obviously it would take a bit of work.
> 	
> 	
> 	
>
------------------------------------------------------------------------
> -
> 	This SF.net email is sponsored by: Splunk Inc.
> 	Still grepping through log files to find problems?  Stop.
> 	Now Search log events and configuration files using AJAX and a
> browser.
> 	Download your FREE copy of Splunk now >>
> http://get.splunk.com/
> 	_______________________________________________
> 	Buildbot-devel mailing list
> 	Buildbot-devel at lists.sourceforge.net
> <mailto:Buildbot-devel at lists.sourceforge.net> 
> 	https://lists.sourceforge.net/lists/listinfo/buildbot-devel
> 	
>
>
>
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a
browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>   




More information about the devel mailing list