I tried to use the Line-us API according to the below web-site.
Getting Started with Line-us Programming
I performed the following steps.
- copy the code and paste to python file.
- Run the command 「python main.py」
Then, I got the below error.
Traceback (most recent call last):
File “C:\Users\ikuhi\work\【LineUs】\main.py”, line 63, in
my_line_us = LineUs(‘line-us.local’)
File “C:\Users\ikuhi\work\【LineUs】\main.py”, line 10, in init
self.__line_us.connect((line_us_name, 1337))
socket.gaierror: [Errno 11001] getaddrinfo failed
What steps must be taken to successfully run the code?