google / android-emulator-container-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

lora-explora opened this issue · comments

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:

  • downgrade jsonschema package: pip install jsonschema==3.0.2
  • uninstall and reinstall importlib.metadata in the venv: pip install importlib.metadata --force-reinstall
  • downgrade markupsafe in the venv: pip install markupsafe==2.0.1

my savior!

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

good job