Skip to content
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

Pizza Example does not work #37

Open
msomeha opened this issue Jun 29, 2019 · 3 comments
Open

Pizza Example does not work #37

msomeha opened this issue Jun 29, 2019 · 3 comments

Comments

@msomeha
Copy link

msomeha commented Jun 29, 2019

I get the following error when I try to run the project. Any solution for this issue?

Traceback (most recent call last):
File "peripheral.py", line 25, in
pizzaService = PizzaService(Pizza())
File "/home/pi/pybleno/examples/pizza/PizzaService.py", line 11, in init
PizzaCrustCharacteristic(pizza),
File "/home/pi/pybleno/examples/pizza/PizzaCrustCharacteristic.py", line 18, in init
value = 'Gets or sets the type of pizza crust.'
TypeError: init() got an unexpected keyword argument 'uuid'

@msomeha
Copy link
Author

msomeha commented Jun 29, 2019

Found the solution. You just need to fix the string detection in the Descriptor.py.
From this:
if options['value'] is str:
to this:
if isinstance(options['value'], str):

@ShinChoon
Copy link

Found the solution. You just need to fix the string detection in the Descriptor.py. From this: if options['value'] is str: to this: if isinstance(options['value'], str):

No it is already edited but still has the same error

@JHorwitz1011
Copy link

anyone make any progress on this?

AFAIK it looks like a javascript to python conversion error...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants