[IronPython] MissingMemberException but it definitely exists

Bob Uva robertuva at gmail.com
Tue Sep 8 00:03:03 CEST 2009


I was able to get it working by, piece by piece, recreating the class
in a different file. When I was done I had what looked like exactly
the same source but worked in one file, not the other. Couldn't get
the original to ever work, so I just went with the new one. Pretty
frustrating.

Bob

On Mon, Sep 7, 2009 at 2:30 PM, Michael Foord<fuzzyman at voidspace.org.uk> wrote:
> Bob Uva wrote:
>>
>> I just started using IronPython and am using SharpDevelop as an IDE.
>> I'm creating a REST web service, and have a class that has a function
>> named 'run' in it. When I create an instance of the class and then try
>> calling its run function I get a MissingMemberException saying that
>> the class has no attribute 'run'. This exception is thrown from
>> Microsoft.Scripting.Actions.MatchCaller.Call2. Shown below is the call
>> stack shown in the exception dialog from the IDE. I've even reduced
>> the run function to just calling pass and that doesn't work. Any ideas
>> where to look to debug this further?
>>
>
> Can you reproduce a minimal example - without seeing any code it is
> impossible to have any idea. The first suspect I'm afraid is that the object
> isn't what you think it is and doesn't have a run member.
>
> Michael
>
>> Thanks,
>>  Bob
>>
>> System.MissingMemberException: 'AddressFilesService' object has no
>> attribute 'run'
>>   at Microsoft.Scripting.Actions.MatchCaller.Call2
>>   at
>> Microsoft.Scripting.Actions.CallSite<Microsoft.Func<Microsoft.Scripting.Actions.CallSite,System.Object,Microsoft.Scripting.Runtime.CodeContext,System.Object>>.UpdateAndExecute
>>   at Microsoft.Scripting.Actions.UpdateDelegates.Update2
>>   at DLRCachedCode.<lambda$9>$51
>>   at Microsoft.Scripting.Actions.MatchCaller.Call1
>>   at
>> Microsoft.Scripting.Actions.CallSite<Microsoft.Func<Microsoft.Scripting.Actions.CallSite,System.Object,System.Object>>.UpdateAndExecute
>>   at Microsoft.Scripting.Actions.UpdateDelegates.Update1
>>   at System.Threading.ThreadHelper.ThreadStart_Context
>>   at System.Threading.ExecutionContext.Run
>>   at System.Threading.ThreadHelper.ThreadStart
>>
>>
>
>
> --
> http://www.ironpythoninaction.com/
> http://www.voidspace.org.uk/blog
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>



-- 
Bob Uva
Software Development Consultant
Portland, OR
mobile: 503-810-6387
eMail: robertuva at gmail.com



More information about the Ironpython-users mailing list