Hi, I''m trying to load an IronPython file in IronRuby (via IronRuby.require) and I get an exception: "Failed to load language ''IronPython 2.6'': type ''IronPython.Runtime.PythonContext'' is not a valid language provider because it does not inherit from LanguageContext". This is thrown from the require method. What am I doing wrong? Thanks, Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20091122/0a6a9981/attachment.html>
Looks like version mismatch. Do you build IronPython from the same sources as IronRuby? You can find compatible binaries here: http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33693 Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Sunday, November 22, 2009 5:04 AM To: ironruby-core Subject: [Ironruby-core] Using IronPython code from IronRuby Hi, I''m trying to load an IronPython file in IronRuby (via IronRuby.require) and I get an exception: "Failed to load language ''IronPython 2.6'': type ''IronPython.Runtime.PythonContext'' is not a valid language provider because it does not inherit from LanguageContext". This is thrown from the require method. What am I doing wrong? Thanks, Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20091122/304d35a5/attachment-0001.html>
You''re right. I had to build IronPython to make it work. I didn''t realize IronPython was part of the source until now :) Thanks! Shay. On Sun, Nov 22, 2009 at 9:22 PM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote:> Looks like version mismatch. Do you build IronPython from the same sources > as IronRuby? > > You can find compatible binaries here: > > http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33693 > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Shay Friedman > *Sent:* Sunday, November 22, 2009 5:04 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] Using IronPython code from IronRuby > > > > Hi, > > I''m trying to load an IronPython file in IronRuby (via IronRuby.require) > and I get an exception: "Failed to load language ''IronPython 2.6'': type > ''IronPython.Runtime.PythonContext'' is not a valid language provider because > it does not inherit from LanguageContext". > > This is thrown from the require method. > > What am I doing wrong? > > Thanks, > Shay. > > -- > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20091122/99926b3c/attachment.html>
IronPython binaries haven''t been uploaded yet. I''ll upload them as soon as I have internet Sent from my HTC ________________________________ From: Shay Friedman <shay.friedman at gmail.com> Sent: Sunday, November 22, 2009 11:44 AM To: ironruby-core at rubyforge.org <ironruby-core at rubyforge.org> Subject: Re: [Ironruby-core] Using IronPython code from IronRuby You''re right. I had to build IronPython to make it work. I didn''t realize IronPython was part of the source until now :) Thanks! Shay. On Sun, Nov 22, 2009 at 9:22 PM, Tomas Matousek <Tomas.Matousek at microsoft.com<mailto:Tomas.Matousek at microsoft.com>> wrote: Looks like version mismatch. Do you build IronPython from the same sources as IronRuby? You can find compatible binaries here: http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33693 Tomas From: ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> [mailto:ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] On Behalf Of Shay Friedman Sent: Sunday, November 22, 2009 5:04 AM To: ironruby-core Subject: [Ironruby-core] Using IronPython code from IronRuby Hi, I''m trying to load an IronPython file in IronRuby (via IronRuby.require) and I get an exception: "Failed to load language ''IronPython 2.6'': type ''IronPython.Runtime.PythonContext'' is not a valid language provider because it does not inherit from LanguageContext". This is thrown from the require method. What am I doing wrong? Thanks, Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20091122/334647af/attachment.html>