[英]Unparsable argument: 5PL getting this error while trying to post the file through pycurl in python
我正在嘗試在給定的URL上發布文件和函數的幾個參數。 但是我遇到一個錯誤(不可解析的參數:5PL)。 任何人都可以幫助解決此錯誤嗎?
import pycurl
c = pycurl.Curl()
values = [
("infile", (pycurl.FORM_FILE, "5pl.csv")),
("model","5PL"),
("log", "F")
]
c.setopt(c.URL, "http://granitepoint.ocpu.io/dose-response-R/R/readData")
c.setopt(c.HTTPPOST, values)
c.perform()
c.close()
OpenCPU POST參數必須是JSON對象或R語法。 您在5PL
參數值5PL
都不是。
如果要發布字符串值"5PL"
, "5PL"
發布例如("model","'5PL'")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.