Generating Pretrained FCN-Alexnet using ‘net_surgery.py’—— error

Hi, everyone, when I stduying the part of ‘Generating Pretrained FCN-Alexnet’, I run the ‘net_surgery.py’, it showed the followed errors.

zhaoyu@zhaoyu:~/DIGITS/examples/semantic-segmentation$ conda activate
(base) zhaoyu@zhaoyu:~/DIGITS/examples/semantic-segmentation$ ./net_surgery.py
Downloading files (this might take a few minutes)...
Downloading https://raw.githubusercontent.com/BVLC/caffe/rc3/models/bvlc_alexnet/deploy.prototxt...
Traceback (most recent call last):
  File "./net_surgery.py", line 65, in <module>
    generate_fcn()
  File "./net_surgery.py", line 28, in generate_fcn
    download(ALEXNET_PROTOTXT_URL, ALEXNET_PROTOTXT_FILENAME)
  File "./net_surgery.py", line 22, in download
    urllib.urlretrieve(url, filename)
  File "/usr/lib/python2.7/urllib.py", line 98, in urlretrieve
    return opener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.7/urllib.py", line 248, in retrieve
    fp = self.open(url, data)
  File "/usr/lib/python2.7/urllib.py", line 216, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.7/urllib.py", line 446, in open_https
    h.endheaders(data)
  File "/usr/lib/python2.7/httplib.py", line 1069, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 907, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 869, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 1294, in connect
    server_hostname=server_hostname)
  File "/usr/lib/python2.7/ssl.py", line 353, in wrap_socket
    _context=self)
  File "/usr/lib/python2.7/ssl.py", line 601, in __init__
    self.do_handshake()
  File "/usr/lib/python2.7/ssl.py", line 830, in do_handshake
    self._sslobj.do_handshake()
IOError: [Errno socket error] [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590)
(base) zhaoyu@zhaoyu:~/DIGITS/examples/semantic-segmentation$

Does anyone have the similar experiences, if you have encountered the same errors, please tell me how to solve the errors. Thanks a lot.

Sophia

Hi,

DIGITs cannot be executed on the Jetson platform.
Do you run it on an x86 environment?

It looks like the error comes from SSL.
Could you check if this comment also works for you?
[url]Errno socket error occurs when I retrieve file from url with python urllib - Stack Overflow

Thanks.

Yes, I run it on an x86 environment.

I have sovled the error, I directly downloaded the models and texts files form their websites. And uncommented the errored lines.Finally it worked, I thought the errors may result from the system has two or more environments.

Thanks for you response and patience. I will review the errors.

Sophia