From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Matthias Klose <doko@ubuntu.com>
Cc: "libstdc++@gcc.gnu.org" <libstdc++@gcc.gnu.org>,
"gcc-patches@gnu.org" <gcc-patches@gnu.org>,
Siva Chandra Reddy <sivachandra@google.com>
Subject: Re: [patch, libstdc++] Use explicit relative imports for the pretty printers
Date: Fri, 27 Feb 2015 21:52:00 -0000 [thread overview]
Message-ID: <CAH6eHdTM17-hDPg0FL8yXHfFQ8mUPkOd6HCiEkRztxjJR1svuQ@mail.gmail.com> (raw)
In-Reply-To: <54EE2EED.6050602@ubuntu.com>
On 25 February 2015 at 20:22, Matthias Klose wrote:
> When gdb is linked/used with Python 3, import of the pretty printers fails:
>
> Traceback (most recent call last):
> File
> "/usr/share/gdb/auto-load/usr/lib/i386-linux-gnu/libstdc++.so.6.0.21-gdb.py",
> line 58, in <module>
> import libstdcxx.v6
> File
> "/usr/lib/i386-linux-gnu/../../share/gcc-5/python/libstdcxx/v6/__init__.py",
> line 19, in <module>
> from printers import register_libstdcxx_printers
> ImportError: No module named 'printers'
> [Inferior 1 (process 6130) exited normally]
>
> Python3 doesn't support implicit relative imports anymore. Use explicit
> relative imports instead. This syntax is compatible with Python 2.5 and newer
> 2.x versions. Ok for the trunk?
OK, thanks.
prev parent reply other threads:[~2015-02-27 21:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-25 21:02 Matthias Klose
2015-02-27 21:52 ` Jonathan Wakely [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAH6eHdTM17-hDPg0FL8yXHfFQ8mUPkOd6HCiEkRztxjJR1svuQ@mail.gmail.com \
--to=jwakely.gcc@gmail.com \
--cc=doko@ubuntu.com \
--cc=gcc-patches@gnu.org \
--cc=libstdc++@gcc.gnu.org \
--cc=sivachandra@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).