Search code examples
pythonimagewxpython

wxPhyton error loading a image failed to load image from file


I have an error on wxPhyton. When I try to load and image It gives me this error:

"Failed to load image from file14:25:14:'resources/AboutPlatformDUT255b.bmp' 
can't open file 'resources/AboutPlatformDUT255b.bmp' (error 0: la operación se completó correctamente.)
14:25:14: Failed to load image from file "resources/AboutPlatformDUT255b.bmp".

I try to change the format between jpg, png, bmp and to resize the resolution but doesn't works. Any idea?


Solution

  • Solved,

    The problem was the path of the image file. I don´t not why but I can`t get the absolut path to show some images.