# Mopidy-Pandora Breaks Installation

**URL:** <https://discourse.mopidy.com/t/mopidy-pandora-breaks-installation/1268>\
**Category:** Misc\
**Created:** [June 30, 2016, 7:20pm UTC](https://discourse.mopidy.com/t/mopidy-pandora-breaks-installation/1268 "2016-06-30T19:20:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMX\_Guy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/amx_guy/32/419_2.png) [@AMX\_Guy](https://discourse.mopidy.com/u/AMX_Guy)\
**Post date:** [June 30, 2016, 7:21pm UTC](https://discourse.mopidy.com/t/mopidy-pandora-breaks-installation/1268/1 "2016-06-30T19:21:00Z")

</div>

Just tried on two different installs and when I run “pip install mopidy-pandora” on a Raspberry Pi I end up with IncompleteRead errors from that point forward.

---

<div class="post-metadata">

**Author:** ![AMX\_Guy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/amx_guy/32/419_2.png) [@AMX\_Guy](https://discourse.mopidy.com/u/AMX_Guy)\
**Post date:** [June 30, 2016, 7:22pm UTC](https://discourse.mopidy.com/t/mopidy-pandora-breaks-installation/1268/2 "2016-06-30T19:22:32Z")

</div>

And the install fails on missing “Python.h”.

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [June 30, 2016, 7:35pm UTC](https://discourse.mopidy.com/t/mopidy-pandora-breaks-installation/1268/3 "2016-06-30T19:35:53Z")

</div>

> [@AMX\_Guy](#):
>
> And the install fails on missing “Python.h”.

Sounds like you need to install the Python development headers. On Debian/Raspbian, install the package `python-all-dev`:

```auto
sudo apt install python-all-dev

```

---

<div class="post-metadata">

**Author:** ![AMX\_Guy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/amx_guy/32/419_2.png) [@AMX\_Guy](https://discourse.mopidy.com/u/AMX_Guy)\
**Post date:** [June 30, 2016, 7:55pm UTC](https://discourse.mopidy.com/t/mopidy-pandora-breaks-installation/1268/4 "2016-06-30T19:55:28Z")

</div>

I did that later but it had already messed up my “requests” and hosed pip. I ended up removing all “requests\*” in /usr/local/lib/Python-2.7/dist-packages and the force reinstalling requests via apt. It seems to be working now and I guess I’ll try to install Pandora again.

Thanks!

---

<div class="post-metadata">

**Author:** ![AMX\_Guy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/amx_guy/32/419_2.png) [@AMX\_Guy](https://discourse.mopidy.com/u/AMX_Guy)\
**Post date:** [June 30, 2016, 8:06pm UTC](https://discourse.mopidy.com/t/mopidy-pandora-breaks-installation/1268/5 "2016-06-30T20:06:36Z")

</div>

Just tried installing again and it made it through but again hosed pip and now pip won’t run again. It is upgrading requests which is what screws it up I believe.

---

<div class="post-metadata">

**Author:** ![AMX\_Guy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/amx_guy/32/419_2.png) [@AMX\_Guy](https://discourse.mopidy.com/u/AMX_Guy)\
**Post date:** [June 30, 2016, 8:23pm UTC](https://discourse.mopidy.com/t/mopidy-pandora-breaks-installation/1268/6 "2016-06-30T20:23:30Z")

</div>

After further evaluation, mopidy-pandora requires requests \>=2.5 but upgrading requests to the latest bricks pip pip-1.5 that is from Ubuntu OS. Not sure the proper path to take here. I upgraded requests and it works but now cannot use pip again. I’m afraid to upgrade pip as I think that got me into trouble last time.

---

<div class="post-metadata">

**Author:** ![AMX\_Guy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/amx_guy/32/419_2.png) [@AMX\_Guy](https://discourse.mopidy.com/u/AMX_Guy)\
**Post date:** [June 30, 2016, 10:24pm UTC](https://discourse.mopidy.com/t/mopidy-pandora-breaks-installation/1268/7 "2016-06-30T22:24:57Z")

</div>

OK. Hogging this thread but I got it working. In case anyone has a similar problem, I had to do the following to get pip and Pandora working:

rm -rf /usr/local/lib/python2.7/dist-packages/requests\*  
apt-get install --reinstall python-requests  
apt-get install python-all-dev  
pip install --upgrade pip  
pip install --upgrade pyasn1  
pip install --force-reinstall --upgrade mopidy-pandora  
apt-get install gstreamer1.0-plugins-ugly

Think that was everything.
