google / android-emulator-container-scripts

1.82k stars 256 forks source link

Unable to run emu-docker with ModuleNotFoundError for 'importlib.metadata' #306

Open lora-explora opened 2 years ago

lora-explora commented 2 years ago

I ran into an error that I can't use emu-docker.

 File "/home/user/android-emulator-container-scripts/venv/bin/emu-docker", line 10, in <module>
    from importlib.metadata import distribution
ModuleNotFoundError: No module named 'importlib.metadata'

I am using python 3.6.4

I had to do a couple of adjustments to get it to work:

yaizudamashii commented 2 years ago

my savior!

chgans commented 2 years ago

same here, pip install markupsafe==2.0.1 fixed it. As well, i had other python errors, i followed https://source.android.com/devices/automotive/start/avd/cloud_emulator and used ubuntu 18.04. Problem is the code is not working with python 3.6. I was able to install python 3.8 to fix the problem

gogamid commented 1 year ago

good job