pyton y acces

Soul soulkiller en teleline.es
Mar Mayo 11 20:44:21 CEST 2004


Necesito acceder a ficheros de acces desde python.He estado investigando un poco y he visto que con el win32com se puede pero me da el siguiente error al ejecutar estas instrucciones:

IDLE 1.0.2      
>>> import win32com.client
>>> e=win32com.client.Dispatch("DAO.DBEngine.35")

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in -toplevel-
    e=win32com.client.Dispatch("DAO.DBEngine.35")
  File "C:\ARCHIV~1\PYTHON23\Lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch
    dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
  File "C:\ARCHIV~1\PYTHON23\Lib\site-packages\win32com\client\dynamic.py", line 91, in _GetGoodDispatchAndUserName
    return (_GetGoodDispatch(IDispatch, clsctx), userName)
  File "C:\ARCHIV~1\PYTHON23\Lib\site-packages\win32com\client\dynamic.py", line 79, in _GetGoodDispatch
    IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
com_error: (-2147221005, 'Cadena clase no v\xe1lida', None, None)
>>> 


Si alguien tiene alguna idea le estaria muy agradecido

Soul




Más información sobre la lista de distribución Python-es