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


Groups > comp.lang.python > #36710

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

Newsgroups comp.lang.python
Date 2013-01-12 08:45 -0800
References <e4ea45de-27ee-4531-bcb8-46d6c8846d80@googlegroups.com> <mailman.435.1357974522.2939.python-list@python.org>
Subject Re: problems importing from /usr/lib/pyshared/
From Harold <dadapapa@googlemail.com>
Message-ID <mailman.452.1358009705.2939.python-list@python.org> (permalink)

Show all headers | 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