Fail to install facemorpher on Ubuntu 18.04 - python

I have a Ubuntu 18.04 and executed the packages from requirements.txt in the following Github repository https://github.com/alyssaq/face_morpher.
While installing facemorpher using the following command pip3 install facemorpher getting the errors given below. I don't find opencv2 folder
Error Logs:
In file included from src/py_wrapper.cpp:13:0:
src/stasm.h:33:10: fatal error: opencv2/opencv.hpp: No such file or directory
#include "opencv2/opencv.hpp"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-g5nna6ak/stasm/setup.py';f In file included from src/py_wrapper.cpp:13:0:
src/stasm.h:33:10: fatal error: opencv2/opencv.hpp: No such file or directory
#inc ----------------------------------------
lude "opencv2/opencv.hpp"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-g5nna6ak/stasm/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-7nioxx18-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-g5nna6ak/stasm/
=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-7nioxx18-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-g5nna6ak/stasm/`

Related

installing velocyto (clang: error: unsupported option '-fopenmp' error: command 'gcc' failed with exit status 1)

I tried to install a python package called 'velocyto', however, I get the error:
clang: error: unsupported option '-fopenmp'
error: command 'gcc' failed with exit status 1
I tried different ways ppl suggested such as,
cmake -DCMAKE_C_COMPILER="/usr/local/opt/llvm/bin/clang" -DCMAKE_CXX_COMPILER="/usr/local/opt/llvm/bin/clang++" ..
brew install cmake gcc
cmake -DCMAKE_CXX_COMPILER=g++-6 CMakeLists.txt
make
Which didn't help for the installation of velocyto.
Here's the entire error:
clang: error: unsupported option '-fopenmp'
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1:
/Users/Yi/opt/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/var/folders/4f/nng016r569gdc7bc0tbt4_900000gn/T/pip-install-xo7ufdqy/velocyto/setup.py'"'"';
__file__='"'"'/private/var/folders/4f/nng016r569gdc7bc0tbt4_900000gn/T/pip-install-xo7ufdqy/velocyto/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record
/private/var/folders/4f/nng016r569gdc7bc0tbt4_900000gn/T/pip-record-oyv7kr4s/install-record.txt --single-version-externally-managed --compile --install-headers /Users/Yi/opt/anaconda3/include/python3.8/velocyto Check the logs for full command output.
Thanks a lot for your help! I really want to install this package and keep analyzing the data.
Best,
Yi

Compiler problem installing cx_Oracle using pip on Solaris

I'm new to this stuff and any help would be awesome. I'm installing this through putty on an onprem server.
Collecting cx_Oracle==7.3
Downloading https://files.pythonhosted.org/packages/5e/e3/cfd4f413f8d47dd2aee09273d9bb3ee6aa7384e0a04e191d703c2199eb93/cx_Oracle-7.3.0.tar.gz (307kB)
100% |################################| 317kB 7.6MB/s
Installing collected packages: cx-Oracle
Running setup.py install for cx-Oracle ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-YAwTvN/cx-Oracle/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-nqdlEI/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_ext
building 'cx_Oracle' extension
creating build
creating build/temp.solaris-2.11-sun4v.32bit-2.7
creating build/temp.solaris-2.11-sun4v.32bit-2.7/src
creating build/temp.solaris-2.11-sun4v.32bit-2.7/odpi
creating build/temp.solaris-2.11-sun4v.32bit-2.7/odpi/src
cc -DNDEBUG -KPIC -DPIC -DCXO_BUILD_VERSION=7.3.0 -Iodpi/include -Iodpi/src -I/usr/include/python2.7 -c src/cxoBuffer.c -o build/temp.solaris-2.11-sun4v.32bit-2.7/src/cxoBuffer.o
unable to execute 'cc': No such file or directory
error: command 'cc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-YAwTvN/cx-Oracle/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-nqdlEI/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-YAwTvN/cx-Oracle/
Previously I was able to install awscli without any issues.
I'm not sure why is this happening.

how to install pyaudio

Hello I am on a Mac and I already installed port audio with
brew install portaudio
and now when I do pip install pyaudio it gives me the following error:
1 error generated.
error: command 'x86_64-apple-darwin13.4.0-clang' failed with exit status 1
Command
"/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c
"import setuptools,
tokenize;__file__='/private/var/folders/_w/18g6xm5533l7csc0fzph3p6m0000gn/T/pip-install-vg_fqgq_/pyaudio/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install
--record /private/var/folders/_w/18g6xm5533l7csc0fzph3p6m0000gn/T/pip-record-3w17es1l/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/private/var/folders/_w/18g6xm5533l7csc0fzph3p6m0000gn/T/pip-install-vg_fqgq_/pyaudio/

Failed to pip install regex in Ubuntu

pip install regex is failing on Ubuntu 18.04 server with this error:
I already installed packages mentioned in the supposed to be duplicate question. So this is not a duplicate.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
'Failed building wheel for regex'
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
----------------------------------------
Command "/home/rc/Env/rcasipe/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ti8hji_4/regex/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-i25nnqtk/install-record.txt --single-version-externally-managed --compile --install-headers /home/rc/Env/rcasipe/include/site/python3.6/regex" failed with error code 1 in /tmp/pip-install-ti8hji_4/regex/
How do you fix this? Thanks.
Try: pip3 install regex --user

Python pip cannot install zbarlight: error: command 'gcc' failed with exit status 1

First of all I installed Python 3.5.1:
yum -y install zbar gcc gcc-c++ kernel-devel
./configure --enable-shared --prefix=/usr/local LDFLAGS="-Wl,--rpath=/usr/local/lib"
make && make install
Tried to install zbarlight pypi package but failed:
src/zbarlight/_zbarlight.c:137: error: ‘ZBAR_QRCODE’ undeclared (first use in this function)
src/zbarlight/_zbarlight.c:138: error: ‘ZBAR_CODE128’ undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/local/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ur77y560/zbarlight/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-hoalto9f-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ur77y560/zbarlight/
How do I fix that? I tried pip3.5 -v but doesn't show any more meaningful error.
Had to install
yum install zbar-devel

Categories