No Matching Distribution for OpenCV

I’m trying to install Olympe onto a Linux 18.04 LTS distribution, and during the olympe-dependencies installation, I run into the error “Could not find a version that satisfies the requirement opencv-python” “No matching distribution found for opencv-python”. After manually installing opencv-python, the error does not seem to be resolved.

Hello,

In the Olympe python environment, what is the output of the pip freeze command ?

$ source shell
(olympe-python3) $ pip freeze

Could you please share the complete log of execution of the postinst script. Thanks

aware@aware-jetson:~/code/parrot-groundsdk$ source ./products/olympe/linux/env/shell (olympe-python3) aware@aware-jetson:~/code/parrot-groundsdk$ pip freeze

I get no output for `pip freeze’ in the Olympe Python environment.

Log of execution of postinst script:

This script might prompt you for your sudo password.
[sudo] password for aware: 
Get:1 file:/var/cuda-repo-10-0-local-10.0.326  InRelease
Ign:1 file:/var/cuda-repo-10-0-local-10.0.326  InRelease
Get:2 file:/var/visionworks-repo  InRelease
Ign:2 file:/var/visionworks-repo  InRelease
Get:3 file:/var/visionworks-sfm-repo  InRelease
Ign:3 file:/var/visionworks-sfm-repo  InRelease
Get:4 file:/var/visionworks-tracking-repo  InRelease
Ign:4 file:/var/visionworks-tracking-repo  InRelease
Get:5 file:/var/cuda-repo-10-0-local-10.0.326  Release [574 B]
Get:5 file:/var/cuda-repo-10-0-local-10.0.326  Release [574 B]
Get:6 file:/var/visionworks-repo  Release [1,999 B]
Get:6 file:/var/visionworks-repo  Release [1,999 B]
Get:7 file:/var/visionworks-sfm-repo  Release [2,003 B]
Get:7 file:/var/visionworks-sfm-repo  Release [2,003 B]
Get:8 file:/var/visionworks-tracking-repo  Release [2,008 B]
Get:8 file:/var/visionworks-tracking-repo  Release [2,008 B]
Hit:10 http://ports.ubuntu.com/ubuntu-ports bionic InRelease                   
Get:12 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB] 
Hit:15 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
Get:16 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB]
Get:17 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 Packages [576 kB]
Get:18 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 Packages [910 kB]
Get:19 http://ports.ubuntu.com/ubuntu-ports bionic-security/main arm64 Packages [369 kB]
Get:20 http://ports.ubuntu.com/ubuntu-ports bionic-security/main arm64 DEP-11 Metadata [32.6 kB]
Get:21 http://ports.ubuntu.com/ubuntu-ports bionic-security/main DEP-11 64x64 Icons [41.5 kB]
Get:22 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe arm64 DEP-11 Metadata [37.0 kB]
Get:23 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe DEP-11 48x48 Icons [16.4 kB]
Get:24 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe DEP-11 64x64 Icons [116 kB]
Fetched 2,276 kB in 3s (682 kB/s)                                      
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3 is already the newest version (3.6.7-1~18.04).
python3-dev is already the newest version (3.6.7-1~18.04).
wget is already the newest version (1.19.4-1ubuntu2.2).
python3-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Requirement already satisfied: clang in /usr/local/lib/python3.6/dist-packages (6.0.0.2)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libclang-6.0-dev is already the newest version (1:6.0-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
libc6 is already the newest version (2.27-3ubuntu1).
libc6-dev is already the newest version (2.27-3ubuntu1).
libjson-c-dev is already the newest version (0.12.1-1.3).
libtool is already the newest version (2.4.6-2).
unzip is already the newest version (6.0-21ubuntu1).
freeglut3-dev is already the newest version (2.8.1-3).
libglfw3 is already the newest version (3.2.1-1).
libglfw3-dev is already the newest version (3.2.1-1).
yasm is already the newest version (1.3.0-2build1).
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
libavahi-client-dev is already the newest version (0.7-3.1ubuntu1.2).
libcurl4-gnutls-dev is already the newest version (7.58.0-2ubuntu3.8).
libgles2-mesa-dev is already the newest version (19.0.8-0ubuntu0~18.04.3).
libsdl2-dev is already the newest version (2.0.8+dfsg1-1ubuntu1.18.04.4).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
rsync is already the newest version (3.1.2-2.1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-dev is already the newest version (2.7.15~rc1-1).
cython is already the newest version (0.26.1-0.4).
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
libavahi-client-dev is already the newest version (0.7-3.1ubuntu1.2).
libbluetooth-dev is already the newest version (5.48-0ubuntu3.2).
libavcodec-dev is already the newest version (7:3.4.6-0ubuntu0.18.04.1).
libavformat-dev is already the newest version (7:3.4.6-0ubuntu0.18.04.1).
libavutil-dev is already the newest version (7:3.4.6-0ubuntu0.18.04.1).
libswscale-dev is already the newest version (7:3.4.6-0ubuntu0.18.04.1).
libopencv-dev is already the newest version (3.3.1-2-g31ccdfe11).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
--2019-10-22 15:27:55--  https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 2a04:4e42:c::175, 151.101.48.175
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|2a04:4e42:c::175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1775835 (1.7M) [text/x-python]
Saving to: ‘/tmp/olympe/bootstrap/get-pip.py’

/tmp/olympe/bootstr 100%[===================>]   1.69M  9.31MB/s    in 0.2s    

2019-10-22 15:27:56 (9.31 MB/s) - ‘/tmp/olympe/bootstrap/get-pip.py’ saved [1775835/1775835]

WARNING: The directory '/home/aware/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/aware/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting virtualenv
  Downloading https://files.pythonhosted.org/packages/c5/97/00dd42a0fc41e9016b23f07ec7f657f636cb672fad9cf72b80f8f65c6a46/virtualenv-16.7.7-py2.py3-none-any.whl (3.4MB)
     |################################| 3.4MB 3.3MB/s 
Collecting pip
  Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
     |################################| 1.4MB 5.1MB/s 
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/6a/9a/50fadfd53ec909e4399b67c74cc7f4e883488035cfcdb90b685758fa8b34/setuptools-41.4.0-py2.py3-none-any.whl (580kB)
     |################################| 583kB 6.6MB/s 
Collecting wheel
  Downloading https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl
Installing collected packages: virtualenv, pip, setuptools, wheel
Successfully installed pip-19.3.1 setuptools-41.4.0 virtualenv-16.7.7 wheel-0.33.6
WARNING: The directory '/home/aware/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: Skipping clang as it is not installed.
WARNING: Skipping six as it is not installed.
WARNING: Skipping aenum as it is not installed.
WARNING: Skipping boltons as it is not installed.
WARNING: Skipping colorama as it is not installed.
WARNING: Skipping faulthandler as it is not installed.
WARNING: Skipping future as it is not installed.
WARNING: Skipping futures as it is not installed.
WARNING: Skipping geopy as it is not installed.
WARNING: Skipping ipython as it is not installed.
WARNING: Skipping numpy as it is not installed.
WARNING: Skipping python-opencv as it is not installed.
WARNING: Skipping PyYAML as it is not installed.
WARNING: Skipping Sphinx as it is not installed.
WARNING: Skipping sphinx-rtd-theme as it is not installed.
WARNING: Skipping sphinxcontrib-seqdiag as it is not installed.
WARNING: Skipping textwrap3 as it is not installed.
WARNING: Skipping yapf as it is not installed.
WARNING: The directory '/home/aware/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/aware/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Ignoring faulthandler: markers 'python_version <= "2.7"' don't match your environment
Ignoring futures: markers 'python_version <= "2.7"' don't match your environment
Ignoring textwrap3: markers 'python_version <= "2.7"' don't match your environment
Collecting clang>=4.0
  Downloading https://files.pythonhosted.org/packages/6d/d7/40cdcb82d072cd1c5e3f7ce249a9dfbd8d7d2194d3f0885b5eaa8f310f2b/clang-6.0.0.2-py2.py3-none-any.whl
Collecting six
  Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting aenum
  Downloading https://files.pythonhosted.org/packages/50/01/cd83899880e45a5993d5634a1a1e9dabbcc5dcb6808a4d95a8fecafcebd2/aenum-2.2.1-py3-none-any.whl (40kB)
     |████████████████████████████████| 40kB 17.4MB/s 
Collecting boltons
  Downloading https://files.pythonhosted.org/packages/07/64/fa80c1a6a1c80546a8e522135130d239431e55c77cc76c9c3d37eeb4bced/boltons-19.2.0-py2.py3-none-any.whl (165kB)
     |████████████████████████████████| 174kB 7.7MB/s 
Collecting colorama
  Downloading https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl
Collecting future
  Downloading https://files.pythonhosted.org/packages/3f/bf/57733d44afd0cf67580658507bd11d3ec629612d5e0e432beb4b8f6fbb04/future-0.18.1.tar.gz (828kB)
     |████████████████████████████████| 829kB 16.5MB/s 
Collecting geopy
  Downloading https://files.pythonhosted.org/packages/80/93/d384479da0ead712bdaf697a8399c13a9a89bd856ada5a27d462fb45e47b/geopy-1.20.0-py2.py3-none-any.whl (100kB)
     |████████████████████████████████| 102kB 16.0MB/s 
Collecting ipython
  Downloading https://files.pythonhosted.org/packages/fb/44/f28a13852e562af719f9de1761680a84a93e8b4c50e22d00d68f60ee2e8b/ipython-7.8.0-py3-none-any.whl (775kB)
     |████████████████████████████████| 778kB 10.2MB/s 
Processing /home/aware/.cache/pip/wheels/5e/e9/4b/dd5a8eb53e97dfcc1314eca9c6769edd3cad379d6644c1ad94/numpy-1.17.3-cp36-cp36m-linux_aarch64.whl
ERROR: Could not find a version that satisfies the requirement python-opencv (from -r /home/aware/code/parrot-groundsdk/packages/olympe/requirements.txt (line 10)) (from versions: none)
ERROR: No matching distribution found for python-opencv (from -r /home/aware/code/parrot-groundsdk/packages/olympe/requirements.txt (line 10))

(Target hardware is an Nvidia Jetson TX2 running Ubuntu 18.04.)

(olympe-python3) aware@aware-jetson:~/code/parrot-groundsdk$ pip --version
pip 19.3.1 from /home/aware/code/parrot-groundsdk/.python/py3/lib/python3.6/site-packages/pip (python 3.6)
(olympe-python3) aware@aware-jetson:~/code/parrot-groundsdk$ python -c 'import olympe; print("Installation OK")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/aware/code/parrot-groundsdk/packages/olympe/src/olympe/__init__.py", line 6, in <module>
    import olympe.arsdkng.module_loader
  File "/home/aware/code/parrot-groundsdk/packages/olympe/src/olympe/arsdkng/module_loader.py", line 59, in <module>
    from olympe.arsdkng.enums import ArsdkEnums, ArsdkEnum, ArsdkBitfield
  File "/home/aware/code/parrot-groundsdk/packages/olympe/src/olympe/arsdkng/enums.py", line 35, in <module>
    from future.builtins import str, bytes
ModuleNotFoundError: No module named 'future'

When trying to verify the installation overall, this is the output.

Hi,

The Nvidia Jetson TX2 has an ARM CPU (aarch64) and it seems that the opencv-python package is not compatible with the aarch64 architecture.

Could you try replacing opencv-python by opencv-python-aarch64 in ./package/olympe/requirements.txt (opencv-python-aarch64 seems to be provided by the same maintainer) and then retry the postinst script. Thanks