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 }}
Repository navigation
ValueError: not enough values to unpack (expected 2, got 1) #210
Using last profile data.
Traceback (most recent call last):
File "/home/stepan/mprof-example/venv/bin/mprof", line 8, in <module>
sys.exit(main())
File "/home/stepan/mprof-example/venv/lib/python3.8/site-packages/mprof.py", line 905, in main
actions[get_action()]()
File "/home/stepan/mprof-example/venv/lib/python3.8/site-packages/mprof.py", line 819, in plot_action
mprofile = plotter(filename, index=n, timestamps=timestamps, options=args)
File "/home/stepan/mprof-example/venv/lib/python3.8/site-packages/mprof.py", line 409, in plot_file
mprofile = read_mprofile_file(filename)
File "/home/stepan/mprof-example/venv/lib/python3.8/site-packages/mprof.py", line 364, in read_mprofile_file
field, value = l.split(' ', 1)
ValueError: not enough values to unpack (expected 2, got 1)
Activity
SamuelXJames commentedon Sep 5, 2018
Mprof is unable to parse white space, therefore blank lines need to be deleted.
astrojuanlu commentedon Sep 5, 2018
This is weird, could you please post a sample program so we can reproduce the issue?
stepan-anokhin commentedon Sep 16, 2022
@astrojuanlu The problem occurs when
mprof run <command>has multi-line arguments:For example:
Version: