I'm trying to install pyheif to use heic files on Linux server.
pyheif: https://pypi.org/project/pyheif/
Linux library command:
sudo apt-get install python3 python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev python3-pip
sudo apt-get install libpcap-dev libpq-dev
apt install libffi6 libheif-dev libde265-dev <-- I cannot find libffi. only libffi6 is available.
Now then I try to install pyheif
pip3 install pyheif
TRACEBACK:
...long lines ...
build/temp.linux-x86_64-3.6/_libheif_cffi.c: In function ‘_cffi_d_heif_context_read_from_memory_without_copy’:
build/temp.linux-x86_64-3.6/_libheif_cffi.c:2375:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
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-pfesa6xd/pyheif/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-me_rlsh8-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-pfesa6xd/pyheif/
How can I install pyheif?
How can I solve that tracebacks.
https://github.com/carsales/pyheif/issues/44
We can install from wheel anyway. The problem why wheel was not used was matching the tags (manylinux), in particular pip was missing the cp36-cp36m-manylinux2014_x86_64 (had only cp36-cp36m-manylinux2010_x86_64). This was due to an older version of pip (19.2), rather than 19.3.
pip install -U pip
pip install pyheif
Related
I have followed the instructions on the textract website, but I am getting an error because of pocketsphinx
I have tried installing pocketsphinx separtely using pip but the same error occurs:
Command "/usr/bin/python -u -c "import setuptools,
tokenize;file='/tmp/pip-build-drE9wI/pocketsphinx/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-nfLJNp-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-drE9wI/pocketsphinx/
I am trying to install it on Ubuntu 16.04. If it matters, I am running it on a virtual machine.
There is a missing dependency for libpulse-dev without which the pocketsphinx compilation fails.
Install it as
sudo apt-get install libpulse-dev
In addition, on my Ubuntu, i had to install several other dependencies to get textract working.
sudo apt-get install swig
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev libssl-de
sudo easy_install greenlet
sudo easy_install gevent
My compilation terminated 2 times when installing pyethapp on Ubuntu.
Firstly, I installed packages:
apt-get install build-essential automake pkg-config libtool libffi-dev libgmp-dev
I made virtualenv and tried to install pyethapp inside venv with pip:
pip install mytheapp
but it crashed with 2 following errors:
1.)
#include <openssl/aes.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for scrypt
2.)
scrypt-1.2.0/libcperciva/crypto/crypto_aes.c:6:25: fatal error: openssl/aes.h: No such file or directory
#include <openssl/aes.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/iceing/.virtualenvs/pyethapp/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3PNrgn/scrypt/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-SSJvgT-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/iceing/.virtualenvs/pyethapp/include/site/python2.7/scrypt" failed with error code 1 in /tmp/pip-build-3PNrgn/scrypt/
This one worked for me:
sudo apt-get install libssl-dev
It seems you need OpenSSL:
apt-get install openssl
First try installing
sudo apt-get install openssl
However, If it still dont work then try installing
sudo apt-get install libssl-dev
By now it should work fine.
I have been trying to install the Python bindings of jq on ubuntu using pip.
However, when I run the following command, it fails.
sudo pip install jq
This is the error message it get.
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-EmO25q/jq/setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-RBT2h7-record/install-record.txt --single-version-externally-m
anaged --compile" failed with error code 1 in /tmp/pip-build-EmO25q/jq/
This gets compiled, you need to install the build dependencies.
apt-get install autoconf automake build-essential libtool python-dev
See the Pypi page for more info ... https://pypi.python.org/pypi/jq/0.1.6
I'm working with a django project and now I want to add an image field, django asked me to install Pillow with the command "pip install Pillow",
thie problem is when I run this command, and this one also "sudo install Pillow" I get the message:
gcc: error: build/temp.linux-x86_64-3.2/libImaging/BoxBlur.o: No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3.2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-otvko5/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5430vf-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-otvko5/Pillow
I have tried all the ways that I found on the internet as well as the other ways to install Pillow such as easy_install, but each time I get a new problem.
Try to run the below commands in your linux
sudo apt-get update
sudo apt-get install python-dev
sudo apt-get install libevent-dev
Try this:
sudo apt-get install python-pil
I'm trying to create a dockerfile that uses Python 3.
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get install -y python3 python3-dev python-pip
RUN apt-get install -y libxml2-dev libxslt1-dev libpq-dev libjpeg-dev libfreetype6-dev zlib1g-dev
RUN cd /var/projects/apps && pip install -r requirements.txt
I get the error fatal error: Python.h: No such file or directory when trying to install pillow in my requirements, why and I'm I installing python 3 correctly?
error:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-C7CMih-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/pillow
Storing debug log for failure in /root/.pip/pip.log
INFO[0102] The command [/bin/sh -c cd /var/projects/app && pip install -r requirements.txt] returned a non-zero code: 1
You should install python3-pip in your Dockerfile and then run pip3 install -r requirements.txt