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
Unable to install Vips and some dependencies seem to be corrupted. #315
Comments
It seems like I have everything done for my install, includding the Vips8 binding according to the ./configure output. But that file isn't getting created. Everything else is there includding the gi dir and the Vips.py in the override dir. Can I just download this file and paste it where it's supposed to go or how can i fix this?
|
Hi @alfredox10, I would fix the synaptic problem first. Try something like: http://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages Your typelib problem is strange. Is the
|
I was able to fix the synaptic problem with aptitude, thanks! Here is the output of my latest run of ./configure, everything seems to be in place: http://pastebin.com/FPesqTma However when I run make it's a different story. It doesn't seem like it works: http://pastebin.com/FefDcF3T |
I'd guess you have a broken package: only part of one of the gobject-introspection things seems to be there. Perhaps something crashed or quit half-way through install? I see: $ apt-file search g-ir-scanner
gobject-introspection: /usr/bin/g-ir-scanner Maybe try uninstalling and reinstalling $ sudo apt-get remove gobject-introspection
$ sudo apt-get install gobject-introspection libgirepository1.0-dev |
For some reason that still didn't work. I thought everything looked good after running make. But I get this error when I run import of vips: ImportError Traceback (most recent call last) ImportError: cannot import name Vips So I am not sure why it's still failing. configure output: http://pastebin.com/i7jyMAkX |
It all looks OK I think. You need to There some more notes in the Python docs, I guess you saw? http://www.vips.ecs.soton.ac.uk/supported/current/doc/html/libvips/using-from-python.html |
It works now but I had to additionally do these steps:
I am not sure if step #2 should have been done automatically during the make step, but after I did it myself, it works :D. Additionally, I am having trouble finding a good API guide to use the code in python, I only found this but it doesn't really mention everything I can do with a VipImage object. Is there something else? I want to put the image into a numpy 3D array similar to how PIL images automatically get processed this way: |
Ok so I've been testing the functionality and the problem seems to be resolved, I'll go ahead and make a new post for my next question. Thanks! |
Hey, great it's working This will become simple once vips8 is packaged by Debian, but for now it's rather a manual process :-( On 2., it's best to set http://www.vips.ecs.soton.ac.uk/supported/current/doc/html/libvips/using-from-python.html |
So I am running the ./configure from the package I got from your site and this is the output it produces:
native win32: no
native OS X: no
open files in binary mode: no
enable debug: no
build deprecated components: yes
build docs with gtkdoc: no
gobject introspection: no
build vips7 Python binding: yes
install vips8 Python overrides: no
(requires pygobject-3.12.0 or later)
use fftw3 for FFT: yes
Magick package: MagickWand
file import with libMagick: yes
accelerate loops with orc: yes
(requires orc-0.4.11 or later)
ICC profile support with lcms: yes (lcms2)
file import with OpenEXR: yes
file import with OpenSlide: yes
(requires openslide-3.3.0 or later)
file import with matio: yes
file import with cfitsio: yes
file import/export with libwebp: yes
text rendering with pangoft2: yes
file import/export with libpng: yes (pkg-config libpng >= 1.2.9)
(requires libpng-1.2.9 or later)
file import/export with libtiff: yes (pkg-config libtiff-4)
file import/export with libjpeg: yes
image pyramid export: yes
(requires libgsf-1 1.14.27 or later)
use libexif to load/save JPEG metadata: yes
So it's saying I need gobject introspection and gtkdoc, which I thought I already had installed. So I went back and tried to install gobject first using Synaptic Package Manager but it kept giving a dependency error. So then I used this command:
sudo apt-get install gobject-introspection
and this is what I get:
The following packages have unmet dependencies:
gobject-introspection : Depends: libgirepository-1.0-1 (= 1.40.0-1) but 1.40.0-1ubuntu0.2 is to be installed
E: Unable to correct problems, you have held broken packages.
alfredo@alfpc-ubuntu:~/Downloads/dependencies/gobject-introspection-1.44.0$
Can you help me resolve this?
Thanks,
Alfredo
The text was updated successfully, but these errors were encountered: