473,511 Members | 17,577 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with loading win32com.client in ActivePython 2.3.2

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 remove old
version (as well as the mx libraries I had installed). I then
installed the new version as a user with the Administrator role. I
know I'm technically not supposed to install to a directory with a
space in the name, but it worked fine for ActivePython 2.2.2.

I've included the error message that I get when attempting to import
the win32com.client module.

ActivePython 2.3.2 Build 231 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 6 2003, 10:18:20) [MSC v.1200 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
import win32com.client Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\Program Files\ActiveState\Python\Lib\site-packages\win32com\client\__
init__.py", line 12, in ?
import dynamic, gencache, pythoncom
File "C:\Program Files\ActiveState\Python\Lib\site-packages\win32com\client\ge
ncache.py", line 623, in ?
__init__()
File "C:\Program Files\ActiveState\Python\Lib\site-packages\win32com\client\ge
ncache.py", line 52, in __init__
Rebuild()
File "C:\Program Files\ActiveState\Python\Lib\site-packages\win32com\client\ge
ncache.py", line 610, in Rebuild
_SaveDicts()
File "C:\Program Files\ActiveState\Python\Lib\site-packages\win32com\client\ge
ncache.py", line 57, in _SaveDicts
raise RuntimeError, "Trying to write to a readonly gencache
('%s')!" \
RuntimeError: Trying to write to a readonly gencache
('C:\DOCUME~1\shiloh\LOCALS
~1\Temp\gen_py\2.3')!

Now the part that weirds me out, is that even though import
win32com.client throws an error, I can do the following.
from win32com import client


So I know that everything should be installed correctly.
I'm hoping that someone has seen this before, and can help me out.
Thanks in advance for any help with this issue that is currently
driving me nuts.

- Justin
Jul 18 '05 #1
1 5164
[Justin Stockton wrote]
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.
Justin,

You are right, I see this as well. And the problem is not because you
used a space in your install path. I have opened a bug for this problem
and will be looking at it very soon:
http://bugs.activestate.com/ActivePy...g.cgi?id=28173
Feel free to add yourself to the CC list for this bug to get an update
when it is fixed.

Note that you are using Build 231 which I haven't actually announced
yet ;). Build 231 upgraded ActivePython's included PyWin32/win32all to
its latest build and obviously I have not sorted out all the issues
there yet.

If you do not depend on having the very latest PyWin32, you may have
more luck with the previous ActivePython 2.3.2 build (Build 230) which
you can find here:
ftp://ftp.activestate.com/ActivePyth...win32-ix86.msi
Now the part that weirds me out, is that even though import
win32com.client throws an error, I can do the following.
from win32com import client


Actually, that is just a side-effect of the "win32com" module being
_partially_ imported. Python will not try again the second time around.
If you start a new shell and then run that again:

from win32com import client

you will get the same error.

http://aspn.activestate.com/ASPN/doc...es-this-happen

Cheers,
Trent

--
Trent Mick
Tr****@ActiveState.com

Jul 18 '05 #2

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

Similar topics

3
2074
by: T.T.H. | last post by:
Hi I am coding a C++ COM object which I want to access in Python. For that I do have some detail questions and need help since I am not that familiar with the documentation itself of Python and...
1
3854
by: Marc | last post by:
Hello, I've fiddled with this for quite a while and thought I had the problem solved. I had a version that would successfully compile and run. But then I had to change the code to use a...
0
1495
by: ccahoon | last post by:
Traceback (most recent call last): File "windowedfax.py", line 223, in OnClick self.iexplore = DispatchWithEvents("InternetExplorer.Application", eventHandling) File...
1
3230
by: Martin Stettner | last post by:
Hi, when trying to generate the wrapper classes for Microsofts ADO Library (Version 2.8) with makepy, I run into the following problem. Here's what I do (I use ActiveState Python 2.4.1.245) ...
2
2059
by: Alexander Eisenhuth | last post by:
Hello together, My system: ActivePython 2.4.1 Windows XP I write a COM Server in VC++ 6.0 using ATL. So far so good. While I develop I got sometimes strange behaviour with makepy utility....
1
3690
by: koia | last post by:
Hi, I have a problem with adding attributes to a Line in an Excel drawing using the Python win32com interface. From recording in Excel I get the Macro: Sub Makro1()...
3
2164
by: Aleksandar Cikota | last post by:
Hi all, I have a problem with threading. The following part should be running in a main programm all the time, but so that the main programm also works (like 2 seperate programms, but in one)...
2
4670
by: Aleksandar Cikota | last post by:
Hi all, I have a problem with openning of an image. Here is the Code: from Tkinter import * from PIL import Image, ImageTk from win32com.client import gencache import tkMessageBox
1
8175
by: korean_dave | last post by:
Hi. Where can i find the API for this extension? Sourceforge only has downloads. Python has stopped supporting the upkeep of the versions. Thanks.
0
7144
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7427
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5671
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1577
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.