[python-win32] Invalid number of parameters on makepy-generated method

2010-10-01 Thread Federico Fanton
Hi everyone! I'm trying to automate an operation with Alibre Design (http://www.alibre.com) via COM. It is mostly working, except for a call to a method that accepts a single optional boolean parameter. When I try to call this method, I get an "Invalid number of parameters" exception. Here'

[python-win32] Invalid number of parameters on makepy-generated method

2010-10-01 Thread Federico Fanton
Hi everyone! I'm trying to automate an operation with Alibre Design (http://www.alibre.com) via COM. It is mostly working, except for a call to a method that accepts a single optional boolean parameter. When I try to call this method, I get an "Invalid number of parameters" exception. Here's my

Re: [python-win32] Invalid number of parameters on makepy-generated method

2010-10-04 Thread Federico Fanton
Tim Roberts wrote: It is mostly working, except for a call to a method that accepts a single optional boolean parameter. When I try to call this method, I get an "Invalid number of parameters" exception. Is the exception coming from the InvokeTypes call? Exactly.. I have a new bit of informa

Re: [python-win32] Invalid number of parameters on makepy-generated method

2010-10-06 Thread Federico Fanton
Mark Hammond wrote: ["Invalid number of parameters"] Is the exception coming from the InvokeTypes call? Exactly.. I have a new bit of information though: I noticed that the problem arises ONLY when the controlled application (Alibre) is already running, while if it's not, there's no exception..

[python-win32] "Could not load file or assembly" using win32com

2010-11-03 Thread Federico Fanton
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/zg

Re: [python-win32] "Could not load file or assembly" using win32com

2010-11-04 Thread Federico Fanton
Tim Roberts wrote: 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,