Comments (13)
Possible duplicate of #10 or #14?
from pillow.
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.
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.
Uninstall your old copy of PIL
from pillow.
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.
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.
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.
Has PIL been removed from both the virtualenv and global site packages?
from pillow.
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.
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.
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.
Yep, glad you fixed it!
from pillow.
I ran into the same problem. Just wanted to update with my fix:
- Removed PIL & Pillow from osx's site-packages and the virtualenv site packages
- Created a new virtualenv and did a
pip install pillow
. if that works (it did for me), the problem is in your virtualenv. 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)
- Cannot import ImageCms with no LITTLECMS2 feature installed HOT 8
- Passing a numpy.ndarray as the size to Image.resize() works in 10.3.0, but not in 10.4.0 HOT 4
- WebP image saving broken from 10.3.0 to 10.4.0 HOT 8
- Python 3.13 free-threading compatibility HOT 8
- Pillow installed via Conda on Win10 errors with "ImportError: The _imaging extension was built for another version of Pillow or PIL" HOT 7
- Release Pillow 11.0.0 on October 15, 2024
- KHKT HOT 1
- GIF extents size change HOT 4
- Resize Error HOT 2
- GIF optimizer acts wrongly with black pixels when `disposal=2`
- Add CONTRIBUTORS.md HOT 1
- Save 16-bit PGM Image? HOT 2
- Possible to add an IFD to an image's EXIF data? HOT 2
- Having trouble installing libraqm HOT 23
- `Image.fromqimage()` raises `TypeError` HOT 2
- `alpha_composite` works poorly with transparency
- Windows Docker / nanoserver support HOT 8
- Save GIF without loss of quality HOT 23
- scientific-python-nightly-wheels-publish triggered in fork HOT 1
- `ImageFont` claims to load font sizes in pixels but seems to use points? HOT 6
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 pillow.