4

I keep getting this error after importing lightblue module for python:

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    import lightblue
  File "/Library/Python/2.7/site-packages/lightblue/__init__.py", line 160, in <module>
    from _lightblue import *
  File "/Library/Python/2.7/site-packages/lightblue/_lightblue.py", line 23, in <module>
    import Foundation
ImportError: No module named Foundation

I have a macbook pro 10.8

Sukrit Kalra
  • 33,167
  • 7
  • 69
  • 71
akhilcjacob
  • 89
  • 3
  • 8

1 Answers1

0

Check out this question at ImportError: No module named Foundation

Re-installing pyobjc seemed to fix it too

pip uninstall pyobjc
pip install pyobjc
Jonathan Wheeler
  • 2,539
  • 1
  • 19
  • 29
Ben
  • 6,986
  • 6
  • 44
  • 71