By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,713 Members | 764 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,713 IT Pros & Developers. It's quick & easy.

Python image library issue: domain users cannot save files?

P: n/a
Hi,
Has anyone try to use PIL in a windows domain environment? I am having
a permission issue. If I am a domain user, even I have the permission
to write a folder, when I tried to do simple things like Image.open
("foo.tif").save("bar.tif"), i am getting exception IOError ("0",
"Error"). I tried to set os.umask(0) before I saved the file but the
same exception threw. But If I am the same domain user with local
admin permission on a windows box, I have no problem with the same
script. Does anyone ever have the same situation and know a work
around for this? Thanks.

Best,

Vix
Nov 19 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
En Wed, 19 Nov 2008 13:43:07 -0200, vi*******@gmail.com
<vi*******@gmail.comescribió:
Has anyone try to use PIL in a windows domain environment? I am having
a permission issue. If I am a domain user, even I have the permission
to write a folder, when I tried to do simple things like Image.open
("foo.tif").save("bar.tif"), i am getting exception IOError ("0",
"Error"). I tried to set os.umask(0) before I saved the file but the
same exception threw. But If I am the same domain user with local
admin permission on a windows box, I have no problem with the same
script. Does anyone ever have the same situation and know a work
around for this? Thanks.
Try using the builtin open() function to create/read/write files. If you
have the same issues then you can take away PIL from the question and
concentrate on setting the proper permissions for the user running the
script.

--
Gabriel Genellina

Nov 19 '08 #2

P: n/a
I have no problem with the python builtin open which we use dayly.
Thanks for the hints.

Best,
V

On Nov 19, 5:56*pm, "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
wrote:
En Wed, 19 Nov 2008 13:43:07 -0200, vixvix...@gmail.com *
<vixvix...@gmail.comescribió:
Has anyone try to use PIL in a windows domain environment? I am having
a permission issue. If I am a domain user, even I have the permission
to write a folder, when I tried to do simple things like Image.open
("foo.tif").save("bar.tif"), i am getting exception IOError ("0",
"Error"). I tried to set os.umask(0) before I saved the file but the
same exception threw. But If I am the same domain user with local
admin permission on a windows box, I have no problem with the same
script. Does anyone ever have the same situation and know a work
around for this? Thanks.

Try using the builtin open() function to create/read/write files. If you *
have the same issues then you can take away PIL from the question and *
concentrate on setting the proper permissions for the user running the *
script.

--
Gabriel Genellina
Nov 20 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.