473,320 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Python image library issue: domain users cannot save files?

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
2 2228
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
3
by: fdsl ysnh | last post by:
--- python-list-request@python.orgдµÀ: > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, > visit >...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.