Skip to content

How can I install AidLearning framework in my Jetson Nano Linux desktop? #58

Open
@BradleyWang123

Description

@BradleyWang123

When I run the faceID routie in my Jetson Nano Linux Desktop(ubuntu18.04 LTS), I found below error, I suspect I don't properly install AidLearning framework so that it can't connect to the usb camera( /dev/video1 ) to cause connection time out.

$/src/facencnn/python3 faceID.py
remi.server INFO Started httpserver http://0.0.0.0:5000/
remi.server.ws INFO connection established: ('127.0.0.1', 56134)
remi.request INFO built UI (path=/)
127.0.0.1 - - [10/Oct/2019 09:44:35] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [10/Oct/2019 09:44:35] "GET /res:style.css HTTP/1.1" 200 -
remi.server.ws INFO connection established: ('127.0.0.1', 56146)
remi.server.ws INFO handshake complete
remi.server.ws INFO connection established: ('127.0.0.1', 56148)
remi.server.ws INFO handshake complete
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/urllib/request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/lib/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/lib/python3.6/http/client.py", line 946, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.6/socket.py", line 724, in create_connection
raise err
File "/usr/lib/python3.6/socket.py", line 713, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "faceID.py", line 48, in process
cap = cvs.VideoCapture(0)
File "/home/jetson/Documents/src/facencnn/cvs.py", line 64, in VideoCapture
urlopen('http://172.0.0.1:9000/?name=aidcam' + str(camid))
File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 110] Connection timed out>

remi.server.ws INFO connection established: ('127.0.0.1', 56184)
remi.server.ws INFO handshake complete

Screenshot_2019-10-10 MyApp
@qidiso @aidlearning @Yoline777

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions