Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'incompatible': 0.07; 'skip:/ 10': 0.07; 'python': 0.09; 'modules.': 0.09; 'subject:problems': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'investigate': 0.16; 'changes': 0.20; 'import': 0.21; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'looks': 0.26; 'setting': 0.26; 'forgot': 0.27; 'module.': 0.27; 'subject:/': 0.28; 'fine': 0.28; 'case,': 0.29; '(and': 0.32; 'getting': 0.33; 'web,': 0.33; 'like:': 0.33; 'ubuntu': 0.33; 'problem': 0.33; 'received:google.com': 0.34; 'from:addr:googlemail.com': 0.35; 'path': 0.35; 'problem,': 0.35; 'similar': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'skip:g 30': 0.36; 'thank': 0.36; 'two': 0.37; 'quite': 0.37; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'your': 0.60; 'upgrading': 0.62; 'respect': 0.63; 'fact,': 0.69 Newsgroups: comp.lang.python Date: Sat, 12 Jan 2013 08:45:17 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.176.143.206; posting-account=pCUH2AoAAAAOKG-ubNYl1cixhUj46ENC References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 188.176.143.206 MIME-Version: 1.0 Subject: Re: problems importing from /usr/lib/pyshared/ From: Harold To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: , Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358009705 news.xs4all.nl 6959 [2001:888:2000:d::a6]:35612 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36710 Thank you Dieter, > Ubuntu 12 has introduced important changes with respect to "glib" (and > depending packages). In fact, there are now two quite incompatible > implementations - the old "static" one and a new "dynamic" one. > It looks as if in your case, old and new implementations were mixed. >=20 > I had a similar problem when upgrading to "Ubuntu 12.4". In my case, > it turned out that my (custom) "PYTHONPATH" setting was responsible for > getting into the incompatibility. >=20 > The new way to use "gtk" is via the "gi" (probable "gnome interface") > module. It looks like: > > from gi.repository import Gtk,GdkPixbuf,GObject,Pango,Gdk,Gio I will investigate this gi module. As for my import problem, it turned out = that it was my own fault: following some recommendation on the web, I had a= dded /usr/share/pyshared to the python path in ~/.profile and forgot to log= out and in again after undoing this change. Everything works fine again, a= nd I am ready to explore the new modules.