Forum Discussion
openvino : what is the reason for this , how to resolve?
after running this script , the following errors are obtained
script: ./demo_squeezenet_download_convert_run.sh
ERRORS:
################|| Downloading models ||################
========== Retrieving /root/openvino_models/models/public/squeezenet1.1/squeezenet1.1.prototxt from the cache
========== Downloading /root/openvino_models/models/public/squeezenet1.1/squeezenet1.1.caffemodel
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 326, in connect
ssl_context=context)
File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 332, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket
_context=self, _session=session)
File "/usr/lib/python3.6/ssl.py", line 817, in __init__
self.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 367, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3/dist-packages/six.py", line 692, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 326, in connect
ssl_context=context)
File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 332, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket
_context=self, _session=session)
File "/usr/lib/python3.6/ssl.py", line 817, in __init__
self.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/intel/openvino_2019.3.376/deployment_tools/open_model_zoo/tools/downloader/downloader.py", line 65, in try_download
chunk_iterable = start_download()
File "/opt/intel/openvino_2019.3.376/deployment_tools/open_model_zoo/tools/downloader/downloader.py", line 244, in <lambda>
lambda: model_file.source.start_download(session, CHUNK_SIZE)):
File "/opt/intel/openvino_2019.3.376/deployment_tools/open_model_zoo/tools/downloader/common.py", line 172, in start_download
response = session.get(self.url, stream=True, timeout=DOWNLOAD_TIMEOUT)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
########## Error: Download failed
################|| Post-processing ||################
FAILED:
squeezenet1.1
Error on or near line 159; exiting with status 1
14 Replies
- Titanameda
New Contributor
The guide which is followed :
- JohnT_Altera
Regular Contributor
Hi,
Its look like you are installing the wrong BSP. You will need to run "export AOCL_BOARD_PACKAGE_ROOT=/opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_1150_sg1" as this will be the BSP installed into your system as you are using this board.
If you "a10_1150_sg1" is install in the different directory then you can changed "export AOCL_BOARD_PACKAGE_ROOT=/opt/intelFPGA_pro/18.1/hld/board/a10_1150_sg1" which is the same directory of the a10_ref BSP.
- Titanameda
New Contributor
Hi
a10_1150 is installed , as per the commands that are installed , so while diagnosis it is searching for a10_ref so file , where to edit the environmental variables
echo $AOCL_BOARD_PACKAGE_ROOT/
/opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_1150_sg1/
root@tata:~# aocl install
Do you want to install /opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_1150_sg1? [y/n] y
aocl install: Adding the board package /opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_1150_sg1 to the list of installed pckages
aocl install: Setting up FCD
aocl install: Running install from /opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_1150_sg1/linux64/libexec
Looking for kernel source files in /lib/modules/4.15.0-70-generic/build
Using kernel source files from /lib/modules/4.15.0-70-generic/build
Building driver for BSP with name a10_1150_sg1
make: Entering directory '/usr/src/linux-headers-4.15.0-70-generic'
CC [M] /tmp/opencl_driver_zVe9aV/aclpci_queue.o
CC [M] /tmp/opencl_driver_zVe9aV/aclpci.o
CC [M] /tmp/opencl_driver_zVe9aV/aclpci_fileio.o
CC [M] /tmp/opencl_driver_zVe9aV/aclpci_dma.o
CC [M] /tmp/opencl_driver_zVe9aV/aclpci_pr.o
CC [M] /tmp/opencl_driver_zVe9aV/aclpci_cmd.o
LD [M] /tmp/opencl_driver_zVe9aV/aclpci_a10_1150_sg1_drv.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/opencl_driver_zVe9aV/aclpci_a10_1150_sg1_drv.mod.o
LD [M] /tmp/opencl_driver_zVe9aV/aclpci_a10_1150_sg1_drv.ko
make: Leaving directory '/usr/src/linux-headers-4.15.0-70-generic'
root@tata:~# aocl diagnose
/opt/intelFPGA_pro/18.1/hld/board/a10_ref/linux64/libexec/diagnose: error while loading shared libraries: libaltera_a10_ref_mmd.so: cannot open shared object file: No such file or directory
--------------------------------------------------------------------
Warning:
No devices attached for package:
/opt/intelFPGA_pro/18.1/hld/board/a10_ref
--------------------------------------------------------------------
/opt/intelFPGA_pro/18.1/hld/board/a10_ref/linux64/libexec/diagnose: error while loading shared libraries: libaltera_a10_ref_mmd.so: cannot open shared object file: No such file or directory
--------------------------------------------------------------------
--------------------------------------------------------------------
Warning:
No devices attached for package:
/opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_1150_sg1
--------------------------------------------------------------------
Vendor: Intel(R) Corporation
Found no active device installed on the host machine.
Please make sure to:
1. Set the environment variable AOCL_BOARD_PACKAGE_ROOT to the correct board package.
2. Install the driver from the selected board package.
3. Properly install the device in the host machine.
4. Configure the device with a supported OpenCL design.
5. Reboot the machine if the PCI Express link failed.
DIAGNOSTIC_FAILED
--------------------------------------------------------------------
--------------------------------------------------------------------
Warning:
No devices attached for package:
/home/tata/Sharath/hddlf_1150_sg1
--------------------------------------------------------------------
--------------------------------------------------------------------
Call "aocl diagnose <device-names>" to run diagnose for specified devices
Call "aocl diagnose all" to run diagnose for all devices
CURRENT VARIABLES IN BASHRC
####intel openvino###
export INTELFPGAOCLSDKROOT="/opt/intelFPGA_pro/18.1/hld"
export QSYS_ROOTDIR="/home/tata/intelFPGA_pro/18.1/qsys/bin"
export PATH=/home/tata/intelFPGA_pro/18.1/quartus/bin:$PATH
source /opt/intel/openvino/bin/setupvars.sh
export PATH=/opt/intelFPGA_pro/18.1/quartus/bin:$PATH
#opencl via openvino
export PATH=/opt/intelFPGA_pro/18.1/hld/bin:$PATH
source $INTELFPGAOCLSDKROOT/init_opencl.sh
- JohnT_Altera
Regular Contributor
Hi,
Could you performed "AOCL UNINSTALL" in order to uninstall the BSP that is not used? Are you able to detect the board when you use "lspci" command?