4

I've been developing a Python application locally, and now want to deploy it to Amazon Elastic Beanstalk, but I have hit the following error:

Downloading/unpacking opencv-python==2.4.8.1 (from -r
/opt/python/ondeck/app/requirements.txt (line 12))  
Could not find any downloads that satisfy the requirement opencv-python==2.4.8.1
(from -r /opt/python/ondeck/app/requirements.txt (line 12))

Some externally hosted files were ignored (use --allow-external opencv-python to allow). 
Cleaning up... No distributions at all found for opencv-python==2.4.8.1 
(from -r /opt/python/ondeck/app/requirements.txt (line 12))

If I connect with SSH and type sudo pip install opencv-python it says "Downloading/unpacking opencv-python" for a minute or so, then:

Could not find any downloads that satisfy the requirement opencv-python
Cleaning up...
No distributions at all found for opencv-python
Storing debug log for failure in /root/.pip/pip.log

I also tried adding "http://rpmfind.net/linux/fedora/linux/development/rawhide/x86_64/os/Packages/o/opencv-python-2.4.9-3.fc22.x86_64.rpm" to my requirements.txt but that failed as follows:

Downloading/unpacking http://rpmfind.net/linux/fedora/linux/development/rawhide/x86_64/os/Packages/o/opencv-python-2.4.9-3.fc22.x86_64.rpm (from -r /opt/python/ondeck/app/requirements.txt (line 14))
  Cannot unpack file /tmp/pip-ONBFer-unpack/opencv-python-2.4.9-3.fc22.x86_64.rpm (downloaded from /tmp/pip-SUUfnS-build, content-type: application/x-rpm); cannot detect archive format
Cleaning up...
Cannot determine archive format of /tmp/pip-SUUfnS-build
Storing debug log for failure in /root/.pip/pip.log

I also tried "sudo yum install opencv-python" but that failed as follows:

Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/2014.09                                        | 2.1 kB     00:00
amzn-updates/2014.09                                     | 2.3 kB     00:00
No package opencv-python available.
Error: Nothing to do

For my development system I got the installer from http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv. How can I get it installed on EB, please?

If there's no way to install this exact package, what is the best alternative, please?

7
  • I think there is no package opencv-python in Python package index. Commented Nov 11, 2014 at 12:01
  • Check this link : pypi.python.org/… Commented Nov 11, 2014 at 12:03
  • Is it not one of these? rpmfind.net/linux/rpm2html/search.php?query=opencv-python Commented Nov 11, 2014 at 13:31
  • that is same. But it is in fedora repository right? not the python package index. To install that, you should use yum install opencv-python on a fedora machine. Not pip install. Commented Nov 12, 2014 at 10:26
  • I've tried that, and have updated my question with the results. I guess it's not a Fedora machine. Commented Nov 12, 2014 at 10:48

3 Answers 3

1
+50

Here are some options if you are able to consider workarounds.

With AWS Elastic Beanstalk

Without AWS Elastic Beanstalk

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you. Windows is probably an option, but it is more expensive than Linux, so unless it's impossible or very difficult I'd prefer to stick with Linux. And although I'm not 100% committed to Elastic Beanstalk, its simplicity does appeal to me. Docker looks interesting, but won't install on my 32-bit Windows development computer... I think my next step is probably to try to find a replacement for opencv-python that will install on Amazon Linux. Other suggestions still welcome, though!
1

The easy workaround for now, is to install pip 1.2.1, which does not require SSL:

curl -O https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz
tar xvfz pip-1.2.1.tar.gz
cd pip-1.2.1
python setup.py install

Maybe that can help you

1 Comment

Thank you. I tried this but it still says "Downloading/unpacking opencv-python Could not find any downloads that satisfy the requirement opencv-python No distributions at all found for opencv-python"
0

I am running OpenCV with Python support on Amazon EC2 on dedicated instances of Ubuntu 14.04. I had to install and compile from source to get a reliable stack with python.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.