[IronPython] MissingMemberException but it definitely exists

Bob Uva robertuva at gmail.com
Mon Sep 7 15:08:09 PDT 2009


Michael,

Saw your tweets about the Silverlight woes. Hope to avoid those
problems when I follow in your footsteps soon. I'm going to a
Silverlight one-day event in Redmond next week and would like to try
some IronPython - Silverlight stuff before I get there.

Bob

On Mon, Sep 7, 2009 at 3:05 PM, Michael Foord<fuzzyman at voidspace.org.uk> wrote:
> Bob Uva wrote:
>>
>> 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.
>>
>
> Odd. Not a problem I've ever had - but I've had my own frustrations with
> IronPython and Silverlight in the last couple of days (Silverlight calling
> my event handlers about a thousand times and even with the events unhooked -
> switching from instance methods to functions worked but screwed up my app
> architecture).
>
> Michael
>
>> 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
>>>
>>>
>>
>>
>>
>>
>
>
> --
> 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 Users mailing list