重要错误:无法加载浅水蓝框架

2024-05-02 08:49:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我安装了LightblueAPI,但当我尝试导入蓝牙模块时,我收到了以下错误:

>>> import bluetooth
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/ettore/Library/Python/2.7/lib/python/site-packages/bluetooth/__init__.py", line 47, in <module>
    from .osx import *
  File "/Users/ettore/Library/Python/2.7/lib/python/site-packages/bluetooth/osx.py", line 1, in <module>
    import lightblue
  File "/Users/ettore/Library/Python/2.7/lib/python/site-packages/lightblue/__init__.py", line 160, in <module>
    from ._lightblue import *
  File "/Users/ettore/Library/Python/2.7/lib/python/site-packages/lightblue/_lightblue.py", line 29, in<module>
    from . import _LightAquaBlue
  File "/Users/ettore/Library/Python/2.7/lib/python/site-packages/lightblue/_LightAquaBlue.py", line 33, in <module>
    _FRAMEWORK_PATH)
ImportError: Cannot load LightAquaBlue framework, not found at /Users/ettore/Library/Python/2.7/lib/python/site-packages/lightblue/LightAquaBlue.framework

我在macos 10.14.4上


Tags: inpyimportlibpackageslinelibrarysite