[Buildbot-devel] Problems with launchd

Daniel e_list1 at earthlink.net
Fri Jun 27 21:10:00 UTC 2008


On Jun 27, 2008, at 12:36, john gale wrote:
> On Jun 27, 2008, at 7:46 AM, Daniel wrote:
>> Unfortunately, googling 'buildbot twisted "no module named python"'
>> returns 0 results... any idea what might be causing this error or how
>> to work around it?
>>
>> Also, I don't understand how the specified plist is supposed to work:
>> it launches /usr/local/bin/twistd, not buildbot... can someone  
>> explain
>> that to me?
>
> Hey Daniel ~
>
> buildbot itself is essentially just a library of twistd modules, so  
> that's why the "formal" command to start it calles twistd instead of  
> buildbot.  Since launchd watches a process to determine whether it  
> exits successfully, you can't give it the "buildbot" command, since  
> that exits cleanly even though buildbot is still running in the  
> background.  Launchd would then get confused as to the actual state  
> of buildbot...  is it running, or isn't it?
>
> The problem you're having sounds like it can't easily find your  
> python modules.  Can you start buildbot yourself manually, or does  
> it give the same error?  If you can start it yourself, then the  
> environment vars in the launchd plist might be telling people to  
> look in the wrong location.
>
> Try removing this key, and the <dict> that follows it from the plist:
> <key>EnvironmentVariables</key>
>
> Then restart the process and try again (you can unload plists by  
> using 'launchctl unload <pathToPlist>', and then similarly  
> 'launchctl load <pathToPlist>' )
>
> Hope that helps,

Hi John.

I tried your suggestion without positive results, but I have updated  
the path and am able to launch BuildBot, and it now builds, but  
another issue has cropped up: I now see a pile of entries in /var/log/ 
system.log:

Jun 27 17:05:18 leroy ReportCrash[99614]:   Library not loaded: / 
System/Library/Frameworks/Python.framework/Versions/2.5/Python
Jun 27 17:05:18 leroy ReportCrash[99614]:   Referenced from: /System/ 
Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/ 
Contents/MacOS/Python
Jun 27 17:05:18 leroy ReportCrash[99614]:   Reason: Incompatible  
library version: Python requires version 2.5.0 or later, but Python  
provides version 2.4.0

(Those are just 3 lines of about 20 that get printed every few seconds  
during a build.)

We run a custom python 2.5.0, and I have modified /usr/bin/twistd to  
run through that version of python.  I have modified my buildbot plist  
to include entries from our environment.

The parent process of these ReportCrash entries is make, so I know  
this is happening during the build, but I haven't figured out why or  
how to resolve them.

Anybody have any ideas?

Daniel




More information about the devel mailing list