Discussion:
[Python-Dev] Should 2to3 convert Exceptions from
Lennart Regebro
2012-09-02 20:26:03 UTC
Permalink
Received: from localhost (HELO mail.python.org) (127.0.0.1)
by albatross.python.org with SMTP; 02 Sep 2012 22:26:25 +0200
Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com
[209.85.220.174])
(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
(No client certificate requested)
by mail.python.org (Postfix) with ESMTPS;
Sun, 2 Sep 2012 22:26:25 +0200 (CEST)
Received: by vcbfk26 with SMTP id fk26so4853966vcb.19
for <multiple recipients>; Sun, 02 Sep 2012 13:26:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:cc:content-type;
bh=a+THZdb8hR8vTFRgYYV3/EUX8FDq/jC/Cn9F/BS/yN8=;
b=x9YIiGYmR5eKOgvxsFKVhYWQE3OsTGt9c56X6W4zLlTqFYAJWEkWNwgGhuG4oIyTPl
cqgcYV3Z5S/kRNqUmvBI2Bln+qzArZ4+7P3NRyw3EtOhS2tGLyWB8F4BKgijyqT9Ddav
CGlu7r0+b3b2ReWomJZaoiu8idWIC4WzRLjIZO3eQMs+UuXYj1iNmC/7JMu7vybmwnAY
99Le7+xNpxc0UFSZ21Ntl56S/XY+n6TZnX7ElDVakCZUR7+UHl5eNmyrkA3EL3qpOVXS
Aa0X7/mRjENcXaOuA7Qf5vtoYzTO8QRwLm0O+7EFsisjguzUlKe8bJ5Z9x7csWW2kNMT
9EcQ==
Received: by 10.220.119.198 with SMTP id a6mr10587642vcr.23.1346617584144;
Sun, 02 Sep 2012 13:26:24 -0700 (PDT)
Received: by 10.220.156.65 with HTTP; Sun, 2 Sep 2012 13:26:03 -0700 (PDT)
In-Reply-To: <CAPkN8xLV_k1rrLfmxtQcu_g3LSN-HM_Lc6RpsQ+kxJLLr7ChDw-JsoAwUIsXosN+***@public.gmane.org>
X-BeenThere: python-porting-+ZN9ApsXKcEdnm+***@public.gmane.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "Discussion about porting Python code \(mainly 2.x -> 3.x\)"
<python-porting.python.org>
List-Unsubscribe: <http://mail.python.org/mailman/options/python-porting>,
<mailto:python-porting-request-+ZN9ApsXKcEdnm+***@public.gmane.org?subject=unsubscribe>
List-Archive: <http://mail.python.org/pipermail/python-porting/>
List-Post: <mailto:python-porting-+ZN9ApsXKcEdnm+***@public.gmane.org>
List-Help: <mailto:python-porting-request-+ZN9ApsXKcEdnm+***@public.gmane.org?subject=help>
List-Subscribe: <http://mail.python.org/mailman/listinfo/python-porting>,
<mailto:python-porting-request-+ZN9ApsXKcEdnm+***@public.gmane.org?subject=subscribe>
Errors-To: python-porting-bounces+gcpp-python-porting=m.gmane.org-+ZN9ApsXKcEdnm+***@public.gmane.org
Sender: "Python-porting"
<python-porting-bounces+gcpp-python-porting=m.gmane.org-+ZN9ApsXKcEdnm+***@public.gmane.org>
Archived-At: <http://permalink.gmane.org/gmane.comp.python.porting/301>

Switched from python-dev to python-porting.
I work offline from remote location about 2000m above the sea level. There
is no internet connection here, so I can not use tracker online. I need a
Python editor here, and I have Spyder checkout. The problem is that my
installation has only Python3. I've tried using 2to3 from setup.py
$ sudo python3 setup.py install
stderr.log and stdout.log are attached. Is it the intended behavior?
It is also hard find "Porting Python 2 Code to Python 3" article, because it
is not referenced from "Porting to Python 3.x" chapters.
2to3 has not been run on the code that gives you errors. The traceback
seems incomplete, and gives no indication of where in the install you
get the errors. From the stdout it seems like it just installs the
code without using 2to3.

The only idea I have at this moment i sto make sure that the build
directories are empty.

//Lennart
anatoly techtonik
2012-09-03 20:18:11 UTC
Permalink
Received: from localhost (HELO mail.python.org) (127.0.0.1)
by albatross.python.org with SMTP; 03 Sep 2012 22:18:32 +0200
Received: from mail-lpp01m010-f46.google.com (mail-lpp01m010-f46.google.com
[209.85.215.46])
(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
(No client certificate requested)
by mail.python.org (Postfix) with ESMTPS;
Mon, 3 Sep 2012 22:18:32 +0200 (CEST)
Received: by lagy9 with SMTP id y9so3746767lag.19
for <multiple recipients>; Mon, 03 Sep 2012 13:18:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:cc:content-type;
bh=J/0UZPXvGHx7LGQDWb5eE7Q8jRB2UWSijpji/zvNTAQ=;
b=VkVaLUtlOtMk6rrzrjADm64Ia9PgPg446rpssltqCRNZ1w+SG76wuX64xLBHQOhZPg
elcUwfthNqFCoSYTtz0U4AlxzRTM1fq8Mc9yoFOY1GqLjLNQdAF9REhajcJ/VMpor7Nc
0tAKwig10LNperxu8mCc3dB3BdzmVZfbCWhp0BXLiUdcHWVXPiVLxD2Luxs/77nWOoiy
td8chuKYqMtWkrMzK+ycKtvdwkFyctK4BEyYrXlbUiIcc3AtT3+Xf4YnoCGpKv5xwFbO
55/st/jNthyGbjBeztVrnhuuWIyEiCSMtUYMVrHQmk++5qFZys+ZtQ7PmjMKrw1cfG+N
6iBg==
Received: by 10.152.114.3 with SMTP id jc3mr15055218lab.11.1346703512113; Mon,
03 Sep 2012 13:18:32 -0700 (PDT)
Received: by 10.112.27.197 with HTTP; Mon, 3 Sep 2012 13:18:11 -0700 (PDT)
In-Reply-To: <CAL0kPAWZWtoz=7G++gAKjOfuXgA-Kzj+***@mail.gmail.com>
X-BeenThere: python-***@python.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Python core developers <python-dev.python.org>
List-Unsubscribe: <http://mail.python.org/mailman/options/python-dev>,
<mailto:python-dev-***@python.org?subject=unsubscribe>
List-Archive: <http://mail.python.org/pipermail/python-dev/>
List-Post: <mailto:python-***@python.org>
List-Help: <mailto:python-dev-***@python.org?subject=help>
List-Subscribe: <http://mail.python.org/mailman/listinfo/python-dev>,
<mailto:python-dev-***@python.org?subject=subscribe>
Errors-To: python-dev-bounces+python-python-dev=***@python.org
Sender: "Python-Dev"
<python-dev-bounces+python-python-dev=***@python.org>
Archived-At: <http://permalink.gmane.org/gmane.comp.python.porting/302>
Post by Lennart Regebro
Switched from python-dev to python-porting.
I work offline from remote location about 2000m above the sea level. There
is no internet connection here, so I can not use tracker online. I need a
Python editor here, and I have Spyder checkout. The problem is that my
installation has only Python3. I've tried using 2to3 from setup.py
$ sudo python3 setup.py install
stderr.log and stdout.log are attached. Is it the intended behavior?
It is also hard find "Porting Python 2 Code to Python 3" article, because it
is not referenced from "Porting to Python 3.x" chapters.
2to3 has not been run on the code that gives you errors. The traceback
seems incomplete, and gives no indication of where in the install you
get the errors. From the stdout it seems like it just installs the
code without using 2to3.
The only idea I have at this moment i sto make sure that the build
directories are empty.
Removing build/ directory helped indeed. I wonder why it doesn't
remove them automatically? IIRC there is no incremental build support.
--
anatoly t.
Lennart Regebro
2012-09-03 20:59:26 UTC
Permalink
Post by anatoly techtonik
Post by Lennart Regebro
Switched from python-dev to python-porting.
I work offline from remote location about 2000m above the sea level. There
is no internet connection here, so I can not use tracker online. I need a
Python editor here, and I have Spyder checkout. The problem is that my
installation has only Python3. I've tried using 2to3 from setup.py
$ sudo python3 setup.py install
stderr.log and stdout.log are attached. Is it the intended behavior?
It is also hard find "Porting Python 2 Code to Python 3" article, because it
is not referenced from "Porting to Python 3.x" chapters.
2to3 has not been run on the code that gives you errors. The traceback
seems incomplete, and gives no indication of where in the install you
get the errors. From the stdout it seems like it just installs the
code without using 2to3.
The only idea I have at this moment i sto make sure that the build
directories are empty.
Removing build/ directory helped indeed. I wonder why it doesn't
remove them automatically? IIRC there is no incremental build support.
It doesn't remove them to avoid having to recompile everything
everytime you run it. But it compares timestamps, so if you run build,
and then add the 2to3 support, it will see that all the py-files are
up to date, and not run 2to3 on them.

//Lennart

Loading...