* Re: Exception.ValueError during build
[not found] <200806060643.37332.p_blacquiere@yahoo.co.uk>
@ 2008-06-05 22:24 ` Michael 'Mickey' Lauer
2008-06-07 20:30 ` Tom Walsh
0 siblings, 1 reply; 2+ messages in thread
From: Michael 'Mickey' Lauer @ 2008-06-05 22:24 UTC (permalink / raw)
To: openembedded-users; +Cc: openembedded-devel
On Thursday 05 June 2008 20:43:37 Paul Blacquiere wrote:
> Hi,
>
> While trying to build (independent of what machine or distro) I get the
> following error almost immediately.
>
> ********************************************************************
> $> bitbake helloworld-image
>
> NOTE: Out of date cache found, rebuilding...
> NOTE: Handling BitBake files: | (0001/0001) [100 %]
> NOTE: Parsing finished. 0 cached, 1 parsed, 0 skipped, 0 masked.
This looks like either BitBake does not find your configuration directory
(double check BBPATH) or you are missing the path to your BitBake files
(double check BBFILES in your local.conf).
[...]
> NOTE: build 200806060630: started
> NOTE: <type 'exceptions.ValueError'>:substring not found while evaluating:
> ${@base_get_metadata_monotone_revision(d)}
> Traceback (most recent call last):
> File "/stuff/bitbake/bin/bitbake", line 134, in <module>
> main()
> File "/stuff/bitbake/bin/bitbake", line 131, in main
> cooker.cook()
> File "/stuff/bitbake/lib/bb/cooker.py", line 636, in cook
> return self.buildTargets(pkgs_to_build)
> File "/stuff/bitbake/lib/bb/cooker.py", line 527, in buildTargets
> bb.event.fire(bb.event.BuildStarted(buildname, targets,
> self.configuration.event_data))
> File "/stuff/bitbake/lib/bb/event.py", line 67, in fire
> if tmpHandler(event) == Handled:
> File "tmpHandler(e)", line 31, in tmpHandler
> File "/stuff/bitbake/lib/bb/data.py", line 97, in getVar
> return d.getVar(var,exp)
> File "/stuff/bitbake/lib/bb/data_smart.py", line 170, in getVar
> return self.expand(value,var)
> File "/stuff/bitbake/lib/bb/data_smart.py", line 85, in expand
> s = __expand_python_regexp__.sub(python_sub, s)
> File "/stuff/bitbake/lib/bb/data_smart.py", line 71, in python_sub
> s = eval(code)
> File "<string>", line 1, in <module>
> File "<bb>", line 4, in base_get_metadata_monotone_revision
> File "<bb>", line 4, in base_get_scmbasepath
> ValueError: substring not found
Fwiw, we should catch this error and put something more sane out.
:M:
--
Dr. Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Exception.ValueError during build
2008-06-05 22:24 ` Exception.ValueError during build Michael 'Mickey' Lauer
@ 2008-06-07 20:30 ` Tom Walsh
0 siblings, 0 replies; 2+ messages in thread
From: Tom Walsh @ 2008-06-07 20:30 UTC (permalink / raw)
To: openembedded-devel
Michael 'Mickey' Lauer wrote:
> On Thursday 05 June 2008 20:43:37 Paul Blacquiere wrote:
>
>> Hi,
>>
>> While trying to build (independent of what machine or distro) I get the
>> following error almost immediately.
>>
>> ********************************************************************
>> $> bitbake helloworld-image
>>
>> NOTE: Out of date cache found, rebuilding...
>> NOTE: Handling BitBake files: | (0001/0001) [100 %]
>> NOTE: Parsing finished. 0 cached, 1 parsed, 0 skipped, 0 masked.
>>
>
> This looks like either BitBake does not find your configuration directory
> (double check BBPATH) or you are missing the path to your BitBake files
> (double check BBFILES in your local.conf).
>
> [...]
>
>
something broken, I see it too. This "corrects the problem":
--- org.openembedded.dev/classes/base.bbclass~ 2008-06-07
11:11:04.000000000 -0400
+++ org.openembedded.dev/classes/base.bbclass 2008-06-07
16:26:24.000000000 -0400
@@ -718,7 +718,8 @@
return monotone_branch
def base_get_metadata_monotone_revision(d):
- monotone_revision = "<unknown>"
+ monotone_revision = "1"
+ return monotone_revision
try:
monotone_revision = file( "%s/_MTN/revision" %
base_get_scmbasepath(d) ).read().strip()
if monotone_revision.startswith( "format_version" ):
>> NOTE: build 200806060630: started
>> NOTE: <type 'exceptions.ValueError'>:substring not found while evaluating:
>> ${@base_get_metadata_monotone_revision(d)}
>> Traceback (most recent call last):
>> File "/stuff/bitbake/bin/bitbake", line 134, in <module>
>> main()
>> File "/stuff/bitbake/bin/bitbake", line 131, in main
>> cooker.cook()
>> File "/stuff/bitbake/lib/bb/cooker.py", line 636, in cook
>> return self.buildTargets(pkgs_to_build)
>> File "/stuff/bitbake/lib/bb/cooker.py", line 527, in buildTargets
>> bb.event.fire(bb.event.BuildStarted(buildname, targets,
>> self.configuration.event_data))
>> File "/stuff/bitbake/lib/bb/event.py", line 67, in fire
>> if tmpHandler(event) == Handled:
>> File "tmpHandler(e)", line 31, in tmpHandler
>> File "/stuff/bitbake/lib/bb/data.py", line 97, in getVar
>> return d.getVar(var,exp)
>> File "/stuff/bitbake/lib/bb/data_smart.py", line 170, in getVar
>> return self.expand(value,var)
>> File "/stuff/bitbake/lib/bb/data_smart.py", line 85, in expand
>> s = __expand_python_regexp__.sub(python_sub, s)
>> File "/stuff/bitbake/lib/bb/data_smart.py", line 71, in python_sub
>> s = eval(code)
>> File "<string>", line 1, in <module>
>> File "<bb>", line 4, in base_get_metadata_monotone_revision
>> File "<bb>", line 4, in base_get_scmbasepath
>> ValueError: substring not found
>>
>
> Fwiw, we should catch this error and put something more sane out.
>
> :M:
>
--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net http://cyberiansoftware.com http://openzipit.org
"Windows? No thanks, I have work to do..."
----------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-07 20:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200806060643.37332.p_blacquiere@yahoo.co.uk>
2008-06-05 22:24 ` Exception.ValueError during build Michael 'Mickey' Lauer
2008-06-07 20:30 ` Tom Walsh
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.