[IronPython] MissingMemberException but it definitely exists
Michael Foord
fuzzyman at voidspace.org.uk
Mon Sep 7 23:30:24 CEST 2009
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
More information about the Ironpython-users
mailing list