Comments and answers for "FME @Python could not obtain a session object Requested STA Command not found: Python" https://knowledge.亚搏在线safe.com/questions/76981/fme-1.html The latest comments and answers for the question "FME @Python could not obtain a session object Requested STA Command not found: Python" Answer by hollyatsafe https://knowledge.safe.com/answers/86196/view.html

你好@alex_chris@ tmackay97@virtualcitymatt@ anteboy65

I am pleased to say the issue associated with this error has now been resolved and the fix is available in our latest release 2018.1.1.1 b18586 which is available from亚搏在线safe.com/downloads.

Please reach out to Safe Support if you have any issues with this.

Thu, 31 Jan 2019 17:52:25 GMT hollyatsafe
Comment by anteboy65 on anteboy65's comment https://knowledge.safe.com/comments/84509/view.html

你好 @hollyatsafe,

I can confirm that each one of the subscripts contains both a python startup script as well as a PythonCaller.Is that a problem do you think?

We will report this as a problem.


/Anders



Thu, 20 Dec 2018 10:33:02 GMT anteboy65
Comment by hollyatsafe on hollyatsafe's comment https://knowledge.safe.com/comments/84503/view.html

你好@ anteboy65

Please could you在此报告这是一个问题and include the following information.

  • 在FMEServerJobSubmitter哪些参数提交设置 - 如果改变这些不错误仍时有发生?
  • 你能否确认每个工作区中运行既具有Python的启动脚本以及实际工作空间内使用PythonCaller /造物主?(我想我理解正确吗?)
  • 请包括fmeprocessmonitorengine.log和fmeserver.log以及两者的成功和失败的子作业,以及父记录作业日志。
Thu, 20 Dec 2018 09:58:54 GMT hollyatsafe
Comment by anteboy65 on anteboy65's comment https://knowledge.safe.com/comments/84449/view.html

你好!

Any solution to this so far?

We're experience almost the same thing but with a slightly different message.This on says:

只有1个会话对象可在过程中存在
PythonCaller_8(PythonFactory):PythonFactory无法处理功能


We merge from FME 2015.1 to FME 2018.1 and have moved the scripts with FME Workbench 2015.1 to the FME 2018 server.

Our script is a startscript which call several subscripts with FMEServerJobSubmitter.Scripts number 2 & 3 are more or less identical where script #2 runs ok but #3 fails.If we change the order in the startscript so that script #3 are called before #2, then #2 fails.The last script fails!好像有一些打开的句柄(?)的标#2,在下面的脚本创建错误。

我们也可以看到,如果脚本执行失败,日志缺少关于加载什么Python解释器的信息。

Wed, 19 Dec 2018 15:03:41 GMT anteboy65
Comment by lauraatsafe on lauraatsafe's comment https://knowledge.safe.com/comments/83947/view.html

你好@ tmackay97

我很遗憾听到你碰到的这个!你能不能请通过此表单创建与我们的支持案例:https://www.亚搏在线safe.com/support/report-a-problem/我们可以帮助您进一步调查这个问题。

Thu, 06 Dec 2018 19:05:15 GMT lauraatsafe
Comment by tmackay97 on tmackay97's answer https://knowledge.safe.com/comments/83912/view.html

嗨,我们也有这个问题。我们正试图迁移2016至2018年,并拥有大部分事情上2018,但几个都出现了这个错误,导致我们无法完成迁移。我们正在使用的客户端2018.1(FME(R)2018.1.0.0(20180717 - 建造18520 - WIN64)和2018.1服务器(在同一时间都下载)并已设置蟒蛇兼容性2.7或3.4。该作业将运行正常了一段时间,然后失败,以下情况:有时反复

任何帮助/变通办法将不胜感激

Python的error.txt

@Python无法获得会话对象

请求STFICommand未发现:Python的

Thu, 06 Dec 2018 05:27:13 GMT tmackay97
Answer by virtualcitymatt https://knowledge.safe.com/answers/79336/view.html

I've changed the workspace to be compatible with both Python 3 or Python 2.7.If it was a problem with the engine and the python version being loaded then this should solve the problem.Note that the Desktop version which uploaded to the server was a few builds ahead of the Server build.So I can't say that the difference in FME version was not the root of the problem.

Wed, 26 Sep 2018 12:57:01 GMT virtualcitymatt
Comment by gerhardatsafe on gerhardatsafe's comment https://knowledge.safe.com/comments/79142/view.html 你好 @virtualcitymatt, can you attach a full log file with the error message?I also assume that in your case the machine is running on windows and there is no difference in the build of FME Server & Desktop?
One thing to check could be the Python Compatibility parameter.Is it similar for all jobs that are failing?This could at least give away if it's related to this.You can also check in the fmeprocesingmonitor.log file if you see messages reporting a python mismatch.This is usually expected if you run workspaces requiring different python versions, but it could be another hint.
Mon, 24 Sep 2018 14:00:37 GMT gerhardatsafe
Comment by virtualcitymatt https://knowledge.safe.com/comments/79139/view.html 你好 @alex_chris

Have you got any update on this?I'm seeing the same error with FME Server 2018.1.
Python version 2.7.
Ours is also inconsistent.In the cases where it works I can see the following line near the top of the log:
|INFORM| Using Python interpreter from `C:\Program Files\FMEServer\Server\fme\fmepython27\python27.dll' with PYTHONHOME `C:\Program Files\FMEServer\Server\fme\fmepython27' |INFORM| Python version 2.7 loaded successfully
When it fails those lines aren't present.This makes me think it's somehow liked to the python interpreter? @GerhardAtSafe- any other ideas.
I know in FME 2018.1 on desktop I see a warning about 2.7 python support being reduced.Any chance this is related?
Mon, 24 Sep 2018 11:54:07 GMT virtualcitymatt
Answer by gerhardatsafe https://knowledge.safe.com/answers/77155/view.html

你好@alex_chris

Can you try to publish the workspaces to FME Server with an FME Desktop version of the same build as FME Server (18528) or upgrade the FME Server on FME Cloud to build 18258 and retry to run the workspaces?Since you are using a newer build to author & publish the workspaces there is no guarantee that you are not using a functionality of FME that is not available in the version of FME Server that you are using.

Please let us know how this goes!

Fri, 24 Aug 2018 23:06:21 GMT gerhardatsafe