Code Monkey home page Code Monkey logo

Comments (13)

aclark4life avatar aclark4life commented on August 27, 2024

Possible duplicate of #10 or #14?

from pillow.

DeaconDesperado avatar DeaconDesperado commented on August 27, 2024

Perhaps, but my installation report shows JPEG support available. Is there something I should symlink before install? I've tried all the usual suspects when installing bare PIL.

from pillow.

DeaconDesperado avatar DeaconDesperado commented on August 27, 2024

Additionally, directly importing _imaging gives this traceback:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/205250/projects/gonation/env/lib/python2.7/site-packages/PIL/_imaging.so, 2): Symbol not found: _PyFloat_AS_DOUBLE
  Referenced from: /Users/205250/projects/gonation/env/lib/python2.7/site-packages/PIL/_imaging.so
  Expected in: flat namespace
 in /Users/205250/projects/gonation/env/lib/python2.7/site-packages/PIL/_imaging.so

Not sure if that helps. Also in virtualenv.

from pillow.

aclark4life avatar aclark4life commented on August 27, 2024

Uninstall your old copy of PIL

from pillow.

DeaconDesperado avatar DeaconDesperado commented on August 27, 2024

Did the uninstall, sorry, just copied the traceback from the wrong console. The same error occurs with only Pillow in the virtualenv and no global install of PIL or Pillow.

from pillow.

aclark4life avatar aclark4life commented on August 27, 2024

Have you reviewed #10 and/or #14? I don't recall the fixes/workarounds/whatever but it seems to me like this is a known issue

from pillow.

DeaconDesperado avatar DeaconDesperado commented on August 27, 2024

I did review and tried the fixes listed in #14 and #10 , but I still can't seem to get it to work. What's funny is the installation output says that libjpeg was located successfully. I have tried changing the JPEG_ROOT in setup.py as well. Adding the directories from the brew Cellar and reinstalling yields the same result.

It doesn't appear to be specific to using virtualenv as well, though I had originally thought this. Installing into the global site-packages shows the same behavior. Thanks for the help!

from pillow.

aclark4life avatar aclark4life commented on August 27, 2024

Has PIL been removed from both the virtualenv and global site packages?

from pillow.

DeaconDesperado avatar DeaconDesperado commented on August 27, 2024

All instances of PIL have been removed. I also tried creating a new virtualenv after removing all PIL from all locations and showed the same behavior.

from pillow.

aclark4life avatar aclark4life commented on August 27, 2024

Can you re-paste the errors you get with Pillow (instead of PIL)? I'm not sure what's going on, but this is suspect: ImportError: dlopen(/Users/205250/projects/gonation/env/lib/python2.7/site-packages/PIL/_imaging.so, 2): Symbol not found: _PyFloat_AS_DOUBLE

I also can't reproduce.

from pillow.

DeaconDesperado avatar DeaconDesperado commented on August 27, 2024

Sorry for the delay. It seems I got things worked out by relinking some brew formulas and installing libcms. If you couldn't reproduce this was probably something too localized. Going to close if that's ok.

from pillow.

aclark4life avatar aclark4life commented on August 27, 2024

Yep, glad you fixed it!

from pillow.

jvanasco avatar jvanasco commented on August 27, 2024

I ran into the same problem. Just wanted to update with my fix:

  1. Removed PIL & Pillow from osx's site-packages and the virtualenv site packages
  2. Created a new virtualenv and did a pip install pillow. if that works (it did for me), the problem is in your virtualenv.
  3. diff -r the good and bad virtualenvs. there ended up being something odd/wrong with my virtualenv Python versions. one may have been built on 2.7, the other on 2.7.5 ; i did something sketchy and replaced the python executable and things work fine. i wouldn't recommend that, but its a stopgap until i rebuild the virtualenv tonight.

Also to be clear, the first thing you want to check is if you can install Pillow in a new virtualenv. i didn't think of doing that , because i'm replacing a functional PIL

from pillow.

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.