Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #36710

Re: problems importing from /usr/lib/pyshared/

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 <dadapapa@googlemail.com>
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 <mailman.435.1357974522.2939.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=188.176.143.206; posting-account=pCUH2AoAAAAOKG-ubNYl1cixhUj46ENC
References <e4ea45de-27ee-4531-bcb8-46d6c8846d80@googlegroups.com> <mailman.435.1357974522.2939.python-list@python.org>
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 <dadapapa@googlemail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.452.1358009705.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


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.
> 
> 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.
> 
> 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 added /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, and I am ready to explore the new modules.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

problems importing from /usr/lib/pyshared/ Harold <dadapapa@googlemail.com> - 2013-01-10 08:20 -0800
  Re: problems importing from /usr/lib/pyshared/ Dieter Maurer <dieter@handshake.de> - 2013-01-12 08:08 +0100
    Re: problems importing from /usr/lib/pyshared/ Harold <dadapapa@googlemail.com> - 2013-01-12 08:45 -0800
    Re: problems importing from /usr/lib/pyshared/ Harold <dadapapa@googlemail.com> - 2013-01-12 08:45 -0800

csiph-web