android-emulator-container-scripts icon indicating copy to clipboard operation
android-emulator-container-scripts copied to clipboard

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

Open lora-explora opened this issue 2 years ago • 3 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

lora-explora avatar May 12 '22 12:05 lora-explora

my savior!

yaizudamashii avatar May 25 '22 03:05 yaizudamashii

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

chgans avatar May 28 '22 06:05 chgans

good job

gogamid avatar Aug 19 '22 18:08 gogamid