-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can not install the latest version (No ARM package for OpenCV in PyPI) #1063
Comments
What CPU architecture is it? |
Orange Pi PC arm x32 uname -a
Linux OrangePI 3.4.39-01-lobo #1 SMP PREEMPT Sun Oct 25 14:46:41 CET 2015 armv7l armv7l armv7l GNU/Linux` |
sudo apt-get install python-opencv
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-opencv is already the newest version (2.4.9.1+dfsg-1.5ubuntu1.1).
The following packages were automatically installed and are no longer required:
libllvm3.8 libmircommon5
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo pip2 install opencv-python
The directory '/home/orangepi/.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.
The directory '/home/orangepi/.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 opencv-python
Could not find a version that satisfies the requirement opencv-python (from versions: )
No matching distribution found for opencv-python
You are using pip version 8.1.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
orangepi@OrangePI:~/Downloads$ pip2 install opencv-python
Collecting opencv-python
Could not find a version that satisfies the requirement opencv-python (from versions: )
No matching distribution found for opencv-python
You are using pip version 8.1.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
|
From OpenCV project page: https://pypi.org/project/opencv-python/#description
|
I've uploaded new version bCNC==0.9.14.41 to pypi, which should install with opencv version 2.4+ |
Otherwise you can install opencv manualy.
|
Please let me know how this turned out... Especialy what exactly solved the problem and if other packages installed well. I will add that to wiki. |
i delete cache and try also with error orangepi@OrangePI:~$ pip2 install --upgrade bCNC
Collecting bCNC
Downloading https://files.pythonhosted.org/packages/08/58/96d0d4781b863804a63cd1aca05a718c0245b15a8cf1e6a09d33b872c465/bCNC-0.9.14.41.tar.gz (1.1MB)
100% |████████████████████████████████| 1.1MB 147kB/s
Collecting pyserial<=3.0.1 (from bCNC)
Downloading https://files.pythonhosted.org/packages/42/68/41bab8a5e3e50705f25358f043181242fa197f313aa0476908d9852c8dc4/pyserial-3.0.1.tar.gz (134kB)
100% |████████████████████████████████| 143kB 513kB/s
Collecting numpy>=1.15.4 (from bCNC)
Downloading https://files.pythonhosted.org/packages/2d/80/1809de155bad674b494248bcfca0e49eb4c5d8bee58f26fe7a0dd45029e2/numpy-1.15.4.zip (4.5MB)
100% |████████████████████████████████| 4.5MB 51kB/s
Collecting opencv-python>=2.4 (from bCNC)
Could not find a version that satisfies the requirement opencv-python>=2.4 (from bCNC) (from versions: )
No matching distribution found for opencv-python>=2.4 (from bCNC)
You are using pip version 8.1.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command. second try orangepi@OrangePI:~$ pip2 install https://www.piwheels.org/simple/opencv-python/opencv_python-3.4.3.18-cp35-cp35m-linux_armv7l.whl#sha256=201422601fc99c89556c47538cb6f423f0cc1e974684701b9431bfa132fcac13
opencv_python-3.4.3.18-cp35-cp35m-linux_armv7l.whl is not a supported wheel on this platform.
You are using pip version 8.1.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command. platform is Ubuntu 16.04
Yes x32 In first post i wrote - both version work fine with git cloned repo. |
Sorry, i've just found piwheels currently only support python 3.4 and 3.5, so it will not work with bCNC
Yes, but that is because you have already installed some packages from previous installs of bCNC. I need this to work using pip install, otherwise there will be problem for new users who don't have these packages installed. |
Thank you @Harvie |
I'll leave this open before i figure this out. It will probably take some time... Guys working on this: |
So I am on a raspberry pi and I receive the same error, opencv-python>=2.4 |
I've referenced the pypa issues. This is not really problem of bCNC. It has to be solved in the pypi/pip. For your convenience i've removed opencv from requirements, so pip install will work until they fix this. |
Since this is blocked by upstream, but workaround was applied, i've removed this from 0.9.15 milestone. |
Hellp my pleas pip install upgrade |
@Mahmouderr404 please tell us more. What OS/distro? What python version?... please read wiki and README file. |
@1f7 @PannDemic Can you please check that everything works now on ARM? In #1180 i've added condition, which should prevent opencv from being required on ARM, but i don't have raspi, so can't really check that... |
Hello I install failed & get below massage
My installation flow is below
--version
|
@alien18331 setup.py defines following: which means opencv-python should not be installed on arm based systems at all, because it's not available at the moment. But your machine still tries to do so. Can you please somehow extract you can get it with following code: import platform
print(platform.machine()) |
Can you please try pip2 install again? @ptvoinfo added "aarch64" exception to setup.py. |
I'm having the same issue. Here's my platform: armv7l |
But setup.py currently contains conditional Otherwise there is some problem with setup.py and we need to figure it out... |
I don't know python or pip, but when I try to isolate that string from the setup script, it doesn't get evaluated as a conditional. I.e., the string ends up literally as 'opencv-python>=2.4 ; ("arm" not in platform_machine) and ("aarch64" not in platform_machine)' I tried this in a couple different contexts, and got the same literal (using python 2.7.13) |
Can you please try |
"Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages " (ran pip again just to be sure -- same error). Just out of curiosity, can you point me to the doc for that setup feature. I didn't see it when I looked for it. Version info: Edit: work-around was to download, modify setup.py, and install from local copy. |
I think this is OK. the string should be evaluated by pip, not by setup.py. |
I'll dig into it some more, but apparently the conditional dependency feature is a "minefield:" |
@wabmester Can you please discuss this with setuptools guys? https://github.com/pypa/setuptools/issues Please show them our setup.py https://github.com/vlachoudis/bCNC/blob/master/setup.py |
@wabmester did you create an Issue on the setuptools github? I have run into the same problem (opencv tries to install despite being in the exclusion list for "arm"):
I thought maybe it had to do with my setuptools version (was v32) but after upgrading, the installer still doesn't work. I have seen that Python 2.7 is now deprecated: https://www.python.org/doc/sunset-python-2/ |
In light of Py2 being deprecated, I decided to use py3
|
So, python-opencv is not an optional dependency, as stated in README? Tried to install and got
|
@Perlovka it seems that the issue is that python-opencv is specified as an optional dependency, but setuptools for python 2.7 doesn't properly parse the dependecy list. AFAIK your options are:
|
@quinkennedy, python 3 requires python-opencv as well, so removing python-opencv from setup.py is the only option. Even more - there is no python-opencv package in my system (gentoo just build opencv with python modules if you need them), so this will fail even if opencv is installed. |
I think this one can be closed as well |
I try install to Ubuntu 16.04 according to the last instruction with no luck
Previous versions were installed without problems.
opencv-python need compile by hand?
P.S.
git clone works fine, both @vlachoudis and @Harvie
The text was updated successfully, but these errors were encountered: