adaptdl icon indicating copy to clipboard operation
adaptdl copied to clipboard

ModuleNotFoundError: mitmproxy.proxy.config

Open selinyldrm opened this issue 1 year ago • 0 comments

I am using your repo for research purposes on a physical cluster. I have no amazon aws account and am facing errors with mitmproxy subpackage installed within adaptdl-cli, given the command on adaptdl website, https://adaptdl.readthedocs.io/en/latest/installation/install-adaptdl.html :

helm install adaptdl adaptdl-sched --repo https://github.com/petuum/adaptdl/raw/helm-repo \
 --namespace adaptdl --create-namespace --set docker-registry.enabled=true

I am on Ubuntu 20.04 inside a conda environment, on a regular K8s master node.

(base) codenimbus-admin@k8s-head:~$ adaptdl ls
Traceback (most recent call last):
  File "/home/codenimbus-admin/.local/bin/adaptdl", line 30, in <module>
    from adaptdl_cli.proxy import service_proxy
  File "/home/codenimbus-admin/.local/lib/python3.8/site-packages/adaptdl_cli/__init__.py", line 17, in <module>
    from .tensorboard import TENSORBOARD_PREFIX, tensorboard_create, \
  File "/home/codenimbus-admin/.local/lib/python3.8/site-packages/adaptdl_cli/tensorboard.py", line 18, in <module>
    from .proxy import service_proxy
  File "/home/codenimbus-admin/.local/lib/python3.8/site-packages/adaptdl_cli/proxy.py", line 22, in <module>
    from mitmproxy.proxy.config import ProxyConfig
ModuleNotFoundError: No module named 'mitmproxy.proxy.config'

Running mitmproxy gives an add-on error, which is assumingly this submodule. Versions of mitmproxy and python I use is as below: Screenshot 2024-03-23 at 18 02 52

Help is very much appreciated on how to get adaptdl command working.

selinyldrm avatar Mar 23 '24 23:03 selinyldrm