Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
opening an image in python
Name: greenbear Date: December 2, 2006 at 13:42:44 Pacific OS: xp CPU/Ram: p4 Product: m
Comment:
Hey all,
I'm trying to do something very simple - open an image in python:
>>> img = Image.open("C:\Documents and Settings\Dmitry\Desktop\test.bmp")
but I get this error:
Traceback (most recent call last): File "<pyshell#4>", line 1, in <module> img = Image.open("C:\Documents and Settings\Dmitry\Desktop\test.bmp") File "C:\Python25\lib\site-packages\PIL\Image.py", line 1717, in open fp = __builtin__.open(fp, "rb") IOError: [Errno 2] No such file or directory: 'C:\\Documents and Settings\\Dmitry\\Desktop\test.bmp'
The error message has two backslashes instead of one for the bitmap location, which is rather preplexing. Any help is appreciated.
Summary: The only thing that comes to mind is an image handler from Alchemy Mind Works which will, among other things, convert an image to a self-displaying exe. Maybe you could use that and then implement in ...
Summary: I have an issue with greek letters in python. I am currently nmaking a program to help kids in my school learn this but I need to use greek leters like lamda and omega ect. When I put them in, by copy...