Closed dilkhush21 closed 3 years ago
It is what it says. I am not sure as to how I can be of help if the key is invalid. Please double check the key that you have entered.
sorry i was referring to python2 library ,not python3
There is no way you are using python2 unless you have modified something. By default, GassistPi is in python3 environment. API key should be listed only in the config file. Paste the config file, i will take a look, but its not going to help much. Please double or triple check the API key creating process and the API key itself. Thats all I can say.
how to import adafuit_dht DHT22 sensor library in action.py file, when i import adafruit_dht in action.py file and manually start gassistpi using command /home/${USER}/env/bin/python -u /home/${USER}/GassistPi/src/main.py --project_id raspberry-pi-g-d6aa8 --device_model_id raspberry-pi-g-d6aa8-raspberrypi4-t8y7ht ,it shows------ import adafruit_dht ModuleNotFoundError: No module named 'adafruit_dht'
while 'import adafruit_dht' works in python3
You would have installed the python2 package and not the python3 version. This place is not for discussing your personal customisations. Please use gitter for that.
First get some clarity. One place you are saying that importing python3 works and in another place python2 works.
bro please help me regrading youtube api key is invalid, and i have sorted out other python 2 python 3 issue using activating env
please help me regrading youtube key invalid issue
I asked you to double check the API key from the cloud console and the API key that you have entered in the config file have you done that ?
Also I asked you to paste the config file here.
I am attaching youtube api screenshot for your refrence
ADAFRUIT_IO: ADAFRUIT_IO_CONTROL: 'Disabled' ADAFRUIT_IO_USERNAME: 'ENTER YOUR ADAFRUIT_IO USERNAME HERE' ADAFRUIT_IO_KEY: 'ENTER YOUR ADAFRUIT_IO KEY HERE' FEEDNAME: 'ENTER YOUR ADAFRUIT_IO FEEDNAME THAT YOU WANT TO MONITOR HERE'
Conversation: Conversation_Control: 'Enabled' question: 1:
Clickatell: Clickatell_Control: 'Disabled' Clickatell_API: 'ENTER_YOUR_CLICKATELL_API' Name:
Deezer: Deezer_Control: 'Enabled' User_id: '2247762504'
DIYHUE: DIYHUE_Control: 'Enabled'
Domoticz:
Domoticz_Control: 'Disabled' Server_IP:
- '192.168.0.10'
Server_port:
Name:
Id:
ESP: ESP_Control: 'Enabled' IP: 'xxxxxxxxxxxx' #Enter your ESP's IP here. devicename:
Gaana: Gaana_Control: 'Enabled' Playlist:
- 'https://gaana.com/playlist/gaana-dj-bollywood-top-50-1'
- 'https://gaana.com/playlist/alka-yagnik-bday'
Gmusicapi: Gmusic_Control: 'Enabled'
Pushbullet: Pushbullet_Control: 'Enabled'
Google_cloud_api_key: = "AIzaSyBWECUdMuRNMtOLODVjq1SS0x1K-MttJow"
Gpios: AIY_indicator:
IR: IR_Control: 'Disabled' Codes:
Kodi: Kodi_Control: 'Disabled' ip: 192.168.88.226 port: 8080 username: kodi password: kodi musicdirectory: '/home/osmc/Music/' videodirectory: '/home/osmc/Movies/' windowcmd:
Language: Choice: 'en-US' Language options:
Mmmip: 'ENTER_YOUR_MAGIC_MIRROR_IP'
MQTT: MQTT_Control: 'Disabled' IP: 'Enter your MQTT IP ADDRESS here' UNAME: 'Enter your MQTT USERNAME here' PSWRD: 'Enter your MQTT PASSWORD here' TOPIC: 'ENTER your MQTT TOPIC here'
Notify_TTS: Notify_TTS_Control: 'Enabled'
Pushbullet: Pushbullet_API_KEY: 'ENTER YOUR PUSHBULLET KEY HERE' Pushbullet_Control: 'Enabled'
Radio_stations: Radio_Control: 'Enabled' stationnames:
Raspberrypi_GPIO_Control: GPIO_Control: 'Enabled' lightnames:
Script: Script_Control: 'Enabled' scriptname:
Speechtotext: Google_Cloud_Speech: Cloud_Speech_Control: 'Disabled' Google_Cloud_Speech_Credentials_Path: "ENTER THE PATH TO YOUR CLOUD SPEECH CREDENTIALS FILE HERE"
Spotify: Spotify_Control: 'Enabled' client_id: 'ENTER YOUR SPOTIFY CLIENT ID HERE' client_secret: 'ENTER YOUR SPOTIFY CLIENT SECRET HERE' username: 'ENTER YOUR SPOTIFY USERNAME HERE'
Tasmota_devicelist: Tasmota_Control: 'Enabled' friendly-names:
TextToSpeech:
Choice: 'gTTS' Google_Cloud_TTS_Credentials_Path: "ENTER THE PATH TO YOUR TTS CREDENTIALS FILE HERE"
Voice_Gender: 'Female'
Wakewords: Ok_Google: 'Enabled' Custom_Wakeword: 'Enabled'
Wakeword_Engine: 'Snowboy' Snowboy_wakeword_models:
Wemo: Wemo_Control: 'Disabled' Wemo_Devices: IP_Address:
YouTube: YouTube_Control: 'Enabled'
API Key for YouTube and Kickstarter Search Engine
Google_cloud_api_key: = "AIzaSyBWECUdMuRNMtOLODVjq1SS0x1K-MttJow"
I asked you to double check, triple check. Why do you have a "=" there in that line ?
Check the original config file. https://github.com/shivasiddharth/GassistPi/blob/cffe4a7fbb67fc1782f4d791db43f3690e01afdd/src/config.yaml#L99
IMPORTANT NOTICE
If you do not complete the template below it is likely that your issue will not be addressed. When providing information about your issue please be as extensive as possible so that it can be solved by as little as possible responses.
FAILURE TO COMPLETE THE REQUESTED INFORMATION WILL RESULT IN YOUR ISSUE BEING CLOSED
Which branch of GassistPi are you using ?
Board and OS details:
Open a terminal and run
Describe the bug:
Did you go through or search the issues section to check if your issue was already discussed (either currently open issues or closed issues)?
Yes/No Yes
2. Is the issue related to assistant installation ?
Yes/No No
If answer to question 2 is Yes, then attach the contents of terminal as a file or paste it below.
If answer to question 2 is No, then proceed further.
3. Does the assistant service start normally?
Yes/No no,manually start
4. Is the assistant service restarting automatically?
Yes/No NO
If answer to question 4 is Yes, then paste the contents of the terminal below.
If answer to question 4 is No, then proceed further.
Manually start the assistant. For guidelines to start the assistant manually refer this
Paste the command below, that crashed the assistant
Paste the contents of the terminal below