[Buildbot-devel] ImportError on checkconfig

Ben Hearsum bhearsum at mozilla.com
Thu Jan 29 16:18:34 UTC 2009


Hi Ian,

The checkconfig code appends a directory to PYTHONPATH, but it  
shouldn't clobber anything already there. Can you try:
cd ~/Buildbot
PYTHONPATH=$PYTHONPATH:`pwd`/customCode buildbot checkconfig

I think what's happening here is that '.' is in your PYTHONPATH, but  
'customCode' doesn't get copied to the temporary directory, so when  
checkconfig chdir's there it can't find it anymore.

If the above works, you should consider changing your PYTHONPATH to  
include the full path to customCode.

HTH,
- Ben

On 28-Jan-09, at 7:12 PM, Ian Peters-Campbell wrote:

> Hey all,
>
> I'm probably doing something really dense without realizing it, so  
> apologies
> if this question is a lame one.  I've set up my buildmaster at
> /home/buildmaster/Buildbot and written a significant amount of  
> additional
> code in ~/Buildbot/customCode/ and ~/Buildbot/config.  Unfortunatley  
> when I
> am in ~/Buildbot and I run
>
> buildbot checkconfig master.cfg
>
> I get an ImportError telling me that there is no module named
> customCode.ConfigParser (which there is.)
>
> Running the interactive interpreter I have no problem importing the
> package.  I figured maybe Buildbot was changing its working  
> directory and so
> added ~/Buildbot to the pythonpath, but it didn't seem to have any  
> effect.
> Buildbot still seems unable to find my custom packages which live in  
> what I
> thought was the working directory.
>
> Is there a working directory command line flag that I need to set  
> and am not
> seeing, or is there some different solution to my problem?  I feel  
> like I'm
> probably making a dumb mistake, but it's not connecting for me. :/
>
> Ian
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword_______________________________________________
> 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