【发布时间】:2019-07-10 16:54:42
【问题描述】:
我刚刚使用来自https://github.com/bunkahle/Transcrypt-Examples/blob/master/alerts/alerts2.py 的简单程序在 Python 3.7 Win7 上尝试了最新的 transcrypt,但出现编译错误:
C:\Python37\Programme\Transcrypt>transcrypt alerts2.py
Transcrypt (TM) Python to JavaScript Small Sane Subset Transpiler Version 3.7.16
Copyright (C) Geatec Engineering. License: Apache 2.0
Saving target code in: C:/Python37/Programme/Transcrypt/__target__/org.transcrypt.__runtime__.js
Saving minified target code in: C:/Python37/Programme/Transcrypt/__target__/org.transcrypt.__runtime__.js
Error while compiling (offending file last):
File 'org.transcrypt.__runtime__', line 0, namely:
[WinError 2] The system cannot find the specified file
Aborted
知道出了什么问题吗?我刚刚得到一个名为__target__ 的目录
其中包含一个名为 org.transcrypt.__runtime__.pretty.js 的文件,但没有任何 alerts2.js。顺便说一句,为什么在 transcrypt 3.7 中将编译目录的 __javascript__ 名称从 transcrypt 3.6 更改为 __target__?
【问题讨论】:
标签: python compilation transcrypt