This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dmitry.Sivachenko
Recipients Dmitry.Sivachenko, eric.araujo, tarek
Date 2013-04-05.14:31:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The following problem exists in python3.3.0 and python3.3.1rc1.

From the command line it works:

root@dhcp175-40-red:~ # python3
Python 3.3.1rc1 (default, Apr  5 2013, 18:03:56) 
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd10
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils.util import byte_compile

From script it hangs:
root@dhcp175-40-red:~ # cat /tmp/ 
from distutils.util import byte_compile
files = [

byte_compile(files, optimize=1, force=None,
             prefix=None, base_dir=None,
             verbose=1, dry_run=0,

# python3 /tmp/
--> Now it hangs forever, if I press Ctrl+D, I get:
Traceback (most recent call last):
  File "/tmp/", line 1, in <module>
    from distutils.util import byte_compile
  File "/usr/local/lib/python3.3/distutils/", line 9, in <module>
    import imp
  File "/usr/local/lib/python3.3/", line 28, in <module>
    import tokenize
  File "/usr/local/lib/python3.3/", line 37, in <module>
    __all__ = token.__all__ + ["COMMENT", "tokenize", "detect_encoding",
AttributeError: 'module' object has no attribute '__all__'
Date User Action Args
2013-04-05 14:31:26Dmitry.Sivachenkosetrecipients: + Dmitry.Sivachenko, tarek, eric.araujo
2013-04-05 14:31:26Dmitry.Sivachenkosetmessageid: <>
2013-04-05 14:31:26Dmitry.Sivachenkolinkissue17640 messages
2013-04-05 14:31:25Dmitry.Sivachenkocreate