Re: [python-win32] win32com + Excel + Django + Apache = problem

2011-01-26 Thread Mark Hammond
Oops - I didn't see this reply when I posted mine. On 26/01/2011 5:34 AM, user wrote: This line it's not a "copy past" from my source. In the code every path is ok, I checked many times. I suggest you modify your code to the smallest example which demonstrates the problem, then copy-paste it

Re: [python-win32] win32com + Excel + Django + Apache = problem

2011-01-26 Thread Mark Hammond
On 26/01/2011 8:51 AM, cricogik wrote: > Does that user have access to that path? Yes, apache has full access. It's problem in win32com Are you sure about that? because when I add before calling Workbooks.Open: open("C:\\path\\to\\file.xlsx") application won't crash, so apache can ope

Re: [python-win32] win32com + Excel + Django + Apache = problem

2011-01-26 Thread cricogik
> Does that user have access to that path? Yes, apache has full access. It's problem in win32com, because when I add before calling Workbooks.Open: open("C:\\path\\to\\file.xlsx") application won't crash, so apache can open/read/write this file. Also when I running application under django de

Re: [python-win32] win32com + Excel + Django + Apache = problem

2011-01-26 Thread user
This line it's not a "copy past" from my source. In the code every path is ok, I checked many times. 2011/1/26 Mike Mazurek > C:\\path\to\\file.xlsx" <-- you need another back slash before the "to" > > On Wed, Jan 26, 2011 at 9:09 AM, user wrote: > >> >> Hello, >> >> I have some problems while

Re: [python-win32] win32com + Excel + Django + Apache = problem

2011-01-26 Thread Randy Syring
I don't know much of anything about COM or multi-threading in Apache, but the error seems to indicate a permissions problem. What system user is Apache running under? Does that user have access to that path? Another option is to use "run as" to open a command prompt as the same system user t

[python-win32] win32com + Excel + Django + Apache = problem

2011-01-26 Thread user
Hello, I have some problems while opening Excel (via win32com) document in a web application running under Apache(mod_wsgi)/Windows 2008 Server (there is no problem when the application is running on django developer server - one thread). My code: def my_view(request): import pythoncom