Giter Club home page Giter Club logo

Comments (11)

Fogapod avatar Fogapod commented on August 20, 2024

This line is causing segfault:

from PIL import Image, ImageOps

Adding import sys;sys.exit(1) in front of it stops segfaults.
Looks like it's not azote issue.

Though this works:

$ python
Python 3.9.6 (default, Jun 30 2021, 10:22:16)
[GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PIL import Image, ImageOps
>>>

from azote.

nwg-piotr avatar nwg-piotr commented on August 20, 2024

Haven't you by any chance installed the PIL library with pip install pil?

from azote.

Fogapod avatar Fogapod commented on August 20, 2024

What do you mean? I have Pillow installed.

from PIL import __version__
>>> print(__version__)
8.3.1

from azote.

nwg-piotr avatar nwg-piotr commented on August 20, 2024

python-pillow is the fork of the PIL library, which we need. PIL is in conflict with python-pillow.

from azote.

Fogapod avatar Fogapod commented on August 20, 2024

I don't have old 2006 library as I shown in previous message

from azote.

nwg-piotr avatar nwg-piotr commented on August 20, 2024

Well, no idea at the moment. Works for me as well on sway, as X11. Since it dies for you that early, I suppose you have nothing in ~/.local/share/azote/log.txt?

from azote.

Fogapod avatar Fogapod commented on August 20, 2024

No, nothing, since it dies on import phase, not even getting to main()

from azote.

Fogapod avatar Fogapod commented on August 20, 2024

So this sequence of imports reliably produces segfault for me:

from PIL import Image
from gi.repository import Gtk
from PIL import ImageOps

I created issue in Pillow repo: python-pillow/Pillow#5637

from azote.

nwg-piotr avatar nwg-piotr commented on August 20, 2024

BTW: ImageOps seems to be unnecessary. I'll check again to make sure, but it seems I should delete it.

from azote.

Fogapod avatar Fogapod commented on August 20, 2024

Yeah, they are not used. Removing ImageOps fixes issue for me

from azote.

nwg-piotr avatar nwg-piotr commented on August 20, 2024

Very well. I'll remove them.

from azote.

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.