{"action":"created","issue":{"url":"https://api.github.com/repos/libvips/pyvips/issues/84","repository_url":"https://api.github.com/repos/libvips/pyvips","labels_url":"https://api.github.com/repos/libvips/pyvips/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/libvips/pyvips/issues/84/comments","events_url":"https://api.github.com/repos/libvips/pyvips/issues/84/events","html_url":"https://github.com/libvips/pyvips/issues/84","id":418913568,"node_id":"MDU6SXNzdWU0MTg5MTM1Njg=","number":84,"title":"pyvips installs in abi mode despite vips being present","user":{"login":"s-sajid-ali","id":30510036,"node_id":"MDQ6VXNlcjMwNTEwMDM2","avatar_url":"https://avatars1.githubusercontent.com/u/30510036?v=4","gravatar_id":"","url":"https://api.github.com/users/s-sajid-ali","html_url":"https://github.com/s-sajid-ali","followers_url":"https://api.github.com/users/s-sajid-ali/followers","following_url":"https://api.github.com/users/s-sajid-ali/following{/other_user}","gists_url":"https://api.github.com/users/s-sajid-ali/gists{/gist_id}","starred_url":"https://api.github.com/users/s-sajid-ali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-sajid-ali/subscriptions","organizations_url":"https://api.github.com/users/s-sajid-ali/orgs","repos_url":"https://api.github.com/users/s-sajid-ali/repos","events_url":"https://api.github.com/users/s-sajid-ali/events{/privacy}","received_events_url":"https://api.github.com/users/s-sajid-ali/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2019-03-08T18:55:38Z","updated_at":"2019-03-11T19:34:45Z","closed_at":null,"author_association":"NONE","body":"Is there an argument I can pass to pyvips to find a local install of libvips ? \r\n\r\n```\r\n(ipy3) [sajid@xrmlite ~]$ which vips\r\n~/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.3.0/libvips-8.7.4-rilxe37cjuisabs3kzapoljmdcr7jivc/bin/vips\r\n(ipy3) [sajid@xrmlite ~]$ pip install --user pyvips\r\nCollecting pyvips\r\nRequirement already satisfied: cffi>=1.0.0 in ./miniconda3/envs/ipy3/lib/python3.6/site-packages (from pyvips)\r\nRequirement already satisfied: pycparser in ./miniconda3/envs/ipy3/lib/python3.6/site-packages (from cffi>=1.0.0->pyvips)\r\nInstalling collected packages: pyvips\r\nSuccessfully installed pyvips-2.1.5\r\nYou are using pip version 9.0.1, however version 19.0.3 is available.\r\nYou should consider upgrading via the 'pip install --upgrade pip' command.\r\n(ipy3) [sajid@xrmlite ~]$ pip show pyvips\r\nName: pyvips\r\nVersion: 2.1.5\r\nSummary: binding for the libvips image processing library, ABI mode\r\nHome-page: https://github.com/libvips/pyvips\r\nAuthor: John Cupitt\r\nAuthor-email: jcupitt@gmail.com\r\nLicense: MIT\r\nLocation: /home/sajid/.local/lib/python3.6/site-packages\r\nRequires: cffi\r\nYou are using pip version 9.0.1, however version 19.0.3 is available.\r\nYou should consider upgrading via the 'pip install --upgrade pip' command.\r\n(ipy3) [sajid@xrmlite ~]$\r\n```"},"comment":{"url":"https://api.github.com/repos/libvips/pyvips/issues/comments/471689929","html_url":"https://github.com/libvips/pyvips/issues/84#issuecomment-471689929","issue_url":"https://api.github.com/repos/libvips/pyvips/issues/84","id":471689929,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3MTY4OTkyOQ==","user":{"login":"kleisauke","id":12746591,"node_id":"MDQ6VXNlcjEyNzQ2NTkx","avatar_url":"https://avatars3.githubusercontent.com/u/12746591?v=4","gravatar_id":"","url":"https://api.github.com/users/kleisauke","html_url":"https://github.com/kleisauke","followers_url":"https://api.github.com/users/kleisauke/followers","following_url":"https://api.github.com/users/kleisauke/following{/other_user}","gists_url":"https://api.github.com/users/kleisauke/gists{/gist_id}","starred_url":"https://api.github.com/users/kleisauke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kleisauke/subscriptions","organizations_url":"https://api.github.com/users/kleisauke/orgs","repos_url":"https://api.github.com/users/kleisauke/repos","events_url":"https://api.github.com/users/kleisauke/events{/privacy}","received_events_url":"https://api.github.com/users/kleisauke/received_events","type":"User","site_admin":false},"created_at":"2019-03-11T19:34:45Z","updated_at":"2019-03-11T19:34:45Z","author_association":"MEMBER","body":"I tried on Miniconda (on my CentOS server) and it seems to work:\r\n\r\n<details>\r\n<summary>Output</summary>\r\n\r\n```\r\n[root@gra ~]# conda info\r\n\r\n     active environment : None\r\n            shell level : 0\r\n       user config file : /root/.condarc\r\n populated config files : /root/.condarc\r\n          conda version : 4.5.12\r\n    conda-build version : not installed\r\n         python version : 3.7.1.final.0\r\n       base environment : /root/miniconda3  (writable)\r\n           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64\r\n                          https://repo.anaconda.com/pkgs/main/noarch\r\n                          https://repo.anaconda.com/pkgs/free/linux-64\r\n                          https://repo.anaconda.com/pkgs/free/noarch\r\n                          https://repo.anaconda.com/pkgs/r/linux-64\r\n                          https://repo.anaconda.com/pkgs/r/noarch\r\n                          https://repo.anaconda.com/pkgs/pro/linux-64\r\n                          https://repo.anaconda.com/pkgs/pro/noarch\r\n          package cache : /root/miniconda3/pkgs\r\n                          /root/.conda/pkgs\r\n       envs directories : /home/envs\r\n                          /root/miniconda3/envs\r\n                          /root/.conda/envs\r\n               platform : linux-64\r\n             user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Linux/4.14.63-xxxx-std-ipv6-64 centos/7 glibc/2.17\r\n                UID:GID : 0:0\r\n             netrc file : None\r\n           offline mode : False\r\n\r\n[root@gra ~]# conda create -n py3k python=3\r\nSolving environment: done\r\n\r\n\r\n==> WARNING: A newer version of conda exists. <==\r\n  current version: 4.5.12\r\n  latest version: 4.6.8\r\n\r\nPlease update conda by running\r\n\r\n    $ conda update -n base -c defaults conda\r\n\r\n\r\n\r\n## Package Plan ##\r\n\r\n  environment location: /home/envs/py3k\r\n\r\n  added / updated specs:\r\n    - python=3\r\n\r\n\r\nThe following packages will be downloaded:\r\n\r\n    package                    |            build\r\n    ---------------------------|-----------------\r\n    libedit-3.1.20181209       |       hc058e9b_0         188 KB\r\n    ca-certificates-2019.1.23  |                0         126 KB\r\n    wheel-0.33.1               |           py37_0          39 KB\r\n    certifi-2019.3.9           |           py37_0         155 KB\r\n    setuptools-40.8.0          |           py37_0         643 KB\r\n    python-3.7.2               |       h0371630_0        36.4 MB\r\n    openssl-1.1.1b             |       h7b6447c_1         4.0 MB\r\n    pip-19.0.3                 |           py37_0         1.8 MB\r\n    ------------------------------------------------------------\r\n                                           Total:        43.3 MB\r\n\r\nThe following NEW packages will be INSTALLED:\r\n\r\n    ca-certificates: 2019.1.23-0\r\n    certifi:         2019.3.9-py37_0\r\n    libedit:         3.1.20181209-hc058e9b_0\r\n    libffi:          3.2.1-hd88cf55_4\r\n    libgcc-ng:       8.2.0-hdf63c60_1\r\n    libstdcxx-ng:    8.2.0-hdf63c60_1\r\n    ncurses:         6.1-he6710b0_1\r\n    openssl:         1.1.1b-h7b6447c_1\r\n    pip:             19.0.3-py37_0\r\n    python:          3.7.2-h0371630_0\r\n    readline:        7.0-h7b6447c_5\r\n    setuptools:      40.8.0-py37_0\r\n    sqlite:          3.26.0-h7b6447c_0\r\n    tk:              8.6.8-hbc83047_0\r\n    wheel:           0.33.1-py37_0\r\n    xz:              5.2.4-h14c3975_4\r\n    zlib:            1.2.11-h7b6447c_3\r\n\r\nProceed ([y]/n)? y\r\n\r\n\r\nDownloading and Extracting Packages\r\nlibedit-3.1.20181209 | 188 KB    | ################################################################################################################################################################################################## | 100%\r\nca-certificates-2019 | 126 KB    | ################################################################################################################################################################################################## | 100%\r\nwheel-0.33.1         | 39 KB     | ################################################################################################################################################################################################## | 100%\r\ncertifi-2019.3.9     | 155 KB    | ################################################################################################################################################################################################## | 100%\r\nsetuptools-40.8.0    | 643 KB    | ################################################################################################################################################################################################## | 100%\r\npython-3.7.2         | 36.4 MB   | ################################################################################################################################################################################################## | 100%\r\nopenssl-1.1.1b       | 4.0 MB    | ################################################################################################################################################################################################## | 100%\r\npip-19.0.3           | 1.8 MB    | ################################################################################################################################################################################################## | 100%\r\nPreparing transaction: done\r\nVerifying transaction: done\r\nExecuting transaction: done\r\n#\r\n# To activate this environment, use\r\n#\r\n#     $ conda activate py3k\r\n#\r\n# To deactivate an active environment, use\r\n#\r\n#     $ conda deactivate\r\n\r\n[root@gra ~]# conda activate py3k\r\n(ipy3) [root@gra ~]# echo $PKG_CONFIG_PATH\r\n:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgconfig\r\n(ipy3) [root@gra envs]# pkg-config vips --libs\r\n-lvips -lgobject-2.0 -lglib-2.0\r\n(py3k) [root@gra ~]# pip install --no-cache-dir pyvips\r\nCollecting pyvips\r\n  Downloading https://files.pythonhosted.org/packages/39/1e/b1df477d78bba37d3b9f83258e9a44bb505355e2e56a82e8398bfe699096/pyvips-2.1.5.tar.gz\r\nCollecting cffi>=1.0.0 (from pyvips)\r\n  Downloading https://files.pythonhosted.org/packages/a7/3f/2667a1516d935938245bd256b56a2f96d739ac3683e6778380f06c6e4c79/cffi-1.12.2-cp37-cp37m-manylinux1_x86_64.whl (430kB)\r\n    100% |████████████████████████████████| 440kB 14.2MB/s\r\nCollecting pkgconfig (from pyvips)\r\n  Downloading https://files.pythonhosted.org/packages/e1/8a/c205fad800317a59e8d218981a8a7a3a00ec69c7fd55eca58dd08e6b0a18/pkgconfig-1.4.0-py2.py3-none-any.whl\r\nCollecting pycparser (from cffi>=1.0.0->pyvips)\r\n  Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)\r\n    100% |████████████████████████████████| 163kB 12.4MB/s\r\nInstalling collected packages: pycparser, cffi, pkgconfig, pyvips\r\n  Running setup.py install for pycparser ... done\r\n  Running setup.py install for pyvips ... done\r\nSuccessfully installed cffi-1.12.2 pkgconfig-1.4.0 pycparser-2.19 pyvips-2.1.5\r\n(py3k) [root@gra ~]# pip show pyvips\r\nName: pyvips\r\nVersion: 2.1.5\r\nSummary: binding for the libvips image processing library, API mode\r\nHome-page: https://github.com/libvips/pyvips\r\nAuthor: John Cupitt\r\nAuthor-email: jcupitt@gmail.com\r\nLicense: MIT\r\nLocation: /home/envs/py3k/lib/python3.7/site-packages\r\nRequires: cffi, pkgconfig\r\nRequired-by:\r\n(py3k) [root@gra ~]# conda deactivate\r\n[root@gra ~]#\r\n```\r\n</details>\r\n&nbsp;\r\n\r\nThe only difference here is that I compiled libvips without using [`spack`](https://spack.io/) and that I didn't use the [Intel distribution for Python](https://software.intel.com/en-us/distribution-for-python) (assuming that `ipy3` = Intel Python 3). I'll try the Miniconda / spack / Intel Python combination tomorrow."}}
{"actor":{"display_login":"kleisauke"}}