Upgrade provision error

Andrew Bartlett abartlet at samba.org
Wed Feb 23 23:01:20 MST 2011


On Thu, 2011-02-24 at 15:59 +1100, Brad Hards wrote:
> On Thursday, February 24, 2011 01:54:02 pm Rohit Rajan wrote:
> > i'm trying to upgrade my samba provision from Version
> > 4.0.0alpha14-GIT-cd04af7 on CentOS release 5.5 (Final) with Python 2.4.3
> > to git pull of 5ec284d
> I'm not sure that updateprovision is really supported for anything except 
> upgrading from one released version to the next. You probably shouldn't try 
> upgrading from one arbitrary git checkout to another unless this is just for 
> testing.
>  
> > its giving an error as below
> > 
> >   source4]# ./scripting/bin/upgradeprovision --full
> > Traceback (most recent call last):
> >    File "./scripting/bin/upgradeprovision", line 36, in ?
> >      import ldb
> > ImportError: No module named ldb
> Without context, it is hard to know for sure, but perhaps:
> 1. you didn't build the python modules (or didn't install them)
> 2. PYTHONPATH isn't set correctly in your environment
> 3. You are using a different environment than your environment (e.g. su or sudo 
> is killing the PYTHONPATH).

That's almost it.  The issue is probably that the old python libs and
binaries from the previous installation were not removed before the new
install.  We should not nee PYTHONPATH any more, due to setting it in
our scripts with sys.path.insert(0...

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Cisco Inc.



More information about the samba-technical mailing list