斯潘8
斯潘4
影响: FME Desktop and Server 2018.1 and greater
python 2.7本身2020年正式退休.幸运的是,我们已经工作了几年,将FME从python 2.7过渡到3.x。从FME 2019开始,我们将开始逐步取消对python 2.7的支持,将其作为FME安装的可选组件。为了详细解释为什么会发生这种变化,please see the More Information section below.
作为这个过程的一部分,the following message dialog will appear when a workspace with a Python Compatibility setting of Python 2.7 containing user-defined Python is opened in Workbench in FME 2018.1+.
打开包含用户定义的python的python兼容设置为python 2.7的工作区时出现的消息对话框。
User-defined Python can occur in one or more of the following places:启动或关闭python脚本,脚本用户参数,一PythonCallertransformer,或APython创建者变压器。
如果出现消息对话框,but user-defined Python cannot be found within the workspace,look within custom transformers for PythonCaller or PythonCreator transformers.请参阅编辑自定义变压器部分。custom transformer documentationfor details.
The following warning is logged when Python 2.7 is loaded in 2018.1+.即使工作区不包含用户定义的Python,也可能出现此警告,因为FME在某些上下文中使用了Python。
加载python 2.7时记录警告。日志消息中的URL将引导您访问本文。
python 2.7将为使用python并且兼容性设置为“2.7”或“2.7或3.4+”的工作区加载。在FME 2019 +中,a setting of "2.7 or 3.4+" will silently load Python 3.4+ if Python 2.7 is not installed.
如果警告被记录,并且工作区中没有用户定义的python,简单地将工作区的pytho亚搏在线n兼容性参数更改为3.4+应该是安全的。
否则,用户有以下选项:
1.将工作区内所有用户定义的python 2代码移植到python 3(推荐)
Change the workspace Python Compatibility parameter after porting to Python 3
2。Ignore message dialog (not recommended)
If a port to Python 3 cannot be done and Python 2.7 is required in FME 2019+,用户应该使用python 2.7组件卸载/重新安装FME。However,强烈建议不要使用python 2.7,因为它将在2020年退役。
FME uses the Python 2.7 interpreter installed by the operating system on Linux and macOS platforms.只要底层操作系统支持,Linux和MacOS的FME将继续支持python 2.7。因此,只要操作系统包含2.7解释器,需要2.7的工作区将继续运行。
仍然建议从Linux和MacOS上的python 2.7迁移为Red Hat 8Ubuntu20.04将删除python 2.7。On macOS,Python 2.7 already has significant limitations compared to other platforms.
python 2.7目前与windows上的FME捆绑在一起。它依赖于Visual Studio 2008(VS2008)运行时(VC90)。which is also bundled with FME.The change in FME's Python 2.7 support is motivated by both Microsoftno longer supportingthe VS2008 runtime and the retirement of Python 2.7.
由于许多大型组织正在制定规则,禁止使用包含已知安全漏洞或不再受支持的软件,bundling 3rd-party libraries that violate these rules can complicate the deployment of FME.
从FME 2019开始,python 2.7将成为Windows的FME安装程序中的可选组件,并且不会安装在默认安装设置中。此更改只会影响使用python的工作区(包括与fme一起提供的基于python的格式和转换器),并且具有python 2.7的兼容性设置。
?2019安全亚搏在线软件公司|合法的