zlorb / locust.replay

Record and playback Locust.io tests with MITMproxy
58 stars 16 forks source link

Could not load command locust.code.clip: Argument flows has an unknown type error #15

Open cgeorgelee opened 2 years ago

cgeorgelee commented 2 years ago

Having an issue on macOS with locust and mitmproxy. I see the following errors in the event log during startup:

info: Loading script /...my_path.../locust.replay/locust_extractor.py
warn: Could not load command locust.code.clip: Argument flows has an unknown type typing.Sequence[mitmproxy.flow.Flow] in <bound method ExtractLocust.code_clip of
<__mitmproxy_script__.locust_extractor.ExtractLocust object at 0x10a165c30>>.
warn: Could not load command locust.task.clip: Argument flows has an unknown type typing.Sequence[mitmproxy.flow.Flow] in <bound method ExtractLocust.task_clip of
<__mitmproxy_script__.locust_extractor.ExtractLocust object at 0x10a165c30>>.

and the following clip command does not work:

locust.code.clip @shown

However I know that locust.replay has loaded because this command works:

locust.extractAll

Using mitmproxy version:

Mitmproxy: 8.1.1
Python:    3.10.5
OpenSSL:   OpenSSL 1.1.1q  5 Jul 2022
Platform:  macOS-12.4-x86_64-i386-64bit
mgazzin commented 1 year ago

Same problem here!