Dell Boomi应用程序(atom.exe)找不到python解释器
此错误与Dell Boomi有关,但我认为根本原因更一般,这就是我决定将其发布在此处的原因 我正在探索程序命令形状,以了解它是如何工作的以及它的局限性。到目前为止,我成功地执行了bat、vbs和jar文件(尽管最后两个文件是在实际路径\命令之前实现了“cmd/c”,即“cmd/c:\Users\UserX\Desktop\Boomi\hi.jar”) 我想下一步执行python,但遇到了一个“找不到默认python”的问题。现在,在您回答“set environment variable”之前,我已经说明了用户变量和系统变量的路径都是python.exe。当我打开命令提示符时,我可以从任何地方执行脚本(hi.py),包括安装atom的文件夹,这是atom的上下文 当我将python启动器设置为调试模式(PYLAUNCHER_debug=1)时,在命令提示符下运行时,会得到以下转储:Dell Boomi应用程序(atom.exe)找不到python解释器,python,boomi,Python,Boomi,此错误与Dell Boomi有关,但我认为根本原因更一般,这就是我决定将其发布在此处的原因 我正在探索程序命令形状,以了解它是如何工作的以及它的局限性。到目前为止,我成功地执行了bat、vbs和jar文件(尽管最后两个文件是在实际路径\命令之前实现了“cmd/c”,即“cmd/c:\Users\UserX\Desktop\Boomi\hi.jar”) 我想下一步执行python,但遇到了一个“找不到默认python”的问题。现在,在您回答“set environment variable”之前,
launcher build: 32bit
launcher executable: Console
File 'C:\Users\UserX\AppData\Local\py.ini' non-existent
Using global configuration file 'C:\Windows\py.ini'
Called with command line: "C:\Users\UserX\Desktop\Boomi\hi.py"
maybe_handle_shebang: read 127 bytes
maybe_handle_shebang: BOM not found, using UTF-8
locating Pythons in 64bit registry
locate_pythons_for_key: C:\Users\UserX\AppData\Local\Programs\Python\Python37-32\python.exe is a 32bit executable
locate_pythons_for_key: C:\Users\UserX\AppData\Local\Programs\Python\Python37-32\PCbuild\win32\python.exe: The system cannot find the path specified.
locate_pythons_for_key: C:\Users\UserX\AppData\Local\Programs\Python\Python37-32\PCbuild\amd64\python.exe: The system cannot find the path specified.
locate_pythons_for_key: C:\Users\UserX\AppData\Local\Programs\Python\Python37-32\PCbuild\python.exe: The system cannot find the path specified.
locate_pythons_for_key: unable to open PythonCore key in HKLM
locating Pythons in native registry
locate_pythons_for_key: C:\Users\UserX\AppData\Local\Programs\Python\Python37-32\python.exe: already found
locate_pythons_for_key: C:\Users\UserX\AppData\Local\Programs\Python\Python37-32\PCbuild\win32\python.exe: The system cannot find the path specified.
locate_pythons_for_key: C:\Users\UserX\AppData\Local\Programs\Python\Python37-32\PCbuild\amd64\python.exe: The system cannot find the path specified.
locate_pythons_for_key: C:\Users\UserX\AppData\Local\Programs\Python\Python37-32\PCbuild\python.exe: The system cannot find the path specified.
locate_pythons_for_key: unable to open PythonCore key in HKLM
found configured value 'python=3.7' in C:\Windows\py.ini
search for default Python found version 3.7 at 'C:\Users\UserX\AppData\Local\Programs\Python\Python37-32\python.exe'
run_child: about to run 'C:\Users\UserX\AppData\Local\Programs\Python\Python37-32\python.exe "C:\Users\UserX\Desktop\Boomi\hi.py" '
child process exit code: 0
正如您所看到的,执行是成功的,但是在Boomi上运行相同的命令(cmd/c set PYLAUNCH_DEBUG=1&c:\Users\UserX\Desktop\Boomi\hi.py)时,这是转储:
Test execution of EES completed with errors.
Embedded message: Return value for program was a non-zero value [103]:
launcher build: 32bit
launcher executable: Console
File 'C:\Windows\system32\config\systemprofile\AppData\Local\py.ini' non-existent
Using global configuration file 'C:\Windows\py.ini'
Called with command line: "C:\Users\UserX\Desktop\Boomi\hi.py"
maybe_handle_shebang: read 127 bytes
maybe_handle_shebang: BOM not found, using UTF-8
locating Pythons in 64bit registry
locate_pythons_for_key: unable to open PythonCore key in HKCU
locate_pythons_for_key: unable to open PythonCore key in HKLM
locating Pythons in native registry
locate_pythons_for_key: unable to open PythonCore key in HKCU
locate_pythons_for_key: unable to open PythonCore key in HKLM
found configured value 'python=3.7' in C:\Windows\py.ini
search for default Python found no interpreter Can't find a default Python.
如您所见,我在C:\Users\UserX\AppData\Local\Programs\Python\Python37-32\Python.exe中找不到默认的解释器
通过比较日志,我猜我不能打开HKCU的钥匙
我进入regedit查看python文件夹的权限,所有帐户都至少有读取权限,因此,除非Boomi使用某种隐藏帐户或临时帐户(我相信它会使用我的帐户,因为atom.exe正在其上运行),否则我不知道为什么它无法读取密钥
让我来到这里的一般问题是:
申请是否可以被拒绝读HKCU?如果可以,我如何才能将其授予特定的申请?好吧,显然在花了几个小时的时间之后,在这里发布之后,我找到了解决方案,这是非常明显的 我杀死了atom.exe并以管理员身份运行它,现在它可以读取密钥并运行python