# CC6sbc bitbake error

**URL:** <https://forums.digi.com/t/cc6sbc-bitbake-error/14920>\
**Category:** Linux\
**Tags:** image, bitbake, cc6sbc\
**Created:** [June 2, 2015, 10:03pm UTC](https://forums.digi.com/t/cc6sbc-bitbake-error/14920 "2015-06-02T22:03:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![digiConnectcore6](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@digiConnectcore6](https://forums.digi.com/u/digiConnectcore6)\
**Post date:** [June 2, 2015, 10:03pm UTC](https://forums.digi.com/t/cc6sbc-bitbake-error/14920/1 "2015-06-02T22:03:15Z")

</div>

Hi,

I am trying to build a graphical image for a connectcore 6. I followed the guide steps and when I do “sudo bitbake dey-image-graphical” I have the error :  
“sudo: bitbake: commande not found”.

I looked up on internet but I didn’t find anything.  
Can somebody help me please?  
Thanks

---

<div class="post-metadata">

**Author:** ![digiConnectcore6](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@digiConnectcore6](https://forums.digi.com/u/digiConnectcore6)\
**Post date:** [June 3, 2015, 11:25am UTC](https://forums.digi.com/t/cc6sbc-bitbake-error/14920/2 "2015-06-03T11:25:33Z")

</div>

I sloved the problem myself.

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [June 3, 2015, 11:24am UTC](https://forums.digi.com/t/cc6sbc-bitbake-error/14920/3 "2015-06-03T11:24:03Z")

</div>

something went wrong on a previous step I assume:  
mkdir -p $HOME/workspace/ccimx6sbc  
cd $HOME/workspace/ccimx6sbc  
source /usr/local/dey-1.6/mkproject.sh -p ccimx6sbc

Did this execute without error?

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [June 3, 2015, 11:26am UTC](https://forums.digi.com/t/cc6sbc-bitbake-error/14920/4 "2015-06-03T11:26:11Z")

</div>

it would help if you also specify the reason for the problem and how you solved it.

---

<div class="post-metadata">

**Author:** ![digiConnectcore6](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@digiConnectcore6](https://forums.digi.com/u/digiConnectcore6)\
**Post date:** [June 4, 2015, 9:02am UTC](https://forums.digi.com/t/cc6sbc-bitbake-error/14920/5 "2015-06-04T09:02:13Z")

</div>

There was something wrong with the sourcing. I erase the folder and did it again and it worked. You have to source the files before running bitbake or it won’t work.

---

<div class="post-metadata">

**Author:** ![digiConnectcore6](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@digiConnectcore6](https://forums.digi.com/u/digiConnectcore6)\
**Post date:** [June 4, 2015, 9:02am UTC](https://forums.digi.com/t/cc6sbc-bitbake-error/14920/6 "2015-06-04T09:02:11Z")

</div>

I manage to launch bitbake but I got this error message :  
ERROR: Error parsing configuration files  
Traceback (most recent call last):  
File “/usr/local/dey-1.6/sources/poky/bitbake/lib/bb/cookerdata.py”, line 228, in CookerDataBuilder.parseBaseConfiguration():  
try:  
\> self.parseConfigurationFiles(self.prefiles, self.postfiles)  
except SyntaxError:  
File “/usr/local/dey-1.6/sources/poky/bitbake/lib/bb/cookerdata.py”, line 290, in CookerDataBuilder.parseConfigurationFiles(prefiles=[], postfiles=[]):  
if data.getVar(“BB\_WORKERCONTEXT”, False) is None:  
\> bb.fetch.fetcher\_init(data)  
bb.codeparser.parser\_cache\_init(data)  
File “/usr/local/dey-1.6/sources/poky/bitbake/lib/bb/fetch2/ **init**.py”, line 484, in fetcher\_init(d=):  
pass  
\> revs.clear()  
else:  
File “/usr/local/dey-1.6/sources/poky/bitbake/lib/bb/persist\_data.py”, line 147, in SQLTable.clear():  
def clear(self):  
\> self.\_execute(“DELETE FROM %s;” % self.table)

File “/usr/local/dey-1.6/sources/poky/bitbake/lib/bb/persist\_data.py”, line 66, in SQLTable.\_execute(\*query=(‘DELETE FROM BB\_URI\_HEADREVS;’,)):  
try:  
\> return self.cursor.execute(\*query)  
except sqlite3.OperationalError as exc:  
OperationalError: attempt to write a readonly database

What should I do? ☹

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [June 4, 2015, 9:59am UTC](https://forums.digi.com/t/cc6sbc-bitbake-error/14920/7 "2015-06-04T09:59:24Z")

</div>

\>OperationalError: attempt to write a readonly database  
This is a permission problem. Maybe you are installing as root , running as regular user? I suggest installing everything as regular user.  
[https://stackoverflow.com/questions/17641993/operationalerror-attempt-to-write-a-readonly-database-in-ubuntu-server](https://stackoverflow.com/questions/17641993/operationalerror-attempt-to-write-a-readonly-database-in-ubuntu-server)

---

<div class="post-metadata">

**Author:** ![digiConnectcore6](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@digiConnectcore6](https://forums.digi.com/u/digiConnectcore6)\
**Post date:** [June 8, 2015, 9:06am UTC](https://forums.digi.com/t/cc6sbc-bitbake-error/14920/8 "2015-06-08T09:06:25Z")

</div>

I fixed that problem and now I have this error :  
NOTE: Preparing runqueue  
NOTE: Executing SetScene Tasks  
ERROR: Worker process (3654) exited unexpectedly (-9), shutting down…  
Warning, worker left partial message: ccopy\_reg  
_reconstructor  
p1  
(clogging  
LogRecord  
p2  
c\_\_builtin_\_  
object  
p3  
NtRp4  
(dp5  
S’taskpid’  
p6  
I0  
sS’threadName’  
p7  
S’MainThread’  
p8  
sS’name’  
p9  
S’BitBake.Parsing’  
p10  
sS’thread’  
p11  
I140015686321984  
sS’created’  
p12  
F1433751177.806149  
sS’process’  
p13  
I3654  
sS’processName’  
p14  
S’MainProcess’  
p15  
sS’args’  
p16  
(S’/usr/local/dey-1.6/sources/poky/meta/conf/machine/include/arm/feature-arm-thumb.inc’  
p17  
tp18  
sS’module’  
p19  
S’ **init** ’  
p20  
sS’filename’  
p21  
S’ **init**.py’  
p22  
sS’levelno’  
p23  
I9  
sS’exc\_text’  
p24  
NsS’pathname’  
p25  
S’/usr/local/dey-1.6/sources/poky/bitbake/lib/bb/ **init**.py’  
p26  
sS’lineno’  
p27  
I58  
sS’msg’  
p28  
S’BB %s: handle(data, i  
NOTE: Tasks Summary: Attempted 51 tasks of which 51 didn’t need to be rerun and all succeeded.

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Is it normal to have so many problem with bitbake?

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [June 8, 2015, 1:40pm UTC](https://forums.digi.com/t/cc6sbc-bitbake-error/14920/9 "2015-06-08T13:40:17Z")

</div>

What OS are you using?

I would also check that you do not have another bitbake installed in the system. Please run “which bitbake” and even “sudo apt-get remove bitbake”.

That should leave just the DEY bitbake installed.

Also, you could try to run the “source /usr/local/dey-1.6/mkproject.sh -p ccimx6sbc” from a clean environment,

env –i  
source /usr/local/dey-1.6/mkproject.sh -p ccimx6sbc

---

<div class="post-metadata">

**Author:** ![digiConnectcore6](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@digiConnectcore6](https://forums.digi.com/u/digiConnectcore6)\
**Post date:** [June 9, 2015, 9:05am UTC](https://forums.digi.com/t/cc6sbc-bitbake-error/14920/10 "2015-06-09T09:05:56Z")

</div>

I am using a vm with ubuntu. Apparently bitbake is in the folder “/usr/local/dey-1.6/sources/poky/bitbake/bin/bitbake”  
I tried to remove bitbake but I had this message “E: Unable to locate package bitbake”. I don’t understand why.

Even when I clean the environment, it still doesn’t work. I have the same error ☹
