martinohanlon / BlueDot

A zero boiler plate bluetooth remote
MIT License
141 stars 43 forks source link

no services which can be used with Raspberry Pi #146

Closed mtyeager closed 4 years ago

mtyeager commented 4 years ago

I have gone through the Bluetooth pairing and connection info. The Raspberry Pi pairs to the android phone, but it shows the message "Paired successfully, but this device has no services which can be used with Raspberry Pi." When I launch BlueDot I see the Raspberry Pi, and can click on it, but get the message "unable to connect". I don't see any additional guidance in the readme. Any thoughs?

mtyeager commented 4 years ago

Nevermind. When I run the python script on the pi, it does connect. Not a problem. Thanks.

martinohanlon commented 4 years ago

Yes. The error is basically saying 'there are no services running on the Pi' (yet) . Your python program is this service your phone will connect too.

mtyeager commented 4 years ago

Hi Martin,

I have been trying to run the bluedot Bluetooth server in a docker container on RPi 4 (slim-buster).

It keeps failing on import dbus, giving me a modulenotfound error, even though I have RUN apt-get install python3-dbus in the dockerfile.

The Bluetooth server runs fine directly on the RPi hardware, but gives me this error when I try to run it in a docker container.

Any thoughts?

Thanks,

Michael

From: martinohanlon notifications@github.com Sent: Saturday, January 11, 2020 2:29 PM To: martinohanlon/BlueDot BlueDot@noreply.github.com Cc: Michael Yeager myeager@Roboppics.com; State change state_change@noreply.github.com Subject: Re: [martinohanlon/BlueDot] no services which can be used with Raspberry Pi (#146)

Yes. The error is basically saying 'there are no services running on the Pi' (yet) . Your python program is this service your phone will connect too.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/martinohanlon/BlueDot/issues/146?email_source=notifications&email_token=AKFZ3Y7TAD4Q6N7R5HUIY5DQ5IMYLA5CNFSM4KFSOVL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIWJKEY#issuecomment-573347091, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKFZ3YZZUJWRZ77EURIWUCLQ5IMYLANCNFSM4KFSOVLQ.

martinohanlon commented 4 years ago

@mtyeager Not a clue. Sorry.

My experience of using docker (on a pi or otherwise) is zero.

ukBaz commented 4 years ago

No idea on docker either but I was curious so I did a search which turned up this: https://georgik.rocks/how-to-start-d-bus-in-docker-container/

Does that help you @mtyeager ?

mtyeager commented 4 years ago

Thanks Barry,

My issue is failure on the import dbus…

Do you think that would fail because dbus isn’t running? I thought it would be because it wasn’t installed, or it was installed, but it couldn’t find it…

Thanks so much for your help.

Michael

From: Barry Byford notifications@github.com Sent: Wednesday, April 22, 2020 4:22 PM To: martinohanlon/BlueDot BlueDot@noreply.github.com Cc: Michael Yeager myeager@Roboppics.com; Mention mention@noreply.github.com Subject: Re: [martinohanlon/BlueDot] no services which can be used with Raspberry Pi (#146)

No idea on docker either but I was curious so I did a search which turned up this: https://georgik.rocks/how-to-start-d-bus-in-docker-container/

Does that help you @mtyeagerhttps://github.com/mtyeager ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/martinohanlon/BlueDot/issues/146#issuecomment-618018461, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKFZ3Y3WHBLEUSG3FBM25SLRN5GVHANCNFSM4KFSOVLQ.

virtadpt commented 4 years ago

If import dbus is failing in your code, you don't have the dbus Python module in your container.

mtyeager commented 4 years ago

Yes, thanks Martin,

Sorry I bothered you with this. It was because I built the image on top of “Slim-buster”.

Which is slim. Not like standard Raspbian…

Once I installed a whole lot of things, it started working properly.

All the best. Stay safe.

Thanks,

Michael

From: The Doctor notifications@github.com Sent: Thursday, April 23, 2020 2:29 PM To: martinohanlon/BlueDot BlueDot@noreply.github.com Cc: Michael Yeager myeager@Roboppics.com; Mention mention@noreply.github.com Subject: Re: [martinohanlon/BlueDot] no services which can be used with Raspberry Pi (#146)

If import dbus is failing in your code, you don't have the dbus Python module in your container.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/martinohanlon/BlueDot/issues/146#issuecomment-618573314, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKFZ3Y3N43VBNHVESW6AIALROCCHFANCNFSM4KFSOVLQ.