Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'cpython': 0.05; 'interpreter': 0.05; 'that?': 0.05; 'modified': 0.07; 'framework.': 0.09; 'subject:into': 0.09; 'subject:modules': 0.09; 'works.': 0.09; 'python': 0.11; 'bug': 0.12; '2.7': 0.14; 'ironpython': 0.16; 'subject:IronPython': 0.16; 'extensions': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; 'dependent': 0.19; 'help.': 0.21; 'import': 0.22; 'to:name:python- list@python.org': 0.22; "aren't": 0.24; 'header:In-Reply-To:1': 0.27; 'moved': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'file': 0.32; 'run': 0.32; 'received:209.85': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'doing': 0.36; 'hi,': 0.36; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'issue': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'tracking': 0.61; 'iron': 0.68; 'jul': 0.74; 'forced': 0.84; '2013': 0.98 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=NzRJSn5wucBkfO0hiuh1HLELBb2ePlysWqayKAcMf4Q=; b=N4pZ/jjrOu7RDJqOsH5rlaNKr88j0MGVK2zP7T0BTYexoO98Sgfmb34vK8QnZb0ae+ Itf6t2FKmb5yM6YvwvAfvu/fC6g5HlMLQtRhqZStQu8BEw5Of/Dpe4hKvBsbHPlY/Pa6 ZyZjRUTzJBQDmvn+3QZNcZ6vTwqU8Tvw1bUe3Z7Pc+Y5/fFs2v7VSr8sKs58N/44G80W HAMBYM9+Z1xtgesg7F0MDaZTGaTxUXWt/hw5J1D41Or8BhFpXsdt5G8Tn255sSEh3+vM TczhaZcWUmGexn9m7gXWbnexP3haqFhuzqM5cIAu2Hkt4YttyJ2oElH1Jz7nYcdX1laq zukQ== X-Received: by 10.60.150.231 with SMTP id ul7mr3124260oeb.87.1372892666140; Wed, 03 Jul 2013 16:04:26 -0700 (PDT) X-Received: by 10.60.150.231 with SMTP id ul7mr3124254oeb.87.1372892666049; Wed, 03 Jul 2013 16:04:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Benjamin Kaplan Date: Wed, 3 Jul 2013 16:04:05 -0700 Subject: Re: Importing modules into IronPython To: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQlAdjRZ30JmP6gxqXpX4N3UQXP7wLB48NishLm1CEr9TSiNY2CxHN6m/3wwDhrV0L4IQPGWwBbj79d2F5cbCYEfyuLClc8jPOa5GD0Co9xQG3DnafYNX4mKcL3JTNWjjGMrrT645bFymBDoDPqb1Zg8+lj6fw== X-Junkmail-Whitelist: YES (by domain whitelist at mpv1.tis.cwru.edu) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372892670 news.xs4all.nl 15954 [2001:888:2000:d::a6]:39323 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49784 On Wed, Jul 3, 2013 at 3:05 PM, HighBeliever wrote: > Hi, I have to shift a Python 2.7 program to run in Windows. Doing that has forced me to use IronPython because my program is dependent on a .dll file that uses .NET framework. > > I moved all my code to Iron Python and modified it to work with the dll. But I cant import PyQt4 module into the project. Is there a way I can do that? Please Help. > -- Generally, extensions that aren't pure Python can only be used with the interpreter they were designed for. There has been some attempt to get CPython extensions working under IronPython (there's a tracking issue on IronPython's bug tracker- http://ironpython.codeplex.com/workitem/11333), but I don't know how well it works.