Jeson nano: cannot clone a repository from Github

I want to do human’s posture recognition from inputs of csi camera module, so that I am trying to install tensor pack from here (https://github.com/tensorpack/tensorpack).

When I did

git clone https://github.com/tensorpack/tensorpack.git

Then I got the message like this

Cloning into 'tensorpack'...
fatal: unable to access 'https://github.com/tensorpack/tensorpack.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.

For testing purpose I also tried to clone this repository (https://github.com/tensorpack/benchmarks.git) from the same author, and I succeed, but still cannot clone the tensorpack repo.

Can someone help me to solve this issue ?
Thank you:)

Hi,
Should be a network issue. We can clone it.

~/Public$ git clone https://github.com/tensorpack/tensorpack.git
Cloning into 'tensorpack'...
remote: Enumerating objects: 28172, done.
remote: Total 28172 (delta 0), reused 0 (delta 0), pack-reused 28172
Receiving objects: 100% (28172/28172), 8.61 MiB | 4.24 MiB/s, done.
Resolving deltas: 100% (21947/21947), done.
Checking connectivity... done.

Or you may try ‘Download ZIP’.

Hi DaneLLL,

Thank you for testing it.Yes, I could clone the repo, when I tried the exactly same thing the day after.(I had rebooted my jetson nano many times so don’t know why I succeed this time.)

Now I’m trying to install tf-pose-estimation( https://github.com/ildoonet/tf-pose-estimation ) to jetson nano.

$ git clone https://github.com/ildoonet/tf-pose-estimation.git
$ cd tf-pose-estimation
$ pip3 install -r requirements.txt

Then I got this error message

Collecting git+https://github.com/tensorpack/tensorpack.git (from -r requirements.txt (line 13))
  Cloning https://github.com/tensorpack/tensorpack.git to /tmp/pip-req-build-i9ieiphb
  Running command git clone -q https://github.com/tensorpack/tensorpack.git /tmp/pip-req-build-i9ieiphb
Collecting argparse
  Using cached https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
Processing /home/jetson/.cache/pip/wheels/59/b1/91/f02e76c732915c4015ab4010f3015469866c1eb9b14058d8e7/dill-0.3.1.1-cp36-none-any.whl
Processing /home/jetson/.cache/pip/wheels/31/9c/c0/07b6dc7faf1844bb4688f46b569efe6cafaa2179c95db821da/fire-0.2.1-py2.py3-none-any.whl
Requirement already satisfied: matplotlib in /usr/lib/python3/dist-packages (from -r requirements.txt (line 4)) (2.1.1)
Processing /home/jetson/.cache/pip/wheels/4b/77/ec/aa5daafc3ac9edc798b93232cdfa86fb7161759d0d2f7f5677/numba-0.47.0-cp36-cp36m-linux_aarch64.whl
Requirement already satisfied: psutil in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 6)) (5.6.3)
Processing /home/jetson/.cache/pip/wheels/dc/e6/36/0e1ae88c868eb42d3f92181b1c9bbd0b217a7ec3da6bd62e55/pycocotools-2.0.0-cp36-cp36m-linux_aarch64.whl
Requirement already satisfied: requests in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 8)) (2.22.0)
Processing /home/jetson/.cache/pip/wheels/36/2c/bc/6286609d6617332325422868e5e4648dd5d5c80ebc22f8cf0d/scikit_image-0.16.2-cp36-cp36m-linux_aarch64.whl
Collecting scipy
  Using cached https://files.pythonhosted.org/packages/04/ab/e2eb3e3f90b9363040a3d885ccc5c79fe20c5b8a3caa8fe3bf47ff653260/scipy-1.4.1.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: slidingwindow in /home/jetson/.local/lib/python3.6/site-packages (from -r requirements.txt (line 11)) (0.0.13)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/tqdm/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7faccc1860>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/tqdm/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7faccc19e8>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/tqdm/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7faccc16a0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/tqdm/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7faccc1710>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/tqdm/
ERROR: Could not find a version that satisfies the requirement tqdm (from -r requirements.txt (line 12)) (from versions: none)
ERROR: No matching distribution found for tqdm (from -r requirements.txt (line 12))

