Skip to content
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

Error install sentinelhub #118

Closed
skemaikin opened this issue Mar 16, 2020 · 6 comments
Closed

Error install sentinelhub #118

skemaikin opened this issue Mar 16, 2020 · 6 comments

Comments

@skemaikin
Copy link

Hello!
Docker + Ubuntu 18.04 + Python 3.7:

FROM ubuntu:18.04
RUN apt-get update && apt-get install -y software-properties-common python3.7 python3-pip
RUN pip3 install sentinelhub --upgrade

produces error:
imagecodecs/_aec.c:602:10: fatal error: libaec.h: No such file or directory #include "libaec.h"
compilation terminated.

Will be grateful for the help.
Sergey

@AleksMat
Copy link
Contributor

Hi Sergey,

I think this happens during the installation imagecodecs package which is a dependency of tifffile package which is a dependency of sentinelhub-py.

My suggestion is that you first make sure that you have gcc (i.e. C++ compiler) installed in your docker. If this doesn't solve the problem, please check here for more info.

@skemaikin
Copy link
Author

Hi Alex,

neither gcc no imagecodecs not improved the situation. I think this problem caused by the compatibility of new sentilelhub-py and numpy. Part of the log:

/usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^~~~~~~
imagecodecs/_aec.c:602:10: fatal error: libaec.h: No such file or directory
#include "libaec.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Unfortunately, earlier version of sentinel-py does not solve the problem (((.

@batic
Copy link
Contributor

batic commented Mar 16, 2020

apt-get install libaec-dev ?

@skemaikin
Copy link
Author

Alex, libaec-dev solves this problem, but new problem occurred - with the blosc.h.
I solved blosc.h-problem with the help of the libblosc-dev, but a new one occurred - brotli\types.h. Anyway, each such solution causes a lot of warnings. I don't like it (

@skemaikin
Copy link
Author

SOLVED

The problem caused by the imagecodecs. Latest version requires newest ubuntu (19.10 +). Latest imagecodecs refuses to be installed on 18.10. At least, I can't install it on earlier ubuntu.

@skemaikin
Copy link
Author

skemaikin commented Mar 19, 2020

UPDATE

Having tested various options, I came to the conclusion that it was only my mistake. It is necessary to make sure that the pip version is the latest.
pip install --upgrade pip solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants