# Picroft install problem

**URL:** https://community.openconversational.ai/t/picroft-install-problem/5662
**Category:** Archive - Former Random Mycroft Category
**Created:** [January 15, 2019, 8:53am UTC](https://community.openconversational.ai/t/picroft-install-problem/5662 "2019-01-15T08:53:57Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![aaron57](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@aaron57](https://community.openconversational.ai/u/aaron57)
#### Post date: [January 15, 2019, 8:53am UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/1 "2019-01-15T08:53:57Z")

</div>

Hey Mycroft  
I physically broke the first Micro SD card and am trying to give picroft another drive to live in. After flashing the disk it does not want to boot into the CLI and just hangs at the terminal prompt. A pasting of the terminal is attached. This is the second time I have flashed it with _raspian-stretch\_Picroft\_2018-09-12.zip_ and I seem to get the same problem.  
Look forward to hearing what ails him.  
Thanks for reading, and any answers

Installing packages…  
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)  
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?  
Initializing…  
Starting background service bus  
CAUTION: The Mycroft bus is an open websocket with no built-in security  
measures. You are responsible for protecting the local port  
8181 with a firewall as appropriate.  
Starting background service skills  
Starting cli  
Traceback (most recent call last):  
File “/usr/lib/python3.5/runpy.py”, line 183, in \_run\_module\_as\_main  
mod\_name, mod\_spec, code = \_get\_module\_details(mod\_name, \_Error)  
File “/usr/lib/python3.5/runpy.py”, line 109, in \_get\_module\_details  
**import** (pkg\_name)  
File “/home/pi/mycroft-core/mycroft/ **init**.py”, line 17, in   
from mycroft.api import Api  
File “/home/pi/mycroft-core/mycroft/api/ **init**.py”, line 26, in   
from mycroft.identity import IdentityManager, identity\_lock  
File “/home/pi/mycroft-core/mycroft/identity/ **init**.py”, line 21, in   
from mycroft.util.combo\_lock import ComboLock  
File “/home/pi/mycroft-core/mycroft/util/combo\_lock.py”, line 16, in   
from fasteners.process\_lock import InterProcessLock  
ImportError: No module named ‘fasteners’  
(.venv) pi@picroft:~ $ protobuf-3.6.1-cp35-cp35m-linux\_armv6l.whl is not a supported wheel on this platform.  
dpkg: error processing package aiy-python-wheels (–configure):  
subprocess installed post-installation script returned error exit status 1  
Errors were encountered while processing:  
aiy-python-wheels  
E: Sub-process /usr/bin/dpkg returned an error code (1)  
Starting all mycroft-core services  
Initializing…  
Starting background service bus  
CAUTION: The Mycroft bus is an open websocket with no built-in security  
measures. You are responsible for protecting the local port  
8181 with a firewall as appropriate.  
Starting background service skills  
Starting background service audio  
Starting background service voice  
Starting background service enclosure  
(.venv) pi@picroft:~ $

---

<div class="post-metadata">

### Author: ![Dominik](https://community.openconversational.ai/user_avatar/community.openconversational.ai/dominik/32/1936_2.png) [@Dominik](https://community.openconversational.ai/u/Dominik)
#### Post date: [January 15, 2019, 10:51am UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/2 "2019-01-15T10:51:29Z")

</div>

