0

我目前正在尝试通过运行train.py检索和排名文档提供的脚本来创建排名。

我在尝试创建排名时发出以下命令:

train.py -u usernameHere:PasswordHere -i  Mainframe_Batch_Automation_CA7.csv -c clusterIdHere -x Mainframe_Batch_Automation_CA7 -n Mainframe_Batch_Automation_CA7

我收到以下错误:

Input file is Mainframe_Batch_Automation_CA7.csv
Solr cluster is sc0c2398d4_d087_4516_99dd_10c25cc06b0a
Solr collection is Mainframe_Batch_Automation_CA7
Ranker name is Mainframe_Batch_Automation_CA7
Rows per query 10
Generating training data...

Traceback (most recent call last):
  File "C:\Users\IBM_ADMIN\Documents\Retrieve & Rank\train.py", line 83, in <module>
    process = subprocess.Popen(shlex.split(curl_cmd), stdout=subprocess.PIPE)
  File "C:\Python27\lib\subprocess.py", line 390, in __init__
    errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the specified file

起初我以为是因为 Python 不在我的 PATH 环境变量中,但是在将它添加到 PATH 变量后,它仍然给我同样的错误......

4

1 回答 1

1

脚本运行 curl 命令,该命令连接到 solr 和 ranker url。此错误是由于防火墙问题造成的。尝试在防火墙外执行脚本。

于 2017-02-20T16:51:59.533 回答