Closed stuart12 closed 7 years ago
this seems to fix the problem: sudo apt-get install libglib2.0-dev
Thanks for the report. Installing libglib2.0-dev will not have fixed the problem, it was likely something different. From the error messages you can see that it didn't find the lensfun installation, and somehow you fixed that. Can you remember that you did something else except installing libglib2.0-dev?
I doubled checked installing libglib2.0-dev or one of its dependencies (perhaps pkg-config) does appear to fix the install error.
$ rm -r ~/.cache/pip
$ pip install lensfunpy
Collecting lensfunpy
Downloading lensfunpy-1.4.0.tar.gz (102kB)
100% |ββββββββββββββββββββββββββββββββ| 112kB 2.9MB/s
Collecting enum34 (from lensfunpy)
Downloading enum34-1.1.6-py2-none-any.whl
Building wheels for collected packages: lensfunpy
Running setup.py bdist_wheel for lensfunpy ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7GWiz0/lensfunpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpCFxbWrpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/__init__.py -> build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/util.py -> build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/_version.py -> build/lib.linux-x86_64-2.7/lensfunpy
running build_ext
building 'lensfunpy._lensfun' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/lensfunpy
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-EkQe1J/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include -I/tmp/pip-build-7GWiz0/lensfunpy/lensfunpy -I/usr/include/python2.7 -c lensfunpy/_lensfun.c -o build/temp.linux-x86_64-2.7/lensfunpy/_lensfun.o
In file included from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from lensfunpy/_lensfun.c:274:
/home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^~~~~~~
In file included from lensfunpy/_lensfun.c:276:0:
lensfunpy/version_helper.h:1:21: fatal error: lensfun.h: No such file or directory
#include "lensfun.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for lensfunpy
Running setup.py clean for lensfunpy
Failed to build lensfunpy
Installing collected packages: enum34, lensfunpy
Running setup.py install for lensfunpy ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7GWiz0/lensfunpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-jvnG3v-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/__init__.py -> build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/util.py -> build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/_version.py -> build/lib.linux-x86_64-2.7/lensfunpy
running build_ext
building 'lensfunpy._lensfun' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/lensfunpy
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-EkQe1J/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include -I/tmp/pip-build-7GWiz0/lensfunpy/lensfunpy -I/usr/include/python2.7 -c lensfunpy/_lensfun.c -o build/temp.linux-x86_64-2.7/lensfunpy/_lensfun.o
In file included from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from lensfunpy/_lensfun.c:274:
/home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^~~~~~~
In file included from lensfunpy/_lensfun.c:276:0:
lensfunpy/version_helper.h:1:21: fatal error: lensfun.h: No such file or directory
#include "lensfun.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7GWiz0/lensfunpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-jvnG3v-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-7GWiz0/lensfunpy/
$ sudo apt-get install liblensfun0 liblensfun-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
liblensfun-dev liblensfun0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/84.0 kB of archives.
After this operation, 314 kB of additional disk space will be used.
Selecting previously unselected package liblensfun-dev.
(Reading database ... 226558 files and directories currently installed.)
Preparing to unpack .../0-liblensfun-dev_0.3.2-3_amd64.deb ...
Unpacking liblensfun-dev (0.3.2-3) ...
Selecting previously unselected package liblensfun0.
Preparing to unpack .../1-liblensfun0_0.2.8-2_amd64.deb ...
Unpacking liblensfun0 (0.2.8-2) ...
Setting up liblensfun0 (0.2.8-2) ...
Setting up liblensfun-dev (0.3.2-3) ...
$ pip install lensfunpy
Collecting lensfunpy
Using cached lensfunpy-1.4.0.tar.gz
Collecting enum34 (from lensfunpy)
Using cached enum34-1.1.6-py2-none-any.whl
Building wheels for collected packages: lensfunpy
Running setup.py bdist_wheel for lensfunpy ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0rJIJx/lensfunpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpb6q54Xpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/__init__.py -> build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/util.py -> build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/_version.py -> build/lib.linux-x86_64-2.7/lensfunpy
running build_ext
building 'lensfunpy._lensfun' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/lensfunpy
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-EkQe1J/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include -I/tmp/pip-build-0rJIJx/lensfunpy/lensfunpy -I/usr/include/python2.7 -c lensfunpy/_lensfun.c -o build/temp.linux-x86_64-2.7/lensfunpy/_lensfun.o
In file included from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from lensfunpy/_lensfun.c:274:
/home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^~~~~~~
In file included from lensfunpy/_lensfun.c:276:0:
lensfunpy/version_helper.h:1:21: fatal error: lensfun.h: No such file or directory
#include "lensfun.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for lensfunpy
Running setup.py clean for lensfunpy
Failed to build lensfunpy
Installing collected packages: enum34, lensfunpy
Running setup.py install for lensfunpy ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0rJIJx/lensfunpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-O2RjYm-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/__init__.py -> build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/util.py -> build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/_version.py -> build/lib.linux-x86_64-2.7/lensfunpy
running build_ext
building 'lensfunpy._lensfun' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/lensfunpy
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-EkQe1J/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include -I/tmp/pip-build-0rJIJx/lensfunpy/lensfunpy -I/usr/include/python2.7 -c lensfunpy/_lensfun.c -o build/temp.linux-x86_64-2.7/lensfunpy/_lensfun.o
In file included from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from lensfunpy/_lensfun.c:274:
/home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^~~~~~~
In file included from lensfunpy/_lensfun.c:276:0:
lensfunpy/version_helper.h:1:21: fatal error: lensfun.h: No such file or directory
#include "lensfun.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0rJIJx/lensfunpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-O2RjYm-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-0rJIJx/lensfunpy/
$ sudo apt-get install libglib2.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libpcre3-dev libpcre32-3 libpcrecpp0v5 pkg-config zlib1g-dev
Suggested packages:
libglib2.0-doc
The following NEW packages will be installed:
libglib2.0-dev libpcre3-dev libpcre32-3 libpcrecpp0v5 pkg-config zlib1g-dev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,261 kB of archives.
After this operation, 14.3 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package libpcrecpp0v5:amd64.
(Reading database ... 226574 files and directories currently installed.)
Preparing to unpack .../0-libpcrecpp0v5_2%3a8.39-2_amd64.deb ...
Unpacking libpcrecpp0v5:amd64 (2:8.39-2) ...
Selecting previously unselected package libpcre32-3:amd64.
Preparing to unpack .../1-libpcre32-3_2%3a8.39-2_amd64.deb ...
Unpacking libpcre32-3:amd64 (2:8.39-2) ...
Selecting previously unselected package libpcre3-dev:amd64.
Preparing to unpack .../2-libpcre3-dev_2%3a8.39-2_amd64.deb ...
Unpacking libpcre3-dev:amd64 (2:8.39-2) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../3-pkg-config_0.29-4_amd64.deb ...
Unpacking pkg-config (0.29-4) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../4-zlib1g-dev_1%3a1.2.8.dfsg-2+b1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-2+b1) ...
Selecting previously unselected package libglib2.0-dev.
Preparing to unpack .../5-libglib2.0-dev_2.50.1-1_amd64.deb ...
Unpacking libglib2.0-dev (2.50.1-1) ...
Processing triggers for libglib2.0-0:amd64 (2.50.1-1) ...
Setting up pkg-config (0.29-4) ...
Processing triggers for libc-bin (2.24-5) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libpcrecpp0v5:amd64 (2:8.39-2) ...
Setting up libpcre32-3:amd64 (2:8.39-2) ...
Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-2+b1) ...
Setting up libpcre3-dev:amd64 (2:8.39-2) ...
Setting up libglib2.0-dev (2.50.1-1) ...
Processing triggers for libc-bin (2.24-5) ...
$ pip install lensfunpy
Collecting lensfunpy
Using cached lensfunpy-1.4.0.tar.gz
Collecting enum34 (from lensfunpy)
Using cached enum34-1.1.6-py2-none-any.whl
Building wheels for collected packages: lensfunpy
Running setup.py bdist_wheel for lensfunpy ... done
Stored in directory: /home/s.pook/.cache/pip/wheels/d3/50/7d/bca802056c5061443599d2987a0480e209a0e789cb01d7bae7
Successfully built lensfunpy
Installing collected packages: enum34, lensfunpy
Successfully installed enum34-1.1.6 lensfunpy-1.4.0
It really does appears to be libglib2.0-dev that is required on Debian unstable to install lensfunpy-1.4.0:
$ sudo apt-get remove libglib2.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libpcre3-dev libpcre32-3 libpcrecpp0v5 pkg-config zlib1g-dev
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libglib2.0-dev
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 10.6 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 227087 files and directories currently installed.)
Removing libglib2.0-dev (2.50.1-1) ...
Processing triggers for libglib2.0-0:amd64 (2.50.1-1) ...
Processing triggers for man-db (2.7.5-1) ...
$ rm -r ~/.cache/pip
$ pip install lensfunpy
Collecting lensfunpy
Downloading lensfunpy-1.4.0.tar.gz (102kB)
100% |ββββββββββββββββββββββββββββββββ| 112kB 2.6MB/s
Collecting enum34 (from lensfunpy)
Downloading enum34-1.1.6-py2-none-any.whl
Building wheels for collected packages: lensfunpy
Running setup.py bdist_wheel for lensfunpy ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tr6fWM/lensfunpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpvnP7Fypip-wheel- --python-tag cp27:
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'glib-2.0', required by 'lensfun', not found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'glib-2.0', required by 'lensfun', not found
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/__init__.py -> build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/util.py -> build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/_version.py -> build/lib.linux-x86_64-2.7/lensfunpy
running build_ext
building 'lensfunpy._lensfun' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/lensfunpy
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-EkQe1J/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include -I/tmp/pip-build-tr6fWM/lensfunpy/lensfunpy -I/usr/include/python2.7 -c lensfunpy/_lensfun.c -o build/temp.linux-x86_64-2.7/lensfunpy/_lensfun.o
In file included from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from lensfunpy/_lensfun.c:274:
/home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^~~~~~~
In file included from lensfunpy/_lensfun.c:276:0:
lensfunpy/version_helper.h:1:21: fatal error: lensfun.h: No such file or directory
#include "lensfun.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for lensfunpy
Running setup.py clean for lensfunpy
Failed to build lensfunpy
Installing collected packages: enum34, lensfunpy
Running setup.py install for lensfunpy ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tr6fWM/lensfunpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-SCltnz-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'glib-2.0', required by 'lensfun', not found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'glib-2.0', required by 'lensfun', not found
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/__init__.py -> build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/util.py -> build/lib.linux-x86_64-2.7/lensfunpy
copying lensfunpy/_version.py -> build/lib.linux-x86_64-2.7/lensfunpy
running build_ext
building 'lensfunpy._lensfun' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/lensfunpy
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-EkQe1J/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include -I/tmp/pip-build-tr6fWM/lensfunpy/lensfunpy -I/usr/include/python2.7 -c lensfunpy/_lensfun.c -o build/temp.linux-x86_64-2.7/lensfunpy/_lensfun.o
In file included from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from lensfunpy/_lensfun.c:274:
/home/s.pook/.local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^~~~~~~
In file included from lensfunpy/_lensfun.c:276:0:
lensfunpy/version_helper.h:1:21: fatal error: lensfun.h: No such file or directory
#include "lensfun.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tr6fWM/lensfunpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-SCltnz-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-tr6fWM/lensfunpy/
$ sudo apt-get install libglib2.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libglib2.0-doc
The following NEW packages will be installed:
libglib2.0-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2,948 kB of archives.
After this operation, 10.6 MB of additional disk space will be used.
Selecting previously unselected package libglib2.0-dev.
(Reading database ... 226762 files and directories currently installed.)
Preparing to unpack .../libglib2.0-dev_2.50.1-1_amd64.deb ...
Unpacking libglib2.0-dev (2.50.1-1) ...
Processing triggers for libglib2.0-0:amd64 (2.50.1-1) ...
Setting up libglib2.0-dev (2.50.1-1) ...
Processing triggers for man-db (2.7.5-1) ...
$ pip install lensfunpy
Collecting lensfunpy
Using cached lensfunpy-1.4.0.tar.gz
Collecting enum34 (from lensfunpy)
Using cached enum34-1.1.6-py2-none-any.whl
Building wheels for collected packages: lensfunpy
Running setup.py bdist_wheel for lensfunpy ... done
Stored in directory: /home/s.pook/.cache/pip/wheels/d3/50/7d/bca802056c5061443599d2987a0480e209a0e789cb01d7bae7
Successfully built lensfunpy
Installing collected packages: enum34, lensfunpy
Successfully installed enum34-1.1.6 lensfunpy-1.4.0
Ah, yes, it is pkg-config then. I'm surprised this isn't part of a default Debian installation. I will investigate, thanks for the report!
With lensfunpy 1.6.0 there are now manylinux1 wheels which means no compilation from source is necessary on Linux anymore. I'll close this issue as the compile-from-source scenario is now an advanced thing that normal users wouldn't do anymore.
hello, I cannot get lensfunpy to install on Debian unstable. I think that I'm following the instructions