Miline Miline - 3 months ago 216
Python Question

How do I install pybonjour on Ubuntu 14.04

Getting this error

ImportError: No module named pybonjour


How do I install pybonjour on Ubuntu 14.04.

Tried
sudo apt-get install pybonjour
and
pip install pybonjour
, no luck.

Answer
  1. Install libavahi-compat-libdnssd1

    sudo apt-get install libavahi-compat-libdnssd1
    
  2. Download pybonjour and unpack it with

    tar zxf pybonjour-1.1.1.tar.gz
    
  3. Installation

    cd pybonjour-1.1.1
    sudo python setup.py install
    
  4. Use

    import pybonjour
    

Also see https://code.google.com/p/pybonjour/ for why you need to install libavahi-compat-libdnssd1

Comments