# Re: Using IronPython code from IronRuby

**URL:** <https://www.ruby-forum.com/t/re-using-ironpython-code-from-ironruby/179343>\
**Category:** IronRuby\
**Created:** [November 22, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/re-using-ironpython-code-from-ironruby/179343 "2009-11-22T21:59:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [November 22, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/re-using-ironpython-code-from-ironruby/179343/1 "2009-11-22T21:59:08Z")

</div>

IronPython binaries haven’t been uploaded yet. I’ll upload them as soon  
as I have internet

Sent from my HTC

* * *

From: Shay F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Sunday, November 22, 2009 11:44 AM  
To: removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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 M.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
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](http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33693)

Tomas

From:  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
On Behalf Of Shay F.  
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 F.  
Author of IronRuby Unleashed  
[http://www.IronShay.com](http://www.IronShay.com)  
Follow me: [http://twitter.com/ironshay](http://twitter.com/ironshay)

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

–
