Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXCEPTION of type 'TypeError' occurred with message: 'plot() missing 1 required positional argument: 'rawdf' #28

Open
rezakb opened this issue Aug 10, 2019 · 3 comments
Milestone

Comments

@rezakb
Copy link

rezakb commented Aug 10, 2019

  • mptcpanalyzer version ($ mptcpanalyzer --version or commit number): 0.3.2
  • tshark version ($ tshark --version, must be >= 3.X.X): 3.0.3
  • python version ($ python --version, must be >= 3.7): 3.7

Output of mptcpanalyzer -dDEBUG (or -dTRACE ):

	Problem when calling plotter.run
We passed the following arguments:
{}
{'plot_type': 'dss', 'out': None, 'display': False, 'title': None, 'primary': False, 'styles': [], 'dack': False, '__statement__': Statement(args='dss', raw='plot dss', command='plot', arg_list=['dss'], multiline_command='', terminator='', suffix='', pipe_to='', output='', output_to='')}
Traceback (most recent call last):
  File "/X/X/Library/Python/3.7/lib/python/site-packages/cmd2/cmd2.py", line 1753, in onecmd_plus_hooks
    stop = self.onecmd(statement, add_to_history=add_to_history)
  File "/X/X/Library/Python/3.7/lib/python/site-packages/cmd2/cmd2.py", line 2148, in onecmd
    stop = func(statement)
  File "/X/X/Library/Python/3.7/lib/python/site-packages/cmd2/cmd2.py", line 214, in cmd_wrapper
    return func(cmd2_app, args, unknown)
  File "/X/X/Library/Python/3.7/lib/python/site-packages/mptcpanalyzer/cli.py", line 1163, in do_plot
    raise e
  File "/X/X/Library/Python/3.7/lib/python/site-packages/mptcpanalyzer/cli.py", line 1157, in do_plot
    result = plotter.run(**dataframes, **dargs)
  File "/X/X/Library/Python/3.7/lib/python/site-packages/mptcpanalyzer/plot.py", line 268, in run
    fig = self.plot(*pargs, styles=styles, **kwargs)
TypeError: plot() missing 1 required positional argument: 'rawdf'
EXCEPTION of type 'TypeError' occurred with message: 'plot() missing 1 required positional argument: 'rawdf''``

# how to reproduce
run "plot dss"
Link to the pcap (if possible/relevant):

@teto
Copy link
Owner

teto commented Aug 10, 2019

Thanks for reporting. It's a plot I haven't updated. Will try to do soon and add it to the tests.
Meanwhile you can plot dss/dsn via plot mptcp_attr examples/client_2_redundant.pcapng 0 dsn --display with autocompletion, you can see available fields, for instance:
dsn dsnraw64 dss_dsn dss_length dss_rawack dss_ssn .
NB: Seems like the legend doesn't show the destination (client/server), gotta fix that too :/

@rezakb
Copy link
Author

rezakb commented Aug 14, 2019 via email

@teto teto added this to the 0.3.3 milestone Aug 17, 2019
@teto
Copy link
Owner

teto commented Aug 22, 2019

so this prove more complex than I had anticipated because I hadn't updated that code in a long time.
I have almost completed the update but I still have an issue: the plot is supposed to draw arrows from origin (sending time, data sequence number ) with size (0, dss.length) but matplotlib's autoscale doesn't work with arrows:
matplotlib/matplotlib#13788

Apparently it's going to be fixed by september so I will release a fix with next matplotlib in september.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants