I got python2.7 installed on a raspeberry pi 4 with a script which use the bluethooth library(pybluez) but the script was crashing when importing the library. Si i simply try to import the bluetooth library on a python2.7 shell and i have the same error "AttributeEror: attribute 'doc' of 'instancemethod' objects is not writable"
I can't switch to python3 and i don't understand why it's not working so if someone got an issue to this i would be grateful :)
code:
Import bluetooth
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/bluetooth/__init__.py", line 282,
in <module>
"""
AtributeError: attribute '__doc__' of 'instancemethod' objects is not writable
Thanks