Echo & Alexa Forums

I get an error code if I start the script. What I have to do ?

0 Members and 1 Guest are viewing this topic.

monk-ey

I get an error code if I start the script. What I have to do ?
« on: November 12, 2016, 04:02:31 pm »
root@raspberrypi:~/AWShome# ./awshome.py Traceback (most recent call last):

File "./awshome.py", line 53, in <module> iot = createIoT()

File "./awshome.py", line 43, in createIoT iot.connect()

File "/usr/local/lib/python2.7/dist-packages/AWSIoTPythonSDK/MQTTLib.py", line 808, in connect return self._AWSIoTMQTTClient.connect(keepAliveIntervalSecond)

File "/usr/local/lib/python2.7/dist-packages/AWSIoTPythonSDK/MQTTLib.py", line 403, in connect return self._mqttCore.connect(keepAliveIntervalSecond)

File "/usr/local/lib/python2.7/dist-packages/AWSIoTPythonSDK/core/protocol/mqttCore.py", line 290, in connect self._pahoClient.connect(self._host, self._port, keepAliveInterval) # Throw exception...

File "/usr/local/lib/python2.7/dist-packages/AWSIoTPythonSDK/core/protocol/paho/client.py", line 655, in connect return self.reconnect()

File "/usr/local/lib/python2.7/dist-packages/AWSIoTPythonSDK/core/protocol/paho/client.py", line 777, in reconnect sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))

File "/usr/lib/python2.7/socket.py", line 553, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): socket.gaierror: [Errno -2] Name or service not known

I do not know what I must do to make this shit running smooth :/

Can you help me with my problem?

DParker

Re: I get an error code if I start the script. What I have to do ?
« Reply #1 on: November 12, 2016, 04:15:46 pm »
Well, your first problem is that you've just dumped a bunch of diagnostic trace output without any information regarding what it's from, what you're trying to do, etc...and are still expecting someone to help you out.