All of lore.kernel.org
 help / color / mirror / Atom feed
* bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind'
@ 2013-07-03 13:21 Cestonaro Thilo
  2013-07-04  8:18 ` Cestonaro Thilo
  0 siblings, 1 reply; 10+ messages in thread
From: Cestonaro Thilo @ 2013-07-03 13:21 UTC (permalink / raw)
  To: Openembedded Devel List

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/scripts:/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/games:/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/scripts:/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/games:/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.
------------------------------------------------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind'
  2013-07-03 13:21 bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind' Cestonaro Thilo
@ 2013-07-04  8:18 ` Cestonaro Thilo
  2013-07-04  9:17   ` Paul Eggleton
  0 siblings, 1 reply; 10+ messages in thread
From: Cestonaro Thilo @ 2013-07-04  8:18 UTC (permalink / raw)
  To: openembedded-devel

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/scripts:/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/games:/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/scripts:/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/games:/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.
> ------------------------------------------------------------------------------------------------------------------
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
>



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind'
  2013-07-04  8:18 ` Cestonaro Thilo
@ 2013-07-04  9:17   ` Paul Eggleton
  2013-07-04  9:53     ` Paul Barker
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Eggleton @ 2013-07-04  9:17 UTC (permalink / raw)
  To: Cestonaro Thilo; +Cc: openembedded-devel

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind'
  2013-07-04  9:17   ` Paul Eggleton
@ 2013-07-04  9:53     ` Paul Barker
  2013-07-04 10:48       ` Paul Eggleton
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Barker @ 2013-07-04  9:53 UTC (permalink / raw)
  To: Openembedded Discussion

On 4 July 2013 10:17, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> 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?!
>>
>
> 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).
>

I stumbled onto this sort of error when I cloned poky at master but
copied my bblayers.conf from a previous build and didn't update the
paths to point to the correct places for the layers. So I was running
latest bitbake with latest poky 'scripts' directory on the path,
against an old version of the 'dylan' branch of poky.

What versions of openembedded/poky/bitbake are you using? If they're
fetched from git I'd recommend updating everything and trying again.
It could just be a mismatch between the bitbake version and the
metadata versions.

Hope this helps,

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind'
  2013-07-04  9:53     ` Paul Barker
@ 2013-07-04 10:48       ` Paul Eggleton
  2013-07-04 10:55         ` Paul Barker
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Eggleton @ 2013-07-04 10:48 UTC (permalink / raw)
  To: Paul Barker; +Cc: openembedded-devel

On Thursday 04 July 2013 10:53:15 Paul Barker wrote:
> On 4 July 2013 10:17, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> > 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?!
> > 
> > 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).
> 
> I stumbled onto this sort of error when I cloned poky at master but
> copied my bblayers.conf from a previous build and didn't update the
> paths to point to the correct places for the layers. So I was running
> latest bitbake with latest poky 'scripts' directory on the path,
> against an old version of the 'dylan' branch of poky.
> 
> What versions of openembedded/poky/bitbake are you using? If they're
> fetched from git I'd recommend updating everything and trying again.
> It could just be a mismatch between the bitbake version and the
> metadata versions.

If this issue is reproducible I'd really appreciate some help in doing so; we 
shouldn't be showing tracebacks if we can show a meaningful error.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind'
  2013-07-04 10:48       ` Paul Eggleton
@ 2013-07-04 10:55         ` Paul Barker
  2013-07-05 12:35           ` Cestonaro Thilo
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Barker @ 2013-07-04 10:55 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: Openembedded Discussion

On 4 July 2013 11:48, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
>
> If this issue is reproducible I'd really appreciate some help in doing so; we
> shouldn't be showing tracebacks if we can show a meaningful error.
>

Not got time to try reproducing right now, but I did have a very quick
look in git.

On the bitbake side:
http://git.openembedded.org/bitbake/commit/?id=860ec42b220b7ed3f3bbe52c3546bba66644eac8

On the oe-core side:
http://git.openembedded.org/openembedded-core/commit/?id=003ea0fd1017dde50ced710179d0dc2e835d5185

If you're running bitbake with the linked commit applied it looks for
FAKEROOTCMD, if your oe-core doesn't have the linked commit it won't
find FAKEROOTCMD.

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind'
  2013-07-04 10:55         ` Paul Barker
@ 2013-07-05 12:35           ` Cestonaro Thilo
  2013-07-28 14:09             ` Paul Barker
  0 siblings, 1 reply; 10+ messages in thread
From: Cestonaro Thilo @ 2013-07-05 12:35 UTC (permalink / raw)
  To: openembedded-devel

