Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Aug 2013 17:28:08 +0400
From:      Dmitry Sivachenko <trtrmitya@gmail.com>
To:        "python@FreeBSD.org" <python@freebsd.org>
Subject:   Unable to install pt-distribute on FreeBSD-current with python3
Message-ID:  <13507354-54C6-4CC3-9F48-E0E962BE7F9D@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

--Apple-Mail=_B4F44D1A-9D7A-4222-958F-C0D52AFC0C2D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hello!

I am using FreeBSD-current with python3.3 compiled from ports.
When I try to install py-distribute modules, installation script hangs:

byte-compiling =
build/bdist.freebsd-10.0-CURRENT-amd64/egg/setuptools/tests/test_upload_do=
cs.py to test_upload_docs.cpython-33.pyc
byte-compiling =
build/bdist.freebsd-10.0-CURRENT-amd64/egg/setuptools/tests/__init__.py =
to __init__.cpython-33.pyc
byte-compiling =
build/bdist.freebsd-10.0-CURRENT-amd64/egg/_markerlib/markers.py to =
markers.cpython-33.pyc
byte-compiling =
build/bdist.freebsd-10.0-CURRENT-amd64/egg/_markerlib/__init__.py to =
__init__.cpython-33.pyc
writing byte-compilation script '/tmp/tmpj9wdmz.py'
/usr/local/bin/python3.3 -O /tmp/tmpj9wdmz.py

<hangs forever>

top(1) shown that python3.3 process is in ttyin state:
63174 root            1  52    0 25096K  8540K ttyin   1   0:00   0.00% =
python3

If I run /usr/local/bin/python3.3 -O /tmp/tmpj9wdmz.py command manually, =
it also hangs.

I am attaching tmpj9wdmz.py script.  If I press Ctrl+D while it waits, I =
get the following:

Traceback (most recent call last):
  File "/tmp/tmpj9wdmz.py", line 1, in <module>
    from distutils.util import byte_compile
  File "/usr/local/lib/python3.3/distutils/util.py", line 9, in <module>
    import imp
  File "/usr/local/lib/python3.3/imp.py", line 28, in <module>
    import tokenize
  File "/usr/local/lib/python3.3/tokenize.py", line 37, in <module>
    __all__ =3D token.__all__ + ["COMMENT", "tokenize", =
"detect_encoding",
AttributeError: 'module' object has no attribute '__all__'


Anyone else can reproduce that?  (Only with python3 and FreeBSD-10)

Thanks!



--Apple-Mail=_B4F44D1A-9D7A-4222-958F-C0D52AFC0C2D--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13507354-54C6-4CC3-9F48-E0E962BE7F9D>