question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyvips installs in abi mode despite vips being present

See original GitHub issue

Is there an argument I can pass to pyvips to find a local install of libvips ?

(ipy3) [sajid@xrmlite ~]$ which vips
~/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.3.0/libvips-8.7.4-rilxe37cjuisabs3kzapoljmdcr7jivc/bin/vips
(ipy3) [sajid@xrmlite ~]$ pip install --user pyvips
Collecting pyvips
Requirement already satisfied: cffi>=1.0.0 in ./miniconda3/envs/ipy3/lib/python3.6/site-packages (from pyvips)
Requirement already satisfied: pycparser in ./miniconda3/envs/ipy3/lib/python3.6/site-packages (from cffi>=1.0.0->pyvips)
Installing collected packages: pyvips
Successfully installed pyvips-2.1.5
You are using pip version 9.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(ipy3) [sajid@xrmlite ~]$ pip show pyvips
Name: pyvips
Version: 2.1.5
Summary: binding for the libvips image processing library, ABI mode
Home-page: https://github.com/libvips/pyvips
Author: John Cupitt
Author-email: jcupitt@gmail.com
License: MIT
Location: /home/sajid/.local/lib/python3.6/site-packages
Requires: cffi
You are using pip version 9.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(ipy3) [sajid@xrmlite ~]$

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:29 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
jcupittcommented, Mar 9, 2019

I don’t think you can use ~ in env vars, can you? I’m on my phone, so I can’t check until tomorrow.

On Fri, 8 Mar 2019 at 19:22, Sajid Ali notifications@github.com wrote:

No effect.

(ipy3) [sajid@xrmlite ~]$ which vips ~/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.3.0/libvips-8.7.4-rilxe37cjuisabs3kzapoljmdcr7jivc/bin/vips (ipy3) [sajid@xrmlite ~]$ export PKG_CONFIG_PATH=~/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.3.0/libvips-8.7.4-rilxe37cjuisabs3kzapoljmdcr7jivc (ipy3) [sajid@xrmlite ~]$ pip install --user pyvips Collecting pyvips Requirement already satisfied: cffi>=1.0.0 in ./miniconda3/envs/ipy3/lib/python3.6/site-packages (from pyvips) Requirement already satisfied: pycparser in ./miniconda3/envs/ipy3/lib/python3.6/site-packages (from cffi>=1.0.0->pyvips) Installing collected packages: pyvips Successfully installed pyvips-2.1.5 You are using pip version 9.0.1, however version 19.0.3 is available. You should consider upgrading via the ‘pip install --upgrade pip’ command. (ipy3) [sajid@xrmlite ~]$ pip show pyvips Name: pyvips Version: 2.1.5 Summary: binding for the libvips image processing library, ABI mode Home-page: https://github.com/libvips/pyvips Author: John Cupitt Author-email: jcupitt@gmail.com License: MIT Location: /home/sajid/.local/lib/python3.6/site-packages Requires: cffi You are using pip version 9.0.1, however version 19.0.3 is available. You should consider upgrading via the ‘pip install --upgrade pip’ command. (ipy3) [sajid@xrmlite ~]$

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/libvips/pyvips/issues/84#issuecomment-471045482, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjc6zAeZWTGxis0JFgINQ-Yb4e7rl4iks5vUrhxgaJpZM4bl7kp .

0reactions
jcupittcommented, Jul 5, 2020

2.1.13 includes this extra information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

README — pyvips 2.2.1 documentation
If it is unable to build a binary extension, it will use cffi ABI mode instead and only needs the libvips shared library....
Read more >
Python Binding for Libvips using Cffi - Morioh
If it is unable to build a binary extension, it will use cffi ABI mode instead and only needs the libvips shared library....
Read more >
How to use the pyvips.Image.new_from_buffer function in pyvips
To help you get started, we've selected a few pyvips.Image.new_from_buffer examples, based on popular ways it is used in public projects.
Read more >
VIPS: ChangeLog - Fossies
As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers.
Read more >
Writing bindings(?) for libvips - RStudio Community
I came across the libvips C/C++ library when searching for ways to handle large ... pyvips. binding for the libvips image processing library,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found