Comments (5)
Note, this is inside a conda env. I have found that outside the conda env it works, and that copying site-packages/_libvips.abi3.so
from the other env into this conda env, it will work.
But, cleanly installing pyvips into that env will cause this failure again.
from pyvips.
Hello @lk-jeffpeck,
Yes, conda needs a special package, it won't work with the standard pyvips one. There have been a couple of tries at packaging libvips and pyvips for conda, but it hasn't worked out yet.
from pyvips.
Aha! Interesting... What is the issue?
Since it does technically work by installing it outside of the conda env and then copying the lib, I would think that there should be a more automated way to work around the issue?
from pyvips.
And is this documented anywhere?
from pyvips.
I expect you know much more about this than I do, but my understanding is that conda ships its own Python and that they don't include the development headers. So you need to install a matching version of Py, but with the headers, then build the extension with compiler flags that match the way that conda built their py, then copy the extension in to the conda py module area.
pyvips will work in ABI mode and run without a native module, but it's a bit slower.
There's a related problem with libvips itself: it depends on things like libjpeg, and conda also ship their own versions of libraries like these. What if libvips and conda have been built against external libraries which are not binary compatible? You can get a whole range of strange crashes as code calls a library it is not expecting.
The fix is to make a special conda package that builds libvips and also builds pyvips, then installs them together as a single binary which is compatible with your conda Python. This is the thing that's not been done yet (as far as I know).
conda is it's own special world and you can't really use external libraries or modules with it directly. This has advantages for simplicity, stability and consistency, but can be frustrating too.
I don't use conda myself and don't know a lot about it, but it seems it's quite popular, especially on Windows. There should probably be a note about this in the pyvips README.
from pyvips.
Related Issues (20)
- new release when & ship with libvips? HOT 14
- ICC Profile Application on SVS and tiffsave hangs randomly
- High RAM usage with fetch when reading multiple WSI tiles HOT 2
- Slower first run, even without cache HOT 2
- using resource.setrlimit makes pyvips / liborc spit the dummy HOT 2
- Memory leaking with pdf HOT 21
- dzsave_target returns NoneType not list[] as in docs HOT 1
- Pyvips fetch returns bad image on .svs files HOT 4
- Reading in image a second time breaks on qptiff file HOT 6
- Documentation link to conda package HOT 1
- Create svs file with image pyramid, label and macro in pyvips? HOT 4
- Image merge stitch HOT 2
- `addalpha` has different behaviour compared to C HOT 1
- Error installing pyvips on Mac OS HOT 15
- draw_rect fill error HOT 2
- creating tiles of 16bit multiband (4 band) tiff image leaves black canvas HOT 4
- class "jxlsave" not found HOT 9
- Assertion failed: sp->cinfo.comm.is_decompressor HOT 3
- Help installing pyvips for jupyter HOT 5
- `TIFFFillTile: Read error` when writing a TIFF file on a per-tile basis. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyvips.