<div dir="ltr">To expand on this just a little, CPython implements the module &quot;_struct&quot; in C and implementes the module &quot;struct&quot; in Python. &nbsp;As we&#39;re both aiming for parity with CPython in these matters and now redistributing the standard Python library, we changed our implementation to be _struct-compatible.<div>
<br></div><div>Bottom line: you need to use struct.py from the standard Python libs.<br><br><div class="gmail_quote">On Fri, Sep 5, 2008 at 2:26 PM, Dino Viehland <span dir="ltr">&lt;<a href="mailto:dinov@microsoft.com">dinov@microsoft.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Can you import _struct? &nbsp;We recently did the work to get this compliant w/ 2.5.<br>
<div><div></div><div class="Wj3C7c"><br>
-----Original Message-----<br>
From: <a href="mailto:users-bounces@lists.ironpython.com">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com">users-bounces@lists.ironpython.com</a>] On Behalf Of Dan Eloff<br>

Sent: Friday, September 05, 2008 2:23 PM<br>
To: Discussion of IronPython<br>
Subject: [IronPython] sdlsdk-0.3.0 - cannot import struct?<br>
<br>
I downloaded sdlsdk-0.3.0 and replaced the .dlls in the silverlight<br>
folder (C:\Program Files (x86)\Microsoft<br>
SDKs\Silverlight\v2.0\Libraries\Client) with the ones from the<br>
sdlsdk/bin folder. I created an app.py file with just &quot;import struct&quot;.<br>
This fails: ImportError: No module named struct<br>
<br>
I guess that the sdlsdk IronPython is pretty badly broken (or is built<br>
with an internal, version of silverlight, not beta2?)<br>
<br>
If I can resolve the build errors for Silverlight Relese for the<br>
lastest IronPython source dump, will this work, or will I still be<br>
unable to import struct?<br>
<br>
What can I do to move forward here?<br>
<br>
Thanks,<br>
-Dan<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
</div></div></blockquote></div><br></div></div>