gencache.EnsureModule Error

S

Sam Sungshik Kong

Hello!

I use Python for ASP.
When I request a page for the first time in a session, I get an error
message like below.
If I refresh the same page, it doesn't cause any error.

I believe that the error occurs at
def ensuremodule():
gencache.EnsureModule('{00000201-0000-0010-8000-00AA006D2EA4}',0,2,1)
which is for ADO for SQLServer.

Does anybody know why?



Error Type:
Python ActiveX Scripting Engine (0x80020009)
Traceback (most recent call last): File "<Script Block >", line 3, in
Application_OnStart sk.sql.ensuremodule() File "C:\Documents and
Settings\ssk\My Documents\My Codes\Python\library\sk\sql.py", line 102, in
ensuremodule
gencache.EnsureModule('{00000201-0000-0010-8000-00AA006D2EA4}',0,2,1) File
"C:\PROGRA~1\Python23\lib\site-packages\win32com\client\gencache.py", line
385, in EnsureModule module = GetModuleForTypelib(typelibCLSID, lcid, major,
minor) File
"C:\PROGRA~1\Python23\lib\site-packages\win32com\client\gencache.py", line
254, in GetModuleForTypelib AddModuleToCache(typelibCLSID, lcid, major,
minor) File
"C:\PROGRA~1\Python23\lib\site-packages\win32com\client\gencache.py", line
562, in AddModuleToCache _SaveDicts() File
"C:\PROGRA~1\Python23\lib\site-packages\win32com\client\gencache.py", line
62, in _SaveDicts f = open(os.path.join(GetGeneratePath(), "dicts.dat"),
"wb") IOError: [Errno 13] Permission denied:
'C:\\PROGRA~1\\Python23\\lib\\site-packages\\win32com\\gen_py\\dicts.dat'

Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,961
Messages
2,570,131
Members
46,689
Latest member
liammiller

Latest Threads

Top