[oe] weird/wrong parsing error

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Tue Oct 19 19:42:43 UTC 2010


I was authoring a patch for rtorrent but forgot a / in the file:// (so
I only typed file:/)

This gave me the error log below.
It starts off saying Unable to open the bb file and only much later
there is a MailformedURL message.
This is fairly misleading (I started to check first if the file was
there); suggest to improve the error message.

Frans

frans at linux-suse:~/oe/openembedded/recipes/libtorrent> bitbake rtorrent
NOTE: Handling BitBake files: / (4907/7170) [68 %]ERROR: Unable to
open /home/frans/oe/openembedded/recipes/libtorrent/rtorrent_0.8.6.bb
Traceback (most recent call last):
  File "/home/frans/oe/bitbake/lib/bb/cooker.py", line 966, in parse_next
    fromCache, skipped, virtuals = cooker.bb_cache.loadData(f,
cooker.get_file_appends(f), cooker.configuration.data, cooker.status)
  File "/home/frans/oe/bitbake/lib/bb/cache.py", line 210, in loadData
    bb_data = self.load_bbfile(fn, appends, cfgData)
  File "/home/frans/oe/bitbake/lib/bb/cache.py", line 487, in load_bbfile
    raise
  File "/home/frans/oe/bitbake/lib/bb/cache.py", line 482, in load_bbfile
    bb_data = parse.handle(bbfile, bb_data) # read .bb data
  File "/home/frans/oe/bitbake/lib/bb/parse/__init__.py", line 78, in handle
    return h['handle'](fn, data, include)
  File "/home/frans/oe/bitbake/lib/bb/parse/parse_py/BBHandler.py",
line 158, in handle
    return ast.multi_finalize(fn, d)
  File "/home/frans/oe/bitbake/lib/bb/parse/ast.py", line 372, in multi_finalize
    finalize(fn, d)
  File "/home/frans/oe/bitbake/lib/bb/parse/ast.py", line 314, in finalize
    bb.utils.simple_exec("\n".join(code), {"d": d})
  File "/home/frans/oe/bitbake/lib/bb/utils.py", line 354, in simple_exec
    exec(code, _context, context)
  File "<string>", line 3, in <module>
  File "__anon_416_classes_base_bbclass", line 71, in
__anon_416_classes_base_bbclass
  File "utils.bbclass", line 4, in is_machine_specific
  File "/home/frans/oe/bitbake/lib/bb/fetch/__init__.py", line 212, in init
    urldata[url] = FetchData(url, d)
  File "/home/frans/oe/bitbake/lib/bb/fetch/__init__.py", line 480, in __init__
    (self.type, self.host, self.path, self.user, self.pswd, self.parm)
= decodeurl(data.expand(url, d))
  File "/home/frans/oe/bitbake/lib/bb/fetch/__init__.py", line 65, in decodeurl
    raise MalformedUrl(url)
MalformedUrl: file:/aclocal.patch

NOTE: Handling BitBake files: \ (7168/7170) [99
%]/home/frans/oe/openembedded/recipes/libtorrent/rtorrent_0.8.6.bb
NOTE: Handling BitBake files: \ (7169/7170) [99 %]ERROR: Command
execution failed: Traceback (most recent call last):
  File "/home/frans/oe/bitbake/lib/bb/command.py", line 85, in runAsyncCommand
    self.cooker.updateCache()
  File "/home/frans/oe/bitbake/lib/bb/cooker.py", line 783, in updateCache
    if not self.parser.parse_next():
  File "/home/frans/oe/bitbake/lib/bb/cooker.py", line 960, in parse_next
    def parse_next(self):
  File "/home/frans/oe/bitbake/lib/bb/cooker.py", line 994, in parse_next
    raise ParsingErrorsFound
ParsingErrorsFound




More information about the Openembedded-devel mailing list