-
Notifications
You must be signed in to change notification settings - Fork 11
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
pip install failed #1
Comments
Thanks for reporting this!
however I can't reproduce this on Ubuntu 18.04. I believe it is either caused by a different version of GCC or a different version of some library. Could you share the following information?
I'm convinced it's a pretty easy fix, but I need to be able to reproduce it somehow. |
|
Hi I am also facing the same issue in windoiws. |
@mekacharan @GeorgeKaspar I've added an explicit cast to |
Hi Thanks for the prompt support. When I tried installing i am getting this error |
Same here :/ |
Same issue on windows 10 Running setup.py install for cv-algorithms ... error |
@vtatntpt |
@Others |
@mekacharan @vendilhao Could you check on your platform? |
Unfortunately, the error message is still the same: |
@CrazyCrud Thanks for checking.This seems to be a different error message. Now it's complaining about I have just commited a possible fix, could you try again? |
@ulikoehler No problem. |
This one seems related with #4 |
I've just released a fix for the Windows installation problem, could you please check if the issue persists? |
pip install git+https://github.com/ulikoehler/cv_algorithms.git
(py36) george@george-OMEN-by-HP-Laptop ~/KasparNet $ pip install git+https://github.com/ulikoehler/cv_algorithms.git
Collecting git+https://github.com/ulikoehler/cv_algorithms.git
Cloning https://github.com/ulikoehler/cv_algorithms.git to /tmp/pip-req-build-n4uiz7sw
Requirement already satisfied: cffi>=0.7 in /home/george/anaconda3/envs/py36/lib/python3.6/site-packages (from cv-algorithms==1.0.0) (1.11.4)
Requirement already satisfied: pycparser in /home/george/anaconda3/envs/py36/lib/python3.6/site-packages (from cffi>=0.7->cv-algorithms==1.0.0) (2.18)
Building wheels for collected packages: cv-algorithms
Running setup.py bdist_wheel for cv-algorithms ... error
Complete output from command /home/george/anaconda3/envs/py36/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-req-build-n4uiz7sw/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-ekl475_a --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/test
copying test/init.py -> build/lib.linux-x86_64-3.6/test
copying test/TestContours.py -> build/lib.linux-x86_64-3.6/test
copying test/TestUtils.py -> build/lib.linux-x86_64-3.6/test
copying test/TestThinning.py -> build/lib.linux-x86_64-3.6/test
copying test/TestNeighbours.py -> build/lib.linux-x86_64-3.6/test
copying test/TestDistance.py -> build/lib.linux-x86_64-3.6/test
copying test/TestColorspace.py -> build/lib.linux-x86_64-3.6/test
copying test/TestGrassfire.py -> build/lib.linux-x86_64-3.6/test
copying test/TestPopcount.py -> build/lib.linux-x86_64-3.6/test
creating build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/init.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/grassfire.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/text.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/_ffi.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/contours.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/popcount.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/colorspace.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/distance.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/morphology.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/classification.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/thinning.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/_checks.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/neighbours.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/utils.py -> build/lib.linux-x86_64-3.6/cv_algorithms
running build_ext
building 'cv_algorithms._cv_algorithms' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
gcc -pthread -B /home/george/anaconda3/envs/py36/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/george/anaconda3/envs/py36/include/python3.6m -c src/thinning.cpp -o build/temp.linux-x86_64-3.6/src/thinning.o -g -O2 -march=native
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/george/anaconda3/envs/py36/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/george/anaconda3/envs/py36/include/python3.6m -c src/distance.cpp -o build/temp.linux-x86_64-3.6/src/distance.o -g -O2 -march=native
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
src/distance.cpp: In function ‘int pairwise_diff(const double*, const double*, double*, size_t, size_t)’:
src/distance.cpp:18:46: error: call of overloaded ‘abs(double)’ is ambiguous
result[ax*awidth + bx] = abs(a[ax] - b[bx]);
^
In file included from /usr/include/c++/6/cstdlib:75:0,
from /usr/include/c++/6/stdlib.h:36,
from src/distance.cpp:1:
/usr/include/stdlib.h:774:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW attribute ((const)) __wur;
^~~
In file included from /usr/include/c++/6/stdlib.h:36:0,
from src/distance.cpp:1:
/usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/usr/include/c++/6/cstdlib:180:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
error: command 'gcc' failed with exit status 1
Failed building wheel for cv-algorithms
Running setup.py clean for cv-algorithms
Failed to build cv-algorithms
Installing collected packages: cv-algorithms
Running setup.py install for cv-algorithms ... error
Complete output from command /home/george/anaconda3/envs/py36/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-req-build-n4uiz7sw/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-i4nvkxyk/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/test
copying test/init.py -> build/lib.linux-x86_64-3.6/test
copying test/TestContours.py -> build/lib.linux-x86_64-3.6/test
copying test/TestUtils.py -> build/lib.linux-x86_64-3.6/test
copying test/TestThinning.py -> build/lib.linux-x86_64-3.6/test
copying test/TestNeighbours.py -> build/lib.linux-x86_64-3.6/test
copying test/TestDistance.py -> build/lib.linux-x86_64-3.6/test
copying test/TestColorspace.py -> build/lib.linux-x86_64-3.6/test
copying test/TestGrassfire.py -> build/lib.linux-x86_64-3.6/test
copying test/TestPopcount.py -> build/lib.linux-x86_64-3.6/test
creating build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/init.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/grassfire.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/text.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/_ffi.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/contours.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/popcount.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/colorspace.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/distance.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/morphology.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/classification.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/thinning.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/_checks.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/neighbours.py -> build/lib.linux-x86_64-3.6/cv_algorithms
copying cv_algorithms/utils.py -> build/lib.linux-x86_64-3.6/cv_algorithms
running build_ext
building 'cv_algorithms._cv_algorithms' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
gcc -pthread -B /home/george/anaconda3/envs/py36/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/george/anaconda3/envs/py36/include/python3.6m -c src/thinning.cpp -o build/temp.linux-x86_64-3.6/src/thinning.o -g -O2 -march=native
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/george/anaconda3/envs/py36/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/george/anaconda3/envs/py36/include/python3.6m -c src/distance.cpp -o build/temp.linux-x86_64-3.6/src/distance.o -g -O2 -march=native
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
src/distance.cpp: In function ‘int pairwise_diff(const double*, const double*, double*, size_t, size_t)’:
src/distance.cpp:18:46: error: call of overloaded ‘abs(double)’ is ambiguous
result[ax*awidth + bx] = abs(a[ax] - b[bx]);
^
In file included from /usr/include/c++/6/cstdlib:75:0,
from /usr/include/c++/6/stdlib.h:36,
from src/distance.cpp:1:
/usr/include/stdlib.h:774:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW attribute ((const)) __wur;
^~~
In file included from /usr/include/c++/6/stdlib.h:36:0,
from src/distance.cpp:1:
/usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/usr/include/c++/6/cstdlib:180:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
error: command 'gcc' failed with exit status 1
Command "/home/george/anaconda3/envs/py36/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-req-build-n4uiz7sw/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-i4nvkxyk/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-req-build-n4uiz7sw/
(py36) george@george-OMEN-by-HP-Laptop ~/KasparNet $
The text was updated successfully, but these errors were encountered: