问题描述
我正在尝试使用此库 https://pypi.org/project/pypsexec/ 从 python 文件调用托管在远程计算机上的 FME 工作台。
代码是
c = Client(ip,username=username,password=password)
c.connect()
try:
c.create_service()
# After creating the service,you can run multiple exe's without
# reconnecting
# run a simple cmd.exe program with arguments
cmdline = "/c fme.exe --source " \
"\"http://xxx.geojson\" " \
"--dest C:\out1.dgn LOG_FILENAME C:\fme.log --TILE \"999\" "
stdout,stderr,rc = c.run_executable("fme.exe",arguments=cmdline)
except Exception as error:
print(error)
finally:
c.remove_service()
c.disconnect()
但它给了我例外
TypeError: can only concatenate str (not "TypeError") to str
TypeError: can only concatenate str (not "Byte") to str
我尝试连接字符串但似乎不起作用
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)