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
Problem lies in upload.upload function, that contains, where val variable is a bytes object, that is concatenated to string objects.
To fix this you'll need to encode it:
val = res.read().decode('ascii')
Traceback:
Traceback (most recent call last):
File "/home/jb/.pythonz/pythons/CPython-3.4.3/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/home/jb/.pythonz/pythons/CPython-3.4.3/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/jb/programs/nasypy_webapp_backend/venv/lib/python3.4/site-packages/vmprof/__main__.py", line 67, in <module>
main()
File "/home/jb/programs/nasypy_webapp_backend/venv/lib/python3.4/site-packages/vmprof/__main__.py", line 64, in main
show_stats(prof_file.name, output_mode, args)
File "/home/jb/programs/nasypy_webapp_backend/venv/lib/python3.4/site-packages/vmprof/__main__.py", line 25, in show_stats
upload_stats(stats, args)
File "/home/jb/programs/nasypy_webapp_backend/venv/lib/python3.4/site-packages/vmprof/__main__.py", line 36, in upload_stats
res = vmprof.upload.upload(stats, name, argv, host, auth)
File "/home/jb/programs/nasypy_webapp_backend/venv/lib/python3.4/site-packages/vmprof/upload.py", line 35, in upload
return "http://" + host + "/#/" + val[1:-1]
TypeError: Can't convert 'bytes' object to str implicitly
The text was updated successfully, but these errors were encountered:
Stacktrace attached at the end of issue.
Problem lies in
upload.upload
function, that contains, whereval
variable is a bytes object, that is concatenated to string objects.To fix this you'll need to encode it:
Traceback:
The text was updated successfully, but these errors were encountered: