STMicroelectronics / BlueSTSDK_Python

Bluetooth Low Energy Sensors Technology Software Development Kit (Python version for Linux Gateways)
https://www.st.com/en/embedded-software/bluest-sdk.html
BSD 3-Clause "New" or "Revised" License
61 stars 19 forks source link

Error running examples in ubuntu #9

Closed gmaglian closed 5 years ago

gmaglian commented 5 years ago

Hello few days ago I updated Ubuntu python to version Python 2.7.15+ and can't execute examples.

By running example_ble_1.py I get the following error on library file:

File "example_ble_1.py", line 51, in from blue_st_sdk.manager import Manager File "/usr/local/lib/python2.7/dist-packages/blue_st_sdk/manager.py", line 47, in from blue_st_sdk.node import Node File "/usr/local/lib/python2.7/dist-packages/blue_st_sdk/node.py", line 51, in from blue_st_sdk.utils.ble_node_definitions import Debug File "/usr/local/lib/python2.7/dist-packages/blue_st_sdk/utils/ble_node_definitions.py", line 41, in from blue_st_sdk.features import * File "/usr/local/lib/python2.7/dist-packages/blue_st_sdk/features/feature_proximity_gesture.py", line 54, in class FeatureProximityGesture(Feature): File "/usr/local/lib/python2.7/dist-packages/blue_st_sdk/features/feature_proximity_gesture.py", line 63, in FeatureProximityGesture DATA_MAX = len(Gesture) - 1 TypeError: object of type 'type' has no len()

Pls. can you help? Thanks Giovanni Magliano

davidroid commented 5 years ago

Hello Giovanni, have you tried re-installing the "enum" package? sudo pip install enum34

Regards, Davide

Il giorno gio 27 giu 2019 alle ore 12:49 gmaglian notifications@github.com ha scritto:

Hello few days ago I updated Ubuntu python to version Python 2.7.15+ and can't execute examples. By running example_ble_1.py I get the following error on library file: File "example_ble_1.py", line 51, in from blue_st_sdk.manager import Manager File "/usr/local/lib/python2.7/dist-packages/blue_st_sdk/manager.py", line 47, in from blue_st_sdk.node import Node File "/usr/local/lib/python2.7/dist-packages/blue_st_sdk/node.py", line 51, in from blue_st_sdk.utils.ble_node_definitions import Debug File "/usr/local/lib/python2.7/dist-packages/blue_st_sdk/utils/ble_node_definitions.py", line 41, in from blue_st_sdk.features import * File "/usr/local/lib/python2.7/dist-packages/blue_st_sdk/features/feature_proximity_gesture.py", line 54, in class FeatureProximityGesture(Feature): File "/usr/local/lib/python2.7/dist-packages/blue_st_sdk/features/feature_proximity_gesture.py", line 63, in FeatureProximityGesture DATA_MAX = len(Gesture) - 1 TypeError: object of type 'type' has no len()

Pls. can you help? Thanks Giovanni Magliano

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/9?email_source=notifications&email_token=AAZTU2L5KEUPIXKIFSPWYZDP4SLNJA5CNFSM4H32WNGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G4BJSEQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZTU2NSKCKOHUFWMMEB6ELP4SLNJANCNFSM4H32WNGA .

gmaglian commented 5 years ago

Hello Davide. I reinstalled the package... Now it works!

Many thanks for the support. Ciao Giovanni

Il giorno ven 5 lug 2019 alle ore 12:55 davidroid notifications@github.com ha scritto:

Hello Giovanni, have you tried re-installing the "enum" package? sudo pip install enum34

Regards, Davide

Il giorno gio 27 giu 2019 alle ore 12:49 gmaglian < notifications@github.com> ha scritto:

Hello few days ago I updated Ubuntu python to version Python 2.7.15+ and can't execute examples. By running example_ble_1.py I get the following error on library file: File "example_ble_1.py", line 51, in from blue_st_sdk.manager import Manager File "/usr/local/lib/python2.7/dist-packages/blue_st_sdk/manager.py", line 47, in from blue_st_sdk.node import Node File "/usr/local/lib/python2.7/dist-packages/blue_st_sdk/node.py", line 51, in from blue_st_sdk.utils.ble_node_definitions import Debug File

"/usr/local/lib/python2.7/dist-packages/blue_st_sdk/utils/ble_node_definitions.py", line 41, in from blue_st_sdk.features import * File

"/usr/local/lib/python2.7/dist-packages/blue_st_sdk/features/feature_proximity_gesture.py", line 54, in class FeatureProximityGesture(Feature): File

"/usr/local/lib/python2.7/dist-packages/blue_st_sdk/features/feature_proximity_gesture.py", line 63, in FeatureProximityGesture DATA_MAX = len(Gesture) - 1 TypeError: object of type 'type' has no len()

Pls. can you help? Thanks Giovanni Magliano

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/9?email_source=notifications&email_token=AAZTU2L5KEUPIXKIFSPWYZDP4SLNJA5CNFSM4H32WNGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G4BJSEQ , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAZTU2NSKCKOHUFWMMEB6ELP4SLNJANCNFSM4H32WNGA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/9?email_source=notifications&email_token=AKXE5M3PZUG7GJV2GROES2LP54SAVA5CNFSM4H32WNGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZJHLWI#issuecomment-508720601, or mute the thread https://github.com/notifications/unsubscribe-auth/AKXE5M5MM7LNBS2EAY2WY4TP54SAVANCNFSM4H32WNGA .