Menu

Exception: fromstring() has been removed. Please call frombytes() instead.

Anonymous
2015-10-25
2018-01-05
  • Anonymous

    Anonymous - 2015-10-25

    When trying to open a file, we get that exception whith newer PILLOW:
    File "/usr/bin/macrofusion", line 621, in pixbuf2Image
    return Image.fromstring("RGB",(width,height),pb.get_pixels() )
    File "/usr/lib/python3.5/site-packages/PIL/Image.py", line 2053, in fromstring
    "Please call frombytes() instead.")
    Exception: fromstring() has been removed. Please call frombytes() instead.

    So in my installed /usr/bin/macrofusion I modified line 621 and it does work again:
    return Image.frombytes("RGB",(width,height),pb.get_pixels() )

    François.

     
    • Anonymous

      Anonymous - 2019-11-01
      Post awaiting moderation.
  • Anonymous

    Anonymous - 2018-01-05
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel