<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>It works!</DIV>
<DIV>&nbsp;</DIV>
<DIV>FYI - </DIV>
<DIV>the trick was to remove the gen_py folder from the win32com/client directory. Then I was also not including win32com in the 'packages' option in my setup.py. Including this solved my issues. I can now install on a machine and win32com will create the gen_py files in the appdata folder.</DIV>
<DIV>&nbsp;</DIV>
<DIV>thanks for those who offered advice,</DIV>
<DIV>Jeff<BR><BR>--- On <B>Fri, 2/12/10, Preston Landers <I>&lt;planders@gmail.com&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Preston Landers &lt;planders@gmail.com&gt;<BR>Subject: Re: [python-win32] permissions error<BR>To: "Jeff Peery" &lt;jeffpeery@yahoo.com&gt;<BR>Date: Friday, February 12, 2010, 10:30 PM<BR><BR>
<DIV id=yiv1736678330>I don't know if this will work but one workaround may be to set a registry key:<BR><BR>HKLM\\SOFTWARE\\Python\\PythonCore\\2.6\\PythonPath\\win32com<BR><BR>The key is GenPath and the value would be a writable location.&nbsp; See win32com/__init__.py SetupEnvironment().<BR><BR>You could also look at pre-generating the files in question with makepy.py and including those in the executable. I don't have much experience with packaging an app into the executable format.<BR><BR>-Preston<BR><BR>
<DIV class=gmail_quote>On Fri, Feb 12, 2010 at 11:37 PM, Jeff Peery <SPAN dir=ltr>&lt;<A href="http://us.mc431.mail.yahoo.com/mc/compose?to=jeffpeery@yahoo.com" rel=nofollow target=_blank ymailto="mailto:jeffpeery@yahoo.com">jeffpeery@yahoo.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD style="FONT-FAMILY: inherit; font-size-adjust: inherit; font-stretch: inherit" vAlign=top>
<DIV>hi, yes I can personally do that on my computer but&nbsp;it is not a good solution for my users to&nbsp;require an administrator to grant acces every time they want to launch the software. So I will need a more permanent fix. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Is it a significant task to redirect these files to the application data folder or program data folder?</DIV>
<DIV>&nbsp;</DIV>
<DIV>thanks,</DIV>
<DIV>Jeff<BR><BR><BR>--- On <B>Fri, 2/12/10, Preston Landers <I>&lt;<A href="http://us.mc431.mail.yahoo.com/mc/compose?to=planders@gmail.com" rel=nofollow target=_blank ymailto="mailto:planders@gmail.com">planders@gmail.com</A>&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Preston Landers &lt;<A href="http://us.mc431.mail.yahoo.com/mc/compose?to=planders@gmail.com" rel=nofollow target=_blank ymailto="mailto:planders@gmail.com">planders@gmail.com</A>&gt;
<DIV class=im><BR>Subject: Re: [python-win32] permissions error<BR></DIV>To: "Jeff Peery" &lt;<A href="http://us.mc431.mail.yahoo.com/mc/compose?to=jeffpeery@yahoo.com" rel=nofollow target=_blank ymailto="mailto:jeffpeery@yahoo.com">jeffpeery@yahoo.com</A>&gt;<BR>Date: Friday, February 12, 2010, 7:24 PM
<DIV>
<DIV></DIV>
<DIV class=h5><BR><BR>
<DIV>Have you tried manually granting a write permission for your user to that directory?&nbsp; <BR>-Preston<BR><BR>
<DIV class=gmail_quote>On Fri, Feb 12, 2010 at 9:08 PM, Jeff Peery <SPAN dir=ltr>&lt;<A href="http://us.mc431.mail.yahoo.com/mc/compose?to=jeffpeery@yahoo.com" rel=nofollow target=_blank>jeffpeery@yahoo.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD style="FONT-FAMILY: inherit; font-size-adjust: inherit; font-stretch: inherit" vAlign=top>
<DIV>hello,</DIV>
<DIV>yes, I am using 64 bit vista. and I am using py2exe to distribute my app. At the moment I'm dead in the water unti lI resolve this issue. Does anyone know of a quick fix?</DIV>
<DIV>&nbsp;</DIV>
<DIV>thanks,</DIV>
<DIV>Jeff<BR><BR>--- On <B>Fri, 2/12/10, Tim Roberts <I>&lt;<A href="http://us.mc431.mail.yahoo.com/mc/compose?to=timr@probo.com" rel=nofollow target=_blank>timr@probo.com</A>&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Tim Roberts &lt;<A href="http://us.mc431.mail.yahoo.com/mc/compose?to=timr@probo.com" rel=nofollow target=_blank>timr@probo.com</A>&gt;<BR>Subject: Re: [python-win32] permissions error<BR>To: "Python-Win32 List" &lt;<A href="http://us.mc431.mail.yahoo.com/mc/compose?to=python-win32@python.org" rel=nofollow target=_blank>python-win32@python.org</A>&gt;<BR>Date: Friday, February 12, 2010, 10:37 AM 
<DIV>
<DIV></DIV>
<DIV><BR><BR>
<DIV>Dave Angel wrote:<BR>&gt; 2) Are you running a 64bit version of Vista?<BR><BR>Yes, he is.&nbsp; The path "Program Files (x86)" is prima facie evidence of<BR>this.&nbsp; He's running 32-bit Python on a 64-bit system.&nbsp; And that's just fine.<BR><BR><BR>&gt; 3) What do you mean by "compile" and "compiled executable"?<BR><BR>It means he has used something like "py2exe" to turn his Python code<BR>into an executable.<BR><BR>This is a real problem, and one that pywin32 probably needs to address. <BR>On Vista and beyond, the "Program Files" directories are not writable by<BR>non-elevated programs.&nbsp; The win32com-generated wrappers need to go<BR>somewhere else, like "Local Settings\Temp" or "Local Settings\Apps".<BR><BR>-- <BR>Tim Roberts, <A href="http://us.mc431.mail.yahoo.com/mc/compose?to=timr@probo.com" rel=nofollow target=_blank>timr@probo.com</A><BR>Providenza &amp; Boekelheide,
 Inc.<BR><BR>_______________________________________________<BR>python-win32 mailing list<BR><A href="http://us.mc431.mail.yahoo.com/mc/compose?to=python-win32@python.org" rel=nofollow target=_blank>python-win32@python.org</A><BR><A href="http://mail.python.org/mailman/listinfo/python-win32" rel=nofollow target=_blank>http://mail.python.org/mailman/listinfo/python-win32</A><BR></DIV></DIV></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR><BR>_______________________________________________<BR>python-win32 mailing list<BR><A href="http://us.mc431.mail.yahoo.com/mc/compose?to=python-win32@python.org" rel=nofollow target=_blank>python-win32@python.org</A><BR><A href="http://mail.python.org/mailman/listinfo/python-win32" rel=nofollow target=_blank>http://mail.python.org/mailman/listinfo/python-win32</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></td></tr></table><br>