[python-win32] "Could not load file or assembly" using win32com
Tim Roberts
timr at probo.com
Wed Nov 3 18:40:11 CET 2010
Federico Fanton wrote:
> Hi everyone!
>
> I have a Python program that uses win32com to automate a few tasks
> exposed by a C# application (Alibre Design[1]). It used to work nicely,
> but now there's a new version of the application, and upon calling
> win32com.client.Dispatch, an error message appears:
>
> http://i.imgur.com/zgSBJ.png
>
> I tried enabling the log as suggested in the message, and it shows that
>
> LOG: Appbase = file:///C:/Python26
>
> So I tried copying the required files there, and the message goes away...
> Is there a way to tell win32com where to look for assemblies?
Win32com doesn't know anything about assemblies. Assemblies are
strictly a .NET concept. The error suggests that the Alibre application
has not registered its assemblies properly. That would ordinarily be
done when the application installed itself. When you did the upgrade,
did you actually run an installer, or did you just copy new files into
place?
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list