[oe] Help with bitbake

Vitus Jensen vjensen at warpmail.net
Fri Dec 14 21:05:31 UTC 2007


Hej!

Am Freitag, 14. Dezember 2007 16:27 schrieb Eduardo Giacoman:

> I'm new to OpenEmbedded and I've got an error which cannot find the
> solution. I followed the GettingStarted guide and set up everything, but
> when i do "bitbake gpe-image" or just "bitbake" it gives me the
> following:
>
> $ bitbake gpe-image
> Traceback (most recent call last):
>   File "/stuff/bitbake/bin/bitbake", line 134, in <module>
>     main()
>   File "/stuff/bitbake/bin/bitbake", line 114, in main
>     cooker = bb.cooker.BBCooker(configuration)
>   File "/stuff/bitbake/lib/bb/cooker.py", line 65, in __init__
>     self.parseConfigurationFile( os.path.join( "conf", "bitbake.conf" ) )
>   File "/stuff/bitbake/lib/bb/cooker.py", line 353, in
> parseConfigurationFile
>     bb.fetch.fetcher_init(self.configuration.data)
>   File "/stuff/bitbake/lib/bb/fetch/__init__.py", line 97, in
> fetcher_init pd.delDomain("BB_URI_HEADREVS")
>   File "/stuff/bitbake/lib/bb/persist_data.py", line 66, in delDomain
>     self.connection.execute("DROP TABLE IF EXISTS %s;" % domain)
> sqlite3.OperationalError: attempt to write a readonly database
...

There was a patch posted to this mailinglist some time ago.  I've added it 
here for youre convenience:

Index: lib/bb/persist_data.py
===================================================================
--- lib/bb/persist_data.py      (revision 973)
+++ lib/bb/persist_data.py      (working copy)
@@ -57,13 +57,19 @@
         Should be called before any domain is used
         Creates it if it doesn't exist.
         """
-        self.connection.execute("CREATE TABLE IF NOT EXISTS %s(key TEXT, 
value TEXT);" % domain)
+        try:
+            self.connection.execute("CREATE TABLE %s(key TEXT, value 
TEXT);" % domain)
+        except:
+           bb.msg.debug(1, bb.msg.domain.PersistData, "Create table '%s' 
failed" % domain)

     def delDomain(self, domain):
         """
         Removes a domain and all the data it contains
         """
-        self.connection.execute("DROP TABLE IF EXISTS %s;" % domain)
+       try:
+            self.connection.execute("DROP TABLE %s;" % domain)
+        except:
+           bb.msg.debug(1, bb.msg.domain.PersistData, "Delete table '%s' 
failed" % domain)

     def getValue(self, domain, key):
         """



-- 
Vitus Jensen, +49-160-7543437, ICQ 122355880
Stormstr, Hannover, Earth, Milky Way, Universe (current)




More information about the Openembedded-devel mailing list