Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python image library issue: domain users cannot save files?

Reply
Thread Tools

Python image library issue: domain users cannot save files?

 
 
vixvixreg@gmail.com
Guest
Posts: n/a
 
      11-19-2008
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
 
Reply With Quote
 
 
 
 
Gabriel Genellina
Guest
Posts: n/a
 
      11-19-2008
En Wed, 19 Nov 2008 13:43:07 -0200,
<> escribió:

> 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

 
Reply With Quote
 
 
 
 
vixvixreg@gmail.com
Guest
Posts: n/a
 
      11-20-2008
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.com> escribió:
>
> > 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a server on one domain the domain controller of a new domain Limited Wisdom MCSA 7 09-13-2006 02:18 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57