-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while executing code #52
Comments
You seem to be using python2.7. I think this library is intended for python3. |
You need to install python3 and when running, instead of python file.py, do python3. Also when doing pip package installations, you might have to call pip3 if pip doesn't seem to work. Try googling for more information. I understand, its frustrating :D Hope it helps. |
Thank you quick response. I tried python 3 also and here is new error.... Traceback (most recent call last): i used pip3 install beacontools |
So after this error .... i installed pybluez as well using below command. python3 -m pip install pybluez Now i am getting different error Exception in thread Thread-1: Traceback (most recent call last): |
Did you execute this command from the readme?
|
Please let me know what i am missing. I used exact example code mentioned.
Traceback (most recent call last):
File "BluetoothSept012020.py", line 4, in
from beacontools import BeaconScanner, EddystoneTLMFrame, EddystoneFilter#, EddystoneUIDFrame, EddystoneURLFrame
File "/home/pi/.local/lib/python2.7/site-packages/beacontools/init.py", line 3, in
from .scanner import BeaconScanner
File "/home/pi/.local/lib/python2.7/site-packages/beacontools/scanner.py", line 17, in
from .device_filters import BtAddrFilter, DeviceFilter
File "/home/pi/.local/lib/python2.7/site-packages/beacontools/device_filters.py", line 110
raise ValueError("bt_addr({}) wasn't a string".format(bt_addr)) from exc
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: