Stoobly / stoobly-agent

Record, mock, and test HTTP/HTTPS requests. CLI agent for Stoobly.
Other
6 stars 0 forks source link

Python 3.10 cannot import name 'Iterable' from 'collections' #79

Closed stoobmmelier closed 1 year ago

stoobmmelier commented 1 year ago

Latest version of stoobly-agent 0.18.3 with Python 3.10.9 results in error when running agent

❯ pip3 install --user -U stoobly-agent
...
Installing collected packages: stoobly-agent
  WARNING: The script stoobly-agent is installed in '/Users/user/Library/Python/3.10/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed stoobly-agent-0.18.3

❯ stoobly-agent run --proxy-port 8083
UI server listening at http://0.0.0.0:4200/

Loading script /Users/user/Library/Python/3.10/lib/python/site-packages/stoobly_agent/app/proxy/intercept_handler.py
in script /Users/user/Library/Python/3.10/lib/python/site-packages/stoobly_agent/app/proxy/intercept_handler.py: cannot import name 'Iterable' from 'collections' (/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/__init__.py)
Proxy server listening at *:8083

Results in requests intercepted by the agent to hang

stoobmmelier commented 1 year ago

Fixed in https://github.com/Stoobly/stoobly-agent/commit/99287b5e6c3b8352e3b33a0f77f95599b4efda8a and released in https://github.com/Stoobly/stoobly-agent/releases/tag/0.18.4