You have to have a version of CPython installed such as v2.5 (for IronPython 2.0) or v2.6 (for IronPython 2.6).
>From IronPython: import sys sys.path.append(r'\c:\python25\lib') # adjust to whatever version of CPython you have installed. import urllib From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Marty Nelson Sent: Monday, June 29, 2009 1:55 PM To: Discussion of IronPython Subject: [IronPython] FW: IronPython question Using the Iron Python libraries for extensibility in a C# app, what do we need to do to make the Python module loadable? Quick question: I am trying to use a built-in Python module (not .NET) in a SN script, and I am not sure how to reference it. I tried: import urllib and I am getting: Symyx.Framework.Scripting.ScriptExecutionException: Exception executing script 'test.toolbarItem1'. No module named urllib ---> IronPython.Runtime.Exceptions.ImportException: No module named urllib Is it possible to use Python built-in modules? ======= Notice: This e-mail message, together with any attachments, contains information of Symyx Technologies, Inc. or any of its affiliates or subsidiaries that may be confidential, proprietary, copyrighted, privileged and/or protected work product, and is meant solely for the intended recipient. If you are not the intended recipient, and have received this message in error, please contact the sender immediately, permanently delete the original and any copies of this email and any attachments thereto.
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com