Giter VIP home page Giter VIP logo

Comments (6)

jcupitt avatar jcupitt commented on July 19, 2024

Hello, try:

image = pyvips.Image.new_from_file("IMG_0015_guides.jpg")

from pyvips.

marcrleonard avatar marcrleonard commented on July 19, 2024

same result :-/

from pyvips.

jcupitt avatar jcupitt commented on July 19, 2024

Could you paste the exact code and output? For example, I see:

$ python
Python 2.7.14 (default, Sep 23 2017, 22:06:14) 
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyvips
>>> x = pyvips.Image.new_from_file("k2.jpg")
>>> 

What if you try with Apple or Homebrew's Python? The anaconda one is a little strange.

from pyvips.

marcrleonard avatar marcrleonard commented on July 19, 2024

I will try the Homebrew python. Here is my current setup:

Marcs-MacBook-Pro:Workflow leonard$ python3
Python 3.6.2 |Anaconda, Inc.| (default, Sep 21 2017, 18:29:43) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyvips
>>> image = pyvips.Image.new_from_file("IMG_0015_guides.jpg")

(process:98284): GLib-CRITICAL **: g_datalist_id_set_data_full: assertion 'key_id > 0' failed

(process:98284): GLib-GObject-CRITICAL **: g_param_spec_pool_lookup: assertion 'pool != NULL' failed

(process:98284): GLib-GObject-WARNING **: g_object_set_is_valid_property: object class '(null)' has no property named 'filename'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/marcleonard/anaconda3/lib/python3.6/site-packages/pyvips/vimage.py", line 254, in new_from_file
    ), **kwargs)
  File "/Users/marcleonard/anaconda3/lib/python3.6/site-packages/pyvips/voperation.py", line 213, in call
    raise Error('unable to call {0}'.format(operation_name))
pyvips.error.Error: unable to call VipsForeignLoadJpegFile
  jpegload: parameter filename not set


from pyvips.

marcrleonard avatar marcrleonard commented on July 19, 2024

Ok, thanks for the help John. With a fresh venv with the official python3 download, it worked properly. Thank you!

from pyvips.

jcupitt avatar jcupitt commented on July 19, 2024

Anaconda seems to really need its own package :(

from pyvips.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.