I have tried this solution but it doesn’t work for me.
https://devtalk.nvidia.com/default/topic/1050614/jetson-nano/cannot-import-scipy-on-jetson-nano/
https://devtalk.nvidia.com/default/topic/1049684/jetson-nano/errors-during-install-sklearn-/post/5327807/#5327807
https://devtalk.nvidia.com/default/topic/1054938/jetson-nano/install-scipy-on-jetson-nano/

Do you have any idea on this?

*Am not sure if I should create a new post to ask this issue if so let me know.

I installed some other packages and tried again, then this time installation seems stuck on at this part

Collecting git+https://github.com/tensorpack/tensorpack.git (from -r requirements.txt (line 13))
  Cloning https://github.com/tensorpack/tensorpack.git to /tmp/pip-req-build-jhpoi5lv
  Running command git clone -q https://github.com/tensorpack/tensorpack.git /tmp/pip-req-build-jhpoi5lv
Collecting argparse
  Using cached https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
Processing /home/jetson/.cache/pip/wheels/59/b1/91/f02e76c732915c4015ab4010f3015469866c1eb9b14058d8e7/dill-0.3.1.1-cp36-none-any.whl
Processing /home/jetson/.cache/pip/wheels/31/9c/c0/07b6dc7faf1844bb4688f46b569efe6cafaa2179c95db821da/fire-0.2.1-py2.py3-none-any.whl
Requirement already satisfied: matplotlib in /usr/lib/python3/dist-packages (from -r requirements.txt (line 4)) (2.1.1)
Processing /home/jetson/.cache/pip/wheels/4b/77/ec/aa5daafc3ac9edc798b93232cdfa86fb7161759d0d2f7f5677/numba-0.47.0-cp36-cp36m-linux_aarch64.whl
Requirement already satisfied: psutil in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 6)) (5.6.3)
Processing /home/jetson/.cache/pip/wheels/dc/e6/36/0e1ae88c868eb42d3f92181b1c9bbd0b217a7ec3da6bd62e55/pycocotools-2.0.0-cp36-cp36m-linux_aarch64.whl
Requirement already satisfied: requests in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 8)) (2.22.0)
Processing /home/jetson/.cache/pip/wheels/36/2c/bc/6286609d6617332325422868e5e4648dd5d5c80ebc22f8cf0d/scikit_image-0.16.2-cp36-cp36m-linux_aarch64.whl
Collecting scipy
  Using cached https://files.pythonhosted.org/packages/04/ab/e2eb3e3f90b9363040a3d885ccc5c79fe20c5b8a3caa8fe3bf47ff653260/scipy-1.4.1.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: slidingwindow in /home/jetson/.local/lib/python3.6/site-packages (from -r requirements.txt (line 11)) (0.0.13)
Collecting tqdm
  Using cached https://files.pythonhosted.org/packages/72/c9/7fc20feac72e79032a7c8138fd0d395dc6d8812b5b9edf53c3afd0b31017/tqdm-4.41.1-py2.py3-none-any.whl
Collecting msgpack-numpy>=0.4.4.2
  Using cached https://files.pythonhosted.org/packages/c8/ab/09904a909bccc471f219fb8f5d0838cbcb10cc26089a2b29e84c893e216e/msgpack_numpy-0.4.4.3-py2.py3-none-any.whl
Processing /home/jetson/.cache/pip/wheels/27/e6/c7/adc38b19993e22e1f7bea6ff388c7fcda941a2a17258d6e8f3/msgpack-0.6.2-cp36-cp36m-linux_aarch64.whl
Requirement already satisfied: numpy>=1.14 in /usr/local/lib/python3.6/dist-packages (from tensorpack==0.9.8->-r requirements.txt (line 13)) (1.16.4)
Requirement already satisfied: pyzmq>=16 in /usr/local/lib/python3.6/dist-packages (from tensorpack==0.9.8->-r requirements.txt (line 13)) (18.0.1)
Requirement already satisfied: six in /usr/local/lib/python3.6/dist-packages (from tensorpack==0.9.8->-r requirements.txt (line 13)) (1.12.0)
Processing /home/jetson/.cache/pip/wheels/9c/9b/f4/eb243fdb89676ec00588e8c54bb54360724c06e7fafe95278e/tabulate-0.8.6-cp36-none-any.whl
Requirement already satisfied: termcolor>=1.1 in /usr/local/lib/python3.6/dist-packages (from tensorpack==0.9.8->-r requirements.txt (line 13)) (1.1.0)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from numba->-r requirements.txt (line 5)) (39.0.1)
Collecting llvmlite>=0.31.0dev0
  Using cached https://files.pythonhosted.org/packages/17/fc/da81203725cb22d53e4f819374043bbfe3327831f3cb4388a3c020d7a497/llvmlite-0.31.0.tar.gz
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/lib/python3/dist-packages (from requests->-r requirements.txt (line 8)) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests->-r requirements.txt (line 8)) (2018.1.18)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python3/dist-packages (from requests->-r requirements.txt (line 8)) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/lib/python3/dist-packages (from requests->-r requirements.txt (line 8)) (2.6)
Collecting networkx>=2.0
  Using cached https://files.pythonhosted.org/packages/41/8f/dd6a8e85946def36e4f2c69c84219af0fa5e832b018c970[code]

e92f2ad337e45/networkx-2.4-py3-none-any.whl
Requirement already satisfied: pillow>=4.3.0 in /usr/lib/python3/dist-packages (from scikit-image->-r requirements.txt (line 9)) (5.1.0)
Collecting imageio>=2.3.0
Using cached https://files.pythonhosted.org/packages/1a/de/f7f985018f462ceeffada7f6e609919fbcc934acd9301929cba14bc2c24a/imageio-2.6.1-py3-none-any.whl
Processing /home/jetson/.cache/pip/wheels/ec/b6/42/e4d65ae180131c27b7b52ec8405b96fe6b6361db90ec444916/PyWavelets-1.1.1-cp36-cp36m-linux_aarch64.whl
Requirement already satisfied: decorator>=4.3.0 in /usr/local/lib/python3.6/dist-packages (from networkx>=2.0->scikit-image->-r requirements.txt (line 9)) (4.4.0)
Building wheels for collected packages: scipy
Building wheel for scipy (PEP 517) … [/code]

and then I got another error message…

(error message is too long so pasted the last part of message)

----------------------------------------
  ERROR: Failed building wheel for scipy
  Running setup.py clean for scipy
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-asip_lxi/scipy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-asip_lxi/scipy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
       cwd: /tmp/pip-install-asip_lxi/scipy
  Complete output (9 lines):

  `setup.py clean` is not supported, use one of the following instead:

    - `git clean -xdf` (cleans all files)
    - `git clean -Xdf` (cleans all versioned files, doesn't touch
                        files that aren't checked into the git repo)

  Add `--force` to your command to use it anyway if you must (unsupported).

  ----------------------------------------
  ERROR: Failed cleaning build dir for scipy
Failed to build scipy
Building wheels for collected packages: tensorpack, llvmlite
  Building wheel for tensorpack (setup.py) ... done
  Created wheel for tensorpack: filename=tensorpack-0.9.8-py2.py3-none-any.whl size=290069 sha256=2c9ae779fe8925dd707d87dc4f318da1111bf2282b3399c6906ecb829b877f51
  Stored in directory: /tmp/pip-ephem-wheel-cache-nq70aax5/wheels/d1/88/84/9f91acd55f34d585f7d6742cb13925a6051f82f6075aa6a0a9
  Building wheel for llvmlite (setup.py) ... done
  Created wheel for llvmlite: filename=llvmlite-0.31.0-cp36-cp36m-linux_aarch64.whl size=244628 sha256=d3f9f69101dec5b8ebd96a9e3e5928a47cdd4d03a77df303715b7b06d4b2bba5
  Stored in directory: /home/jetson/.cache/pip/wheels/27/ab/14/5ceb31cd12160eb087dfe376235d6f19e67be637d46e9a0708
Successfully built tensorpack llvmlite
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly