472,958 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

win32com: use not possible as normal user

Hello,

I've installed Python 2.4 and the win32 extensions, using administrator
rights, under Windows XP in "C:\Programme". As this is a directory
without spaces I didn't expect any problems. But now I can't _use_
win32com as a normal user, because normal users can't write there:

PythonWin 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
on win32.
Portions Copyright 1994-2004 Mark Hammond (mh******@skippinet.com.au) -
see 'Help/About PythonWin' for further copyright information.
import win32com.client .... import wdclass
kal = wdclass.easyWord() Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "h:\eigene dateien\abt\kalender\wdclass.py", line 10, in __init__
self.wdApp = win32com.client.Dispatch('Word.Application')
File
"C:\Programme\Python24\Lib\site-packages\win32com\client\__init__.py",
line 96, in Dispatch
return __WrapDispatch(dispatch, userName, resultCLSID, typeinfo,
UnicodeToString, clsctx)
File
"C:\Programme\Python24\Lib\site-packages\win32com\client\__init__.py",
line 38, in __WrapDispatch
klass = gencache.GetClassForCLSID(resultCLSID)
File
"C:\Programme\Python24\Lib\site-packages\win32com\client\gencache.py",
line 179, in GetClassForCLSID
mod = GetModuleForCLSID(clsid)
File
"C:\Programme\Python24\Lib\site-packages\win32com\client\gencache.py",
line 222, in GetModuleForCLSID
mod = GetModuleForTypelib(typelibCLSID, lcid, major, minor)
File
"C:\Programme\Python24\Lib\site-packages\win32com\client\gencache.py",
line 262, in GetModuleForTypelib
AddModuleToCache(typelibCLSID, lcid, major, minor)
File
"C:\Programme\Python24\Lib\site-packages\win32com\client\gencache.py",
line 575, in AddModuleToCache
_SaveDicts()
File
"C:\Programme\Python24\Lib\site-packages\win32com\client\gencache.py",
line 64, in _SaveDicts
f = open(os.path.join(GetGeneratePath(), "dicts.dat"), "wb")
IOError: [Errno 13] Permission denied:
'C:\\Programme\\Python24\\lib\\site-packages\\win32com\\gen_py\\dicts.dat'


Do I have to move my Python installation to another directory with write
permissions for normal users? Or is there a simpler way? This might not
be a problem for users with english Windows installations who can get
bitten anyway by the space in "program files". But in my german
installation I never had a reason to install Python outside of "Programme".

Thanks for any help,
Koczian
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : Si*************@Bibliothek.Uni-Augsburg.DE
Aug 12 '05 #1
2 6814
On Fri, 12 Aug 2005 11:01:13 +0200, Sibylle Koczian
<Si*************@Bibliothek.Uni-Augsburg.de> declaimed the following in
comp.lang.python:
Hello,

I've installed Python 2.4 and the win32 extensions, using administrator
rights, under Windows XP in "C:\Programme". As this is a directory
XP Pro or XP Home?

XP (both) protect the default program directory and a few
others. I have a number of applications that have required me to change
the permissions for directories so my user account can run them. On XP
Home, I believe this was a simple "share" flag. XP Pro has a much more
complex security system that has always taken me two or three tries to
get right (and I still seem to have one application that runs from the
admin account, but gives me a REGISTRY error from my user account).
Do I have to move my Python installation to another directory with write
permissions for normal users? Or is there a simpler way? This might not
be a problem for users with english Windows installations who can get
bitten anyway by the space in "program files". But in my german
installation I never had a reason to install Python outside of "Programme".
I think the default Python install is to use something like
Python2.x as the directory, and to place it in the drive root -- to
avoid problems with the spaces and protected nature of M$ directories.
If I sound vague there, it is because I have an "unused" Plone
installation, and to avoid conflicts between the "all-in-one" Plone and
ActiveState's PythonWin, I installed Plone on my data partition, and
installed ActiveState over Plone's Python (don't ask, I don't remember
how I did that either -- but it is one reason I'm a version or two
behind on both).
-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Aug 12 '05 #2
Sibylle Koczian <Si*************@Bibliothek.Uni-Augsburg.de> wrote:

I've installed Python 2.4 and the win32 extensions, using administrator
rights, under Windows XP in "C:\Programme". As this is a directory
without spaces I didn't expect any problems. But now I can't _use_
win32com as a normal user, because normal users can't write there:


Right. To use win32com, the site-packages\win32com\gen_py directory must
be writable. You shouldn't have to change the whole c:\Programme tree; you
should be able to make just that one subdirectory writable by all.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Aug 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Justin Stockton | last post by:
I recently upgraded from ActivePython 2.2.2 to ActivePython 2.3.2 and I'm running into an issue importing the win32com.client module. Before installing the new version, I made sure to properly...
3
by: RJ | last post by:
Hi, I've been going over the Quick Start to Client side COM and Python and many other sources, but cannot find an example that will get my com/ActiveX .ocx USB device driver imported. The Excel...
1
by: Patrick | last post by:
I am investigating a web-based app wherein I wanted to provide html form frontends to an Excel spreadsheet sitting on a MS Windows server; with each authenticated HTTP user having thier own...
1
by: g.franzkowiak | last post by:
I'm trying to use a proprietary windows software with COM and win32com. The result is everytime the error message com_error: (-2147418113, 'Catastrophic failure', None, None) I've read this in...
5
by: Matt Helm | last post by:
I am using win32com to access a third party COM interface but am having trouble using the string that is returned. The vendor's docs show the following method: HRESULT CookString(BSTR param_a,...
3
by: tyler.schlosser | last post by:
Hi there, I am trying to launch a program called AmiBroker using the command: AB = win32com.client.Dispatch("Broker.Application") However, I have a dual-core CPU and would like to launch two...
4
by: mirandacascade | last post by:
O/S : Win2K vsn of Python: 2.4 Hoping to find information that provide information about error messages being encountered. Pythonwin session: Traceback (most recent call last): File...
1
by: Mark Morss | last post by:
Is this the place to ask a win32com.client question? I am a unix person trying to run on windows, so I have little familiarity with this module. I have this code: import win32com.client ...
2
by: RyanN | last post by:
Greetings, I'm trying to get DispatchWithEvents() to work with HyperAccess (terminal program) without much success. I've done a bunch of searching and found some examples using IE: This works...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.