[oe] bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind'

Paul Eggleton paul.eggleton at linux.intel.com
Thu Jul 4 09:17:12 UTC 2013


On Thursday 04 July 2013 10:18:32 Cestonaro Thilo wrote:
> hey,
> 
> found it. The Var "FAKEROOTCMD" wasn't set so bitbake died as executing
> "None" doesn't work.
> 
> Added
> FAKEROOTCMD="fakeroot"
> to my local.conf and it worked.
> 
> But anyway, shouldn't this be the default?!
> 
> Greetings
> Thilo
> 
> On 03.07.2013 15:21, Cestonaro Thilo wrote:
> > hey,
> > 
> > can someone point me in the right direction what actually goes wrong?
> > 
> > Looks very strange, so no recipe or compile error but rather than a bug
> > in bitbake.
> > 
> > Greetings
> > Thilo
> > 
> > --------------------------------------------------------------------------
> > ---------------------------------------- bitbake linux-libc-headers
> > 
> > 
> > Loading cache: 100%
> > 
> > |#########################################################################
> > |#########################################################################
> > |######################|> 
> > ETA:  00:00:00
> > Loaded 2155 entries from dependency cache.
> > 
> > Build Configuration:
> > BB_VERSION        = "1.19.1"
> > BUILD_SYS         = "x86_64-linux"
> > NATIVELSBSTRING   = "Ubuntu-13.04"
> > TARGET_SYS        = "arm-magna-linux-gnueabi"
> > MACHINE           = "dm814x-evm"
> > DISTRO            = "magna"
> > DISTRO_VERSION    = "2012.1"
> > TUNE_FEATURES     = "armv7a vfp neon"
> > TARGET_FPU        = "vfp-neon"
> > meta-angstrom     =
> > "angstrom-v2013.06-yocto1.4:0f9be94e05c19b94433431e8354bb1c4884008b4"
> > meta-oe
> > meta-systemd
> > meta-efl
> > meta-gpe
> > meta-gnome
> > meta-xfce
> > meta-initramfs
> > toolchain-layer
> > meta-multimedia
> > meta-networking
> > meta-webserver
> > meta-ruby         = "master:14082ab64805cf9571309f674c036f4856029204"
> > meta-browser      = "danny:de6eb680c0efe0df9ed12526380a10d3aab4359a"
> > meta-ti           =
> > "angstrom-staging-yocto1.4:7d06930ee8c9a9a7138b9b13fc85aef23729292d"
> > meta-magna        = "<unknown>:<unknown>"
> > meta              = "master:3472c1f7ab409cd91c1d4782d9e00880b84e3ae8"
> > 
> > NOTE: Resolving any missing task queue dependencies
> > NOTE: Preparing runqueue
> > NOTE: Executing SetScene Tasks
> > NOTE: Executing RunQueue Tasks
> > No currently running tasks (483 of 491)
> > ERROR: An uncaught exception occured in runqueue, please see the failure
> > below:
> > ERROR: Running idle function
> > 
> > Traceback (most recent call last):
> >     File
> > 
> > "/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue.
> > py",> 
> > line 1354, in RunQueueExecuteTasks.execute():
> >                        if not self.rq.fakeworker:
> >       >                    self.rq.start_fakeworker(self)
> > 
> > self.rq.fakeworker.stdin.write("<runtask>" + pickle.dumps((fn, task,
> > taskname, False, self.cooker.collection.get_file_appends(fn))) +
> > "</runtask>")
> > 
> >     File
> > 
> > "/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue.
> > py", line 874, in
> > RunQueue.start_fakeworker(rqexec=<bb.runqueue.RunQueueExecuteTasks
> > 
> > instance at 0xa2bfef0>):
> >                if not self.fakeworker:
> >       >            self.fakeworker, self.fakeworkerpipe =
> > 
> > self._start_worker(True, rqexec)
> > 
> >     File
> > 
> > "/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue.
> > py", line 826, in RunQueue._start_worker(fakeroot=True,
> > 
> > rqexec=<bb.runqueue.RunQueueExecuteTasks instance at 0xa2bfef0>):
> >                        env[key] = value
> >       >            
> >       >            worker = subprocess.Popen([fakerootcmd,
> > 
> > "bitbake-worker", "decafbad"], stdout=subprocess.PIPE,
> > stdin=subprocess.PIPE, env=env)
> > 
> >                else:
> >     File "/usr/lib/python2.7/subprocess.py", line 711, in
> > 
> > Popen.__init__(args=[None, 'bitbake-worker', 'decafbad'], bufsize=0,
> > executable=None, stdin=-1, stdout=-1, stderr=None, preexec_fn=None,
> > close_fds=False, shell=False, cwd=None, env={'GIT_PROXY_COMMAND':
> > '/home/magna/bin/gitProxyCommand.sh', 'TERM': 'screen', 'SHELL':
> > '/bin/bash', 'PSEUDO_BUILD': '2', 'http_proxy':
> > 'http://172.25.159.7:81/', 'ftp_proxy': 'http://172.25.159.7:81/',
> > 'BBPATH':
> > '/home/magna/Projects/magna/setup-scripts:/home/magna/Projects/magna/setup
> > -scripts/sources/openembedded-core/meta', 'https_proxy':
> > 'http://172.25.159.7:81/', 'PWD':
> > '/home/magna/Projects/magna/setup-scripts', 'LOGNAME': 'magna', 'USER':
> > 'magna', 'PATH':
> > '/home/magna/Projects/magna/setup-scripts/sources/openembedded-core/script
> > s:/home/magna/Projects/magna/setup-scripts/sources/bitbake/bin:/usr/local/
> > sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/ga
> > mes:/home/cestonarot/bin/ti/ccsv5/eclipse/jre/bin:/opt/toolchain/bin:/home
> > /cestonarot/Projects/depot_tools', 'HOME': '/home/magna', 'DISTRO':
> > 'angstrom-v2012.12', 'PSEUDO_DISABLED': '1', 'BB_ENV_EXTRAWHITE':
> > 'PSEUDO_BUILD PSEUDO_DISABLED MACHINE DISTRO TCLIBC TCMODE
> > GIT_PROXY_COMMAND http_proxy ftp_proxy https_proxy
> > all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK
> > BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS'},
> > 
> > universal_newlines=False, startupinfo=None, creationflags=0):
> >                                        c2pread, c2pwrite,
> >                                        
> >       >                                errread, errwrite)
> >                
> >                except Exception:
> >     File "/usr/lib/python2.7/subprocess.py", line 1309, in
> > 
> > Popen._execute_child(args=[None, 'bitbake-worker', 'decafbad'],
> > executable=None, preexec_fn=None, close_fds=False, cwd=None,
> > env={'GIT_PROXY_COMMAND': '/home/magna/bin/gitProxyCommand.sh', 'TERM':
> > 'screen', 'SHELL': '/bin/bash', 'PSEUDO_BUILD': '2', 'http_proxy':
> > 'http://172.25.159.7:81/', 'ftp_proxy': 'http://172.25.159.7:81/',
> > 'BBPATH':
> > '/home/magna/Projects/magna/setup-scripts:/home/magna/Projects/magna/setup
> > -scripts/sources/openembedded-core/meta', 'https_proxy':
> > 'http://172.25.159.7:81/', 'PWD':
> > '/home/magna/Projects/magna/setup-scripts', 'LOGNAME': 'magna', 'USER':
> > 'magna', 'PATH':
> > '/home/magna/Projects/magna/setup-scripts/sources/openembedded-core/script
> > s:/home/magna/Projects/magna/setup-scripts/sources/bitbake/bin:/usr/local/
> > sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/ga
> > mes:/home/cestonarot/bin/ti/ccsv5/eclipse/jre/bin:/opt/toolchain/bin:/home
> > /cestonarot/Projects/depot_tools', 'HOME': '/home/magna', 'DISTRO':
> > 'angstrom-v2012.12', 'PSEUDO_DISABLED': '1', 'BB_ENV_EXTRAWHITE':
> > 'PSEUDO_BUILD PSEUDO_DISABLED MACHINE DISTRO TCLIBC TCMODE
> > GIT_PROXY_COMMAND http_proxy ftp_proxy https_proxy
> > all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK
> > BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS'},
> > universal_newlines=False, startupinfo=None, creationflags=0,
> > shell=False, p2cread=11, p2cwrite=14, c2pread=15, c2pwrite=16,
> > 
> > errread=None, errwrite=None):
> >                   print child_exception
> >                   
> >       >                raise child_exception
> > 
> > AttributeError: 'NoneType' object has no attribute 'rfind'
> > 
> > NOTE: Tasks Summary: Attempted 482 tasks of which 469 didn't need to be
> > rerun and all succeeded.
> > No currently running tasks (483 of 491)
> > 
> > Summary: There were 2 ERROR messages shown, returning a non-zero exit
> > code.

FAKEROOTCMD is set in meta/conf/bitbake.conf, so this is indeed unexpected. 
BTW, "fakeroot" is not correct - it needs to point to pseudo (and that is the 
default if you have a look at meta/conf/bitbake.conf).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the Openembedded-devel mailing list