From owner-freebsd-python@FreeBSD.ORG Sat Jun 23 07:50:07 2012 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CBE3210656D3 for ; Sat, 23 Jun 2012 07:50:07 +0000 (UTC) (envelope-from jesper.schmitz.mouridsen@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8CB368FC1D for ; Sat, 23 Jun 2012 07:50:07 +0000 (UTC) Received: by obbun3 with SMTP id un3so4008435obb.13 for ; Sat, 23 Jun 2012 00:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2/aglhF1NC9ymZ4dMuYWKN1KPujBvDNrxFN1mHTlkeY=; b=AyBQOJj4ELB44o+dxEHfNz5OI/6ROMsKnqglHti6JTQsOERBCJ6mic0Xu7rivnc1ud XEcN7cozrdfteBf50i/23uc1y5NZ+i/73YwX6axTmsuY7ICWgGBClG8jnddxw9hggC7n Zv5M+wWfPvpgRCE6u/Ees2mGTfE6E6eBWqmRyGWfYlkEoYDdKI/Je8eU918Oxu/bZXpr 6CFCmasUFEd6OW9EfRQ/uBRYrC0z1yT+TvZk1Y5HPKH7bJLrmXkLV4zhkcdo/LPuTeus cepSl0Ad8XpevcjlfWr064NOq+nvKtEzYY49jby8u5wtO+S67uRbpl+pb5Aynin3ydNn gkag== MIME-Version: 1.0 Received: by 10.182.207.39 with SMTP id lt7mr4819344obc.67.1340437807150; Sat, 23 Jun 2012 00:50:07 -0700 (PDT) Received: by 10.76.81.133 with HTTP; Sat, 23 Jun 2012 00:50:07 -0700 (PDT) Date: Sat, 23 Jun 2012 09:50:07 +0200 Message-ID: From: Jesper Schmitz Mouridsen To: python@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: twisted/internet gtk2reactor.py issue. (breaks for instance deluge); X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2012 07:50:07 -0000 Hello maintainers of python. I'm using python27 from ports (upgraded) This is an issue with gtk2reactor.py running # import gobject from twisted.internet import gtk2reactor reactor = gtk2reactor.install() # gives : /usr/local/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception from gtk import _gtk ImportError: No module named gi SOLUTION ?? : editing twisted/internet/gtk2reactor.py from _glibbase.ensureNotImported( ["gi"], "Introspected and static glib/gtk bindings must not be mixed; can't " "import gtk2reactor since gi module is already imported.", /*--*/ preventImports=["gi"]) /+++/ preventImports=[""]) makes deluge work..... Regards. Jesper Schmitz Mouridsen, Denmark.