importing Access 8.0 library

Gillou nospam at bigfoot.com
Mon Oct 15 08:23:39 EDT 2001


Try

makepy "Access.Application"

Or do it through PythonWin IDE

--Gillou

"Piotr Lipski" <arzew at wp.pl> a écrit dans le message news:
e2cbf98c.0110142339.4621de4 at posting.google.com...
> Hi,
> can someone explain to me why the following error occured?
> I'm using Python 2.1.1 (from Activestate).
> Thanks,
> Piotr Lipski
>
> D:\Python21\win32com\client>makepy "Microsoft Access 8.0 Object Library"
> Generating to
D:\Python21\win32com\gen_py\4AFFC9A0-5F99-101B-AF4E-00AA003F0F07x0
> x8x0.py
> Traceback (most recent call last):
>   File "D:\Python21\win32com\client\makepy.py", line 357, in ?
>     rc = main()
>   File "D:\Python21\win32com\client\makepy.py", line 350, in main
>     GenerateFromTypeLibSpec(arg, f, verboseLevel = verboseLevel,
bForDemand = bF
> orDemand, bBuildHidden = hiddenSpec)
>   File "D:\Python21\win32com\client\makepy.py", line 261, in
GenerateFromTypeLib
> Spec
>     gencache.AddModuleToCache(info.clsid, info.lcid, info.major,
info.minor)
>   File "D:\Python21\win32com\client\gencache.py", line 444, in
AddModuleToCache
>     mod = _GetModule(fname)
>   File "D:\Python21\win32com\client\gencache.py", line 468, in _GetModule
>     mod = __import__("win32com.gen_py.%s" % fname)
>   File
"D:\Python21\win32com\gen_py\4AFFC9A0-5F99-101B-AF4E-00AA003F0F07x0x8x0.p
> y", line 6396, in ?
>     class __CodeModule_(CoClassBaseClass): # A CoClass
>   File
"D:\Python21\win32com\gen_py\4AFFC9A0-5F99-101B-AF4E-00AA003F0F07x0x8x0.p
> y", line 6400, in __CodeModule_
>     coclass_interfaces = [
> NameError: name '_CodeModule___IVbaModule_' is not defined





More information about the Python-list mailing list