monapi
Posts: 45
Joined: Tue Aug 07, 2018 7:53 am

error while opening the command prompt

Mon Sep 10, 2018 12:11 pm

hello,
i'm not sure if i can ask this question here or not.
i make my raspberry pi 3 with rasbian stretch OS a picroft.
and i try to create a skill after i do that i start the picroft and start the cli as well, when i do that the raspi stops working.
i reboot the pi and do that again. i start the cli then raspi stops working and i reboot it again. this time the raspi didn't stop but cli didn't show any output log. i start and stop cli several times then i receive error below every time i start the cli. the error is:

Traceback (most recent call last):
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_app.py", line 168, in run_forever
host=host, origin=origin)
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_core.py", line 266, in connect
self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options))
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_http.py", line 63, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_http.py", line 116, in _open_socket
raise err
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_http.py", line 105, in _open_socket
sock.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_app.py", line 168, in run_forever
host=host, origin=origin)
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_core.py", line 266, in connect
self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options))
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_http.py", line 63, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_http.py", line 116, in _open_socket
raise err
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_http.py", line 105, in _open_socket
sock.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_app.py", line 168, in run_forever
host=host, origin=origin)
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_core.py", line 266, in connect
self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options))
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_http.py", line 63, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_http.py", line 116, in _open_socket
raise err
File "/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/websocket/_http.py", line 105, in _open_socket
sock.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
12:08:04.194 - mycroft.messagebus.client.ws:on_error:83 - ERROR - Exception closing websocket: Exception("Uncaught 'error' event.",)
12:08:04.242 - mycroft.messagebus.client.ws:on_error:85 - WARNING - WS Client will reconnect in 60 seconds.
it is a back page with these tangled lines. and i think it try to make a socket and cannot connect and wait some seccond and try again and can not connect.
i ask about it in picroft chatroom but they can't answer. i think that maybe someone here know about it.

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: error while opening the command prompt

Thu Sep 13, 2018 1:10 pm

What is mycroft/picroft ?
Are you accessing this via a browser ? Which browser ?

If it looks like a networking problem, maybe take a look at the networking setup.
Describe more what computers is involved.

Return to “Beginners”