mitmproxy2swagger icon indicating copy to clipboard operation
mitmproxy2swagger copied to clipboard

Broken Imports

Open TheBagarius opened this issue 4 months ago • 1 comments

I don't understand what is going on in the error message below. Also I cannot call mitmproxy2swagger from the command line after installing it with pip3 install mitmproxy2swagger I have to forcefully call it from the full filepath with python3

bumping #153

$ python3 ~/Library/Python/3.9/lib/python/site-packages/mitmproxy2swagger/mitmproxy2swagger.py -i ~/Documents/TMS-login\ flows -o ~/Documents/tms_trials
Traceback (most recent call last):
  File "/Users/USER/Library/Python/3.9/lib/python/site-packages/mitmproxy2swagger/mitmproxy2swagger.py", line 16, in <module>
    from mitmproxy2swagger import console_util, swagger_util
  File "/Users/USER/Library/Python/3.9/lib/python/site-packages/mitmproxy2swagger/mitmproxy2swagger.py", line 16, in <module>
    from mitmproxy2swagger import console_util, swagger_util
ImportError: cannot import name 'console_util' from partially initialized module 'mitmproxy2swagger' (most likely due to a circular import) (/Users/USER/Library/Python/3.9/lib/python/site-packages/mitmproxy2swagger/mitmproxy2swagger.py)

TheBagarius avatar Mar 28 '24 11:03 TheBagarius

Hello,try installing it in a virtual environment.

josephwandery avatar Apr 05 '24 13:04 josephwandery