在MacOS High Sierra和Python 3.7上安装Transcrypt之后,当我尝试运行示例脚本(transcrypt -b -m hello.py)时,我收到以下消息。在Windows 7计算机上安装时,我也会收到类似的消息:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/transcrypt", line 11, in <module>
load_entry_point('Transcrypt==3.6.101', 'console_scripts', 'transcrypt')()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2693, in load_entry_point
return ep.load()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2324, in load
return self.resolve()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2330, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/transcrypt/__main__.py", line 53, in <module>
from org.transcrypt import compiler
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/transcrypt/modules/org/transcrypt/compiler.py", line 2300
self.visit_FunctionDef (node, async = True)