You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
Identical csv input format but server returns this:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.5/dist-packages/flask/compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "/root/prosit/server.py", line 36, in return_generic
result = predict(flask.request.files["peptides"])
File "/root/prosit/server.py", line 28, in predict
data = tensorize.csv(df)
File "/root/prosit/tensorize.py", line 94, in csv
"sequence_integer": get_sequence_integer(df.modified_sequence),
File "/root/prosit/tensorize.py", line 51, in get_sequence_integer
for j, s in enumerate(utils.peptide_parser(sequence)):
File "/root/prosit/utils.py", line 26, in peptide_parser
p = p.replace("", "") AttributeError: 'float' object has no attribute 'replace'
172.17.0.1 - - [08/Jan/2021 19:23:11] "POST /predict/generic HTTP/1.1" 500 -
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Prosit csv input example works:
curl -F "peptides=@examples/peptidelist.csv" http://127.0.0.1:5000/predict/generic
Identical csv input format but server returns this:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.5/dist-packages/flask/compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "/root/prosit/server.py", line 36, in return_generic
result = predict(flask.request.files["peptides"])
File "/root/prosit/server.py", line 28, in predict
data = tensorize.csv(df)
File "/root/prosit/tensorize.py", line 94, in csv
"sequence_integer": get_sequence_integer(df.modified_sequence),
File "/root/prosit/tensorize.py", line 51, in get_sequence_integer
for j, s in enumerate(utils.peptide_parser(sequence)):
File "/root/prosit/utils.py", line 26, in peptide_parser
p = p.replace("", "")
AttributeError: 'float' object has no attribute 'replace'
172.17.0.1 - - [08/Jan/2021 19:23:11] "POST /predict/generic HTTP/1.1" 500 -
The text was updated successfully, but these errors were encountered: