gauravsacc / MMM-GoogleAssistant

Google Assistant module for magic mirror https://github.com/MichMich/MagicMirror
MIT License
117 stars 40 forks source link

Trouble running assistant.py #64

Open andyxiannn opened 4 years ago

andyxiannn commented 4 years ago

After i run the code in the environment it have this bugs and I couldnt find way to solve it

pubnub subscription completed Segmentation fault

What means by segmentation fault and how to solve it???

Slyther commented 4 years ago

I'm on the same boat as you. As far as I understand, it's because the google-assistant-library for Python has been deprecated and replaced with the google-assistant-service, which has removed the hotword functionality which this module relies on, but I could be wrong.

If I'm not wrong, however, I hear it's a convoluted process involving downgrading Raspbian's glibc to a version that works with the deprecated google-assistant-library, which should make the library work once more but could break at any minute since the library has been deprecated anyways, meaning this is just a hacky temporary solution. I have no idea how to downgrade glibc, though, so I think this is a dead end for now. Either this module finds a workaround to the hotword problem or google updates their SDK to include hotword functionality again (Hands-free activation in here: https://developers.google.com/assistant/sdk/overview.html#features ).

varadwattamwar commented 3 years ago

My assistant.py works, it shows pubnub subscription completed and hello from python!! but google assistant wont work. Guys plz help p me out.

mlewus commented 2 years ago

My understanding is the 1.0.1 library is not compatible with Buster, and causes segmentation fault. This worked for me:

cd ~ source env/bin/activate python -m pip install --upgrade google-assistant-library==1.0.0

My understanding is the 1.0.1 library is not compatible with Buster. This worked for me.