Message186084
| 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 |
<1365172286.35.0.207252264643.issue17640@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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/comp.py
from distutils.util import byte_compile
files = [
'/usr/local/lib/python3.3/site-packages/yaml/__init__.py',]
byte_compile(files, optimize=1, force=None,
prefix=None, base_dir=None,
verbose=1, dry_run=0,
direct=1)
# python3 /tmp/comp.py
--> Now it hangs forever, if I press Ctrl+D, I get:
Traceback (most recent call last):
File "/tmp/comp.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__ = token.__all__ + ["COMMENT", "tokenize", "detect_encoding",
AttributeError: 'module' object has no attribute '__all__' |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年04月05日 14:31:26 | Dmitry.Sivachenko | set | recipients:
+ Dmitry.Sivachenko, tarek, eric.araujo |
| 2013年04月05日 14:31:26 | Dmitry.Sivachenko | set | messageid: <1365172286.35.0.207252264643.issue17640@psf.upfronthosting.co.za> |
| 2013年04月05日 14:31:26 | Dmitry.Sivachenko | link | issue17640 messages |
| 2013年04月05日 14:31:25 | Dmitry.Sivachenko | create |
|