OK, as I can't figure what's wrong, can someone be kind and suggest which file should I patch and how, to be able to use wx without errors?
This seem to work:
···
====================
f = open('/path-to/file', 'rb')
wx.ImageFromStream(f,...)
f.close()
I suspect that file _core.py in wx folder in Python site-packages should be changed somehow so that it can read posix path pass to it through python file handle.
Or maybe somehow else
The code that is attempting to open the image file and read it is in the wxWidgets C++ code, in wxImage. As I understand it, if wxWidgets was properly built in cygwin mode then it should be able to read it with no problem just like on a true unix, but I've never done such a build myself so I can't really help with it, other than taking shots in the dark.
You should try asking about this on the wx-users mail list, and give details about how your wxWidgets was built or where it came from if you installed a pre-built binary. It would also be a good idea to check and see if you can duplicate this problem in a C++ sample, such as the wxWidgets/samples/image demo program.
···
On 6/15/12 10:10 AM, matt_bali@mac.hush.com wrote:
OK, as I can't figure what's wrong, can someone be kind and suggest which file should I patch and how, to be able to use wx without errors?
This seem to work:
f = open('/path-to/file', 'rb')
wx.ImageFromStream(f,...)
f.close()
I suspect that file _core.py in wx folder in Python site-packages should be changed somehow so that it can read posix path pass to it through python file handle.
Or maybe somehow else