DRPython on W7 64-bit "Couldn't load a PNG image" / "IDAT: invalid distance too far back"?

  • RBV

    RBV - 2014-02-26


    • DRPython 3.11.3
    • Windows 7 64-bit, fully patched
    • Python 2.7.6
    • PythonWin 2.7.6

    If in the DrPython directory I double-click drpython.pyw I receive the following error messages:

    IDAT: invalid distance too far back
    Couldn't load a PNG image - file is corrupted or not enough memory.
    Failed to load image from file "D:/Python27/DrPython/bitmaps/16/unmodified.png".

    • The image file unmodified.png does exist in the cited directory.
    • If I paste the path name into Windows Explorer location bar, Windows Explorer recognizes the path and my default graphics editing program opens and displays the graphic without error.
    • Python otherwise appears to be working properly although there are many aspects of my 2.7.6 installation that I haven't exercised.

    I'm surprised that no one else appears to be having the same problem.

    Any ideas?

    Cheers & thanks,

    • Ruud

      Ruud - 2015-09-03

      I am having the same problems! Did you ever solve it?

  • Franz Steinhaeusler

    That is strange. The wxpython Demo is running without problems?

  • Luca Clivio

    Luca Clivio - 2015-10-30

    it is a bug in the newest libpng... i had the same problem with wxpython3 (python 2.7.10) under windows.
    if you want to solve the problem for both the platforms, in linux you could update the images in bitmaps/16/ with this command:
    optipng -quiet -force -fix *.png
    please find attached to this post the updated "16" folder

    Last edit: Luca Clivio 2015-10-30

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks