2

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.

Tim
  • 41,901
  • 18
  • 127
  • 145
Milind Dumbare
  • 3,104
  • 2
  • 19
  • 32

1 Answers1

7
  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

Tim
  • 41,901
  • 18
  • 127
  • 145