Python 3.x pybluez出现了一些错误。我能';t导入蓝牙
我对pybluez有意见 这是我的密码Python 3.x pybluez出现了一些错误。我能';t导入蓝牙,python-3.x,bluetooth,pybluez,Python 3.x,Bluetooth,Pybluez,我对pybluez有意见 这是我的密码 import bluetooth 然后它会显示这样的错误 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.7/site-packages/bluetooth/__init__.py", line 47, in <module> from .osx imp
import bluetooth
然后它会显示这样的错误
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/bluetooth/__init__.py", line 47, in <module>
from .osx import *
File "/usr/local/lib/python3.7/site-packages/bluetooth/osx.py", line 1, in <module>
import lightblue
File "/usr/local/lib/python3.7/site-packages/lightblue/__init__.py", line 160, in <module>
from ._lightblue import *
File "/usr/local/lib/python3.7/site-packages/lightblue/_lightblue.py", line 29, in <module>
from . import _LightAquaBlue
File "/usr/local/lib/python3.7/site-packages/lightblue/_LightAquaBlue.py", line 33, in <module>
_FRAMEWORK_PATH)
ImportError: Cannot load LightAquaBlue framework, not found at /usr/local/lib/python3.7/site-packages/lightblue/LightAquaBlue.framework
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/usr/local/lib/python3.7/site packages/bluetooth/_init__.py”,第47行,在
从.osx导入*
文件“/usr/local/lib/python3.7/site packages/bluetooth/osx.py”,第1行,在
进口淡蓝色
文件“/usr/local/lib/python3.7/site packages/lightblue/_init__.py”,第160行,在
从._lightblue导入*
文件“/usr/local/lib/python3.7/site packages/lightblue/_lightblue.py”,第29行,在
从…起进口淡蓝色
文件“/usr/local/lib/python3.7/site packages/lightblue/_LightAquaBlue.py”,第33行,在
_框架(U路径)
ImportError:无法加载LightAquaBlue framework,在/usr/local/lib/python3.7/site-packages/lightblue/LightAquaBlue.framework中找不到
我必须做些什么来解决这个问题。我遇到了同样的问题。这是我的解决办法
ln-s/Library/Frameworks/LightAquaBlue.framework/usr/local/lib/python3.7/site packages/lightblue/LightAquaBlue.framework