libpebble
libpebble copied to clipboard
lightblue on ubuntu breaks down saying LightBluePebble.py cannot import a name pair.
Following the instructions for Ubuntu, I got the required packages installed, paired the pebble, and ran the following command:
lamblin@lamblin:~/src/libpebble$ ./p.py --pebble_id 00:18:2F:CC:21:C7 --lightblue get_time Process Process-2: Traceback (most recent call last): File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "/usr/local/google/home/lamblin/src/libpebble/pebble/LightBluePebble.py", line 80, in run from lightblue import pair, socket as lb_socket, finddevices, selectdevice ImportError: cannot import name pair Process Process-4: Traceback (most recent call last): File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "/usr/local/google/home/lamblin/src/libpebble/pebble/LightBluePebble.py", line 80, in run from lightblue import pair, socket as lb_socket, finddevices, selectdevice ImportError: cannot import name pair
Here's me confirming the packages mentioned:
lamblin@lamblin:~/src/libpebble$ dpkg -s python-dev Package: python-dev Status: install ok installed ... Version: 2.7.3-0ubuntu2 Replaces: python2.7 (= 2.7.3) Description: header files and a static library for Python (default) ... Homepage: http://www.python.org/ Original-Maintainer: Matthias Kloselamblin@lamblin:~/src/libpebble$ dpkg -s python-tk Package: python-tk Status: install ok installed ... Version: 2.7.3-1ubuntu1 Replaces: python2.3-tk, python2.4-tk Provides: python2.7-tk Depends: python (>= 2.7), python (= 2.4z-4.1), libc6 (>= 2.4), tcl8.5 (>= 8.5.0), tk8.5 (>= 8.5.0) Suggests: tix, python-tk-dbg Conflicts: python2.3-tk, python2.4-tk Description: Tkinter - Writing Tk applications with Python ... Original-Maintainer: Matthias Klose lamblin@lamblin:~/src/libpebble$ dpkg -s libopenobex1-dev Package: libopenobex1-dev Status: install ok installed ... Version: 1.5-2build1 Provides: libopenobex-dev Depends: libopenobex1 (= 1.5-2build1), libbluetooth-dev, libusb-dev (>= 2:0.1.11) Suggests: pkg-config Conflicts: libopenobex-dev Description: OBEX protocol library - development files ... Original-Maintainer: martin f. krafft