Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lightblue on ubuntu breaks down saying LightBluePebble.py cannot import a name pair. #19

Open
dlamblin opened this issue May 7, 2013 · 0 comments

Comments

@dlamblin
Copy link
Contributor

dlamblin commented May 7, 2013

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)
Depends: python (= 2.7.3-0ubuntu2), python2.7-dev (>= 2.7.3)
Description: header files and a static library for Python (default)
 ...
Homepage: http://www.python.org/
Original-Maintainer: Matthias Klose 
lamblin@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.8), blt (>= 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 
sarfata added a commit to pebble/libpebble that referenced this issue Mar 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant