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
Check out this question at ImportError: No module named Foundation
Re-installing pyobjc
seemed to fix it too
pip uninstall pyobjc
pip install pyobjc
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.