[IronPython] ironpython xna problem

Gigs_ gigs at hi.t-com.hr
Wed Jun 25 21:18:19 CEST 2008


Dino Viehland wrote:
> Is this on a 64-bit machine?  IronPython is a neutral EXE so it'll run at 64-bit on a 64-bit machine and 32-bit on a 32-bit machine.  It looks like XNA is a 32-bit only assembly: http://www.start64.com/index.php?option=com_content&task=view&id=1932&Itemid=114
>
> If this is the problem then the answer is that unfortunately we don't ship a 32-bit ipy.exe.  You could write a simple 32-bit wrapper that does a AppDomain.ExecuteAssembly on ipy.exe though.
>
> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
> Sent: Tuesday, June 17, 2008 9:06 AM
> To: Discussion of IronPython
> Subject: Re: [IronPython] ironpython xna problem
>
> Hello Gigs_,
>
> That error definitely means that IronPython isn't finding the assemblies.
>
> What happens if you copy the XNA assemblies into the same directory as
> the IronPython interpreter and execute the following into the
> interactive interpreter:
>
>
> import clr
>
> clr.AddReference('Microsoft.Xna.Framework')
> clr.AddReference('Microsoft.Xna.Framework.Game')
>
> from Microsoft.Xna.Framework import *
> from Microsoft.Xna.Framework.Graphics import *
> from Microsoft.Xna.Framework.Content import *
>
> Gigs_ wrote:
>   
>> Paul Turbett wrote:
>>     
>>> Are the XNA assemblies in the same directory as your script? I don't
>>> think they are in the GAC, so unless they in the same place as the
>>> ipy script, or a directory in your path, they won't be loaded.
>>>
>>> L8r, Paul
>>>
>>> Gigs_ wrote:
>>>       
>>>> Hi all!
>>>>
>>>>
>>>> i want to run some ironpython xna script, but all the tim im getting
>>>> error. I tried this in c# and it is working, i have installed
>>>> directx runtime, xna studio 2.0 and xna framework. later i tried
>>>> with xna 3.0 and same thing
>>>> this is error:
>>>>
>>>> Could not load file or assembly 'Microsoft.Xna.Framework,
>>>> Version=2.0.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d'
>>>> or one of its dependencies. The system cannot find the file specified.
>>>>
>>>> import clr
>>>>
>>>> clr.AddReference('Microsoft.Xna.Framework')
>>>> clr.AddReference('Microsoft.Xna.Framework.Game')
>>>>
>>>> from Microsoft.Xna.Framework import *
>>>> from Microsoft.Xna.Framework.Graphics import *
>>>> from Microsoft.Xna.Framework.Content import *
>>>>
>>>> class MyGame(Game):
>>>>    def __init__(self):
>>>>        self.spriteX = self.spriteY = 0
>>>>        self.spriteSpeedX = self.spriteSpeedY = 1
>>>>        self.initializeComponent()     def initializeComponent(self):
>>>>        self.graphics = GraphicsDeviceManager(self)
>>>>        self.content = ContentManager(self.Services)
>>>> ...
>>>>
>>>>
>>>> Can someon help me with this_ thanks!
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.ironpython.com
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>>>         
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.ironpython.com
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>>> __________ Information from ESET NOD32 Antivirus, version of virus
>>> signature database 3194 (20080617) __________
>>>
>>> The message was checked by ESET NOD32 Antivirus.
>>>
>>> http://www.eset.com
>>>
>>>
>>>
>>>       
>> thez are in the gac, and when i copy them to working dir nothing
>> change. i will blow, i really need ironpython for xna for testing
>> _______________________________________________
>> Users mailing list
>> Users at lists.ironpython.com
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>     
>
>
> --
> http://www.ironpythoninaction.com/
> http://www.theotherdelia.co.uk/
> http://www.voidspace.org.uk/
> http://www.ironpython.info/
> http://www.resolverhacks.net/
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 3194 (20080617) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
>   
i think that this will work. I will download ironpython 1.1 source and 
build it for x86 platform.



More information about the Ironpython-users mailing list