> [@aaron57](#):
>
> protobuf-3.6.1-cp35-cp35m-linux\_armv6l.whl is not a supported wheel on this platform.

This sounds strange. What is your hardware platform? Do you use any soundcard/hat, e.g. Google AIY?

---

<div class="post-metadata">

### Author: ![aaron57](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@aaron57](https://community.openconversational.ai/u/aaron57)
#### Post date: [January 15, 2019, 11:10am UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/3 "2019-01-15T11:10:30Z")

</div>

Thanks for reply  
I have a Raspiaudio pi hat which has been working in other incarnations (all on RP3 b+). Should I just install the driver and pulse audio?

---

<div class="post-metadata">

### Author: ![Dominik](https://community.openconversational.ai/user_avatar/community.openconversational.ai/dominik/32/1936_2.png) [@Dominik](https://community.openconversational.ai/u/Dominik)
#### Post date: [January 15, 2019, 11:51am UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/4 "2019-01-15T11:51:11Z")

</div>

So you have a RPI 3B+ with [this](https://www.raspiaudio.com/raspiaudio-aiy/)?

Then I think you ran into this issue [Picroft 2018-09-12 and the Google AIY Voice Hat](https://community.openconversational.ai/t/picroft-2018-09-12-and-the-google-aiy-voice-hat/4725/3)

---

<div class="post-metadata">

### Author: ![aaron57](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@aaron57](https://community.openconversational.ai/u/aaron57)
#### Post date: [January 15, 2019, 12:36pm UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/5 "2019-01-15T12:36:48Z")

</div>

Yes, that is the hat, but I don’t see what the solution is.  
Is there another image I should flash?  
Thanks

---

<div class="post-metadata">

### Author: ![Dominik](https://community.openconversational.ai/user_avatar/community.openconversational.ai/dominik/32/1936_2.png) [@Dominik](https://community.openconversational.ai/u/Dominik)
#### Post date: [January 15, 2019, 1:53pm UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/6 "2019-01-15T13:53:01Z")

</div>

You can try to use a plain Raspbian Stretch image and do a git-install of Mycroft, but then you have to install and configure the soundcard driver manually.

Maybe @andlo can help, he is the author of the [Google AIY Voicekit skill](https://github.com/andlo/picroft-google-aiy-voicekit-skill) and a lot of experience with that…?

---

<div class="post-metadata">

### Author: ![aaron57](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@aaron57](https://community.openconversational.ai/u/aaron57)
#### Post date: [January 15, 2019, 3:43pm UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/7 "2019-01-15T15:43:58Z")

</div>

Please Mycroft.  
I am very confused. I have downloaded many, many picroft files. Some don’t seem to be flashable, others I can flash onto a disk and work sometimes and othertimes not. And now it seems I need a special one for the audio hat that I have, that used to work on one of the images I downloaded after Xmas. Can somebody point me to something that will work?  
It is all very complicated for an old fool

---

<div class="post-metadata">

### Author: ![andlo](https://community.openconversational.ai/user_avatar/community.openconversational.ai/andlo/32/860_2.png) [@andlo](https://community.openconversational.ai/u/andlo)
#### Post date: [January 15, 2019, 4:12pm UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/8 "2019-01-15T16:12:38Z")

</div>

I dont know that specifik hat. But as Picroft is based on raspbian it should be posible to get it to work. But not out of the box.

First flash the ibage pointet to earlier.  
Boot the Pi up on that image and log in (either by ataching a screen and keyboard or by ssh to picroft) userbame is pi and password is mycroft.  
Follow the guide to install everything - under voice you dont have option for your specifik hat, so just select none (the last choice as i remember)  
Then mycroft should start up…and first he wants is to update. Let him do that for a while.  
Then exit the cli by Ctrl+x  
Update the raspbian by sudu apt-get update and sudo apt-get upgrade  
reboot the device after update and log in again.  
Mycroft should start up in the cli and you should be able to pair ant write to mycroft. Sound andmic maybe not work yet.  
When paired and it feels like he is working ecit the cli by ctrl+x  
follow the install instructions supplyed by raspaudio [https://www.raspiaudio.com/raspiaudio-aiy/](https://www.raspiaudio.com/raspiaudio-aiy/)  
boot your device when done  
Then maybe sound and mic is working else we have to look into what to do…  
What could be needed is:  
install pulseaudio by sudo apt-get install pulseaudio

- change asound.rc in /etc (dont know yet to what, but could be something like the changes on the google voice hat)
- set volume up from zero by using alsamixer

But first thing is getting the picroft running and updated. Then we lookinto how to get that specifik hat working 🙂

---

<div class="post-metadata">

### Author: ![aaron57](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@aaron57](https://community.openconversational.ai/u/aaron57)
#### Post date: [January 15, 2019, 7:00pm UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/9 "2019-01-15T19:00:28Z")

</div>

Thanks very much for your detailed reply, but I am still not sure which image to flash.

---

<div class="post-metadata">

### Author: ![andlo](https://community.openconversational.ai/user_avatar/community.openconversational.ai/andlo/32/860_2.png) [@andlo](https://community.openconversational.ai/u/andlo)
#### Post date: [January 15, 2019, 7:48pm UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/10 "2019-01-15T19:48:46Z")

</div>

That should be the one linked from here

> **[MycroftAI/enclosure-picroft](https://github.com/MycroftAI/enclosure-picroft/tree/stretch)**
>
> Mycroft interface for Raspberry Pi environment. Contribute to MycroftAI/enclosure-picroft development by creating an account on GitHub.

direct link to download [here](https://drive.google.com/uc?id=1XFFneO6j-qGLmcWI5zhqtSkZuIRlv5mR&export=download)

That is the one I use, and today just did a reflash of one of my pi’s

---

<div class="post-metadata">

### Author: ![aaron57](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@aaron57](https://community.openconversational.ai/u/aaron57)
#### Post date: [January 16, 2019, 5:04pm UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/11 "2019-01-16T17:04:55Z")

</div>

Thanks so much for the all the above information.  
Mycroft is now working. He is fantastic  
Keep up the amazing work  
Thanks again

---

<div class="post-metadata">

### Author: ![andlo](https://community.openconversational.ai/user_avatar/community.openconversational.ai/andlo/32/860_2.png) [@andlo](https://community.openconversational.ai/u/andlo)
#### Post date: [January 16, 2019, 5:36pm UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/12 "2019-01-16T17:36:19Z")

</div>

Great to hear. did you manage to get the voicehat going aswell?

---

<div class="post-metadata">

### Author: ![aaron57](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@aaron57](https://community.openconversational.ai/u/aaron57)
#### Post date: [January 16, 2019, 8:24pm UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/13 "2019-01-16T20:24:50Z")

</div>

Yes, he’s all working and very chatty.  
Thanks again

---

<div class="post-metadata">

### Author: ![aaron57](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@aaron57](https://community.openconversational.ai/u/aaron57)
#### Post date: [January 17, 2019, 9:23am UTC](https://community.openconversational.ai/t/picroft-install-problem/5662/14 "2019-01-17T09:23:22Z")

</div>

Following on from this. I am not sure the mic is set up properly. When I record and play back through Picroft the sound quality is very poor. If do arecord and aplay from the command line the quality is much better. I have played with the alsamixer settings but it does not seem to improve.  
Any thoughts anyone?  
Thanks