Hey,
> Not got time to try reproducing right now, but I did have a very quick
> look in git.
>
> On the bitbake side:
> http://git.openembedded.org/bitbake/commit/?id=860ec42b220b7ed3f3bbe52c3546bba66644eac8
>
> On the oe-core side:
> http://git.openembedded.org/openembedded-core/commit/?id=003ea0fd1017dde50ced710179d0dc2e835d5185
>
>
"git show <commit>" shows that my bitbake clone has the commit 86..., 
but my oe-core clone is missing the 003.... commit.
So I guess that this is the problem.

Ok. The Problem was, that I cloned clones of the oe-core and meta-oe 
layers (via setup-scripts.git from Angstrom) but the bitbake clone was 
from the original openembedded.org.

so, sorry for the confusion and thanks a lot for the quick look you have 
taken!

Greetings
Thilo


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind'
  2013-07-05 12:35           ` Cestonaro Thilo
@ 2013-07-28 14:09             ` Paul Barker
  2013-07-28 16:46               ` Paul Eggleton
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Barker @ 2013-07-28 14:09 UTC (permalink / raw)
  To: Openembedded Discussion

I've just ran into this again building dylan with the latest version
of bitbake as it doesn't appear that the dylan branch of
openembedded-core sets FAKEROOTCMD in bitbake.conf. I've cherry-picked
the commit below from master onto dylan and it looks like the build is
now going ahead happily.

Bitbake has no dylan branch so I just assumed I was correct using
master. Am I wrong here? If bitbake master is supposed to be able to
build old branches of OpenEmbedded, perhaps this commit needs
backporting to dylan/danny/etc? It looks like it shouldn't cause any
harm if an older bitbake version is used as it simply adds values for
FAKEROOTBASEENV and FAKEROOTCMD.

>> Not got time to try reproducing right now, but I did have a very quick
>> look in git.
>>
>> On the bitbake side:
>>
>> http://git.openembedded.org/bitbake/commit/?id=860ec42b220b7ed3f3bbe52c3546bba66644eac8
>>
>> On the oe-core side:
>>
>> http://git.openembedded.org/openembedded-core/commit/?id=003ea0fd1017dde50ced710179d0dc2e835d5185
>>
>>

Thanks,

-- 
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind'
  2013-07-28 14:09             ` Paul Barker
@ 2013-07-28 16:46               ` Paul Eggleton
  2013-07-29  7:47                 ` Paul Barker
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Eggleton @ 2013-07-28 16:46 UTC (permalink / raw)
  To: Paul Barker; +Cc: openembedded-devel

Hi Paul,

On Sunday 28 July 2013 15:09:46 Paul Barker wrote:
> I've just ran into this again building dylan with the latest version
> of bitbake as it doesn't appear that the dylan branch of
> openembedded-core sets FAKEROOTCMD in bitbake.conf. I've cherry-picked
> the commit below from master onto dylan and it looks like the build is
> now going ahead happily.
> 
> Bitbake has no dylan branch so I just assumed I was correct using
> master. Am I wrong here? 

Technically the matching bitbake branch for dylan is 1.18. I'm not sure if we 
spell this out anywhere, we probably should if not.

> If bitbake master is supposed to be able to build old branches of
> OpenEmbedded, perhaps this commit needs backporting to dylan/danny/etc? It
> looks like it shouldn't cause any harm if an older bitbake version is used
> as it simply adds values for FAKEROOTBASEENV and FAKEROOTCMD.

I haven't checked if it's a genuine problem, but I'd be concerned that any 
fixes that went into OE-Core for bitbake's worker refactoring are not in dylan 
and therefore you might get problems other than the one with FAKEROOTCMD.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind'
  2013-07-28 16:46               ` Paul Eggleton
@ 2013-07-29  7:47                 ` Paul Barker
  0 siblings, 0 replies; 10+ messages in thread
From: Paul Barker @ 2013-07-29  7:47 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: Openembedded Discussion

On 28 July 2013 17:46, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> Hi Paul,
>
> On Sunday 28 July 2013 15:09:46 Paul Barker wrote:
>> Bitbake has no dylan branch so I just assumed I was correct using
>> master. Am I wrong here?
>
> Technically the matching bitbake branch for dylan is 1.18. I'm not sure if we
> spell this out anywhere, we probably should if not.
>

I'll drop back to the 1.18 branch to be safe. I couldn't find anything
telling me which branch to use but I only spent a couple of minutes
looking so I could easily have missed something.

-- 
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-07-29  7:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-03 13:21 bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind' Cestonaro Thilo
2013-07-04  8:18 ` Cestonaro Thilo
2013-07-04  9:17   ` Paul Eggleton
2013-07-04  9:53     ` Paul Barker
2013-07-04 10:48       ` Paul Eggleton
2013-07-04 10:55         ` Paul Barker
2013-07-05 12:35           ` Cestonaro Thilo
2013-07-28 14:09             ` Paul Barker
2013-07-28 16:46               ` Paul Eggleton
2013-07-29  7:47                 ` Paul Barker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.