Skip to content

error docker-emu #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zhinea opened this issue Dec 4, 2022 · 7 comments
Open

error docker-emu #320

zhinea opened this issue Dec 4, 2022 · 7 comments

Comments

@zhinea
Copy link

zhinea commented Dec 4, 2022

logs when run docker-emu -h or other only docker-emu

Traceback (most recent call last):
  File "/home/zidna/android-emulator-container-scripts/venv/bin/emu-docker", line 33, in <module>
    sys.exit(load_entry_point('emu-docker', 'console_scripts', 'emu-docker')())
  File "/home/zidna/android-emulator-container-scripts/venv/bin/emu-docker", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/home/zidna/android-emulator-container-scripts/venv/lib/python3.6/site-packages/importlib_metadata/__init__.py", line 194, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/zidna/android-emulator-container-scripts/emu/emu_docker.py", line 28, in <module>
    import emu.emu_downloads_menu as emu_downloads_menu
  File "/home/zidna/android-emulator-container-scripts/emu/emu_downloads_menu.py", line 25, in <module>
    import requests
  File "/home/zidna/android-emulator-container-scripts/venv/lib/python3.6/site-packages/requests-2.28.1-py3.6.egg/requests/__init__.py", line 43, in <module>
    import urllib3
  File "/home/zidna/android-emulator-container-scripts/venv/lib/python3.6/site-packages/urllib3-2.0.0a2-py3.6.egg/urllib3/__init__.py", line 5
    from __future__ import annotations
    ^
SyntaxError: future feature annotations is not defined

python version: Python 3.6.9
ubuntu 18lts

@grossamos
Copy link

grossamos commented Jan 13, 2023

Had a simmilar issue with some of the dependencies. Potentially try:

source configure.sh
pip install --force-reinstall -v "idna==3"
pip install --force-reinstall -v "charset-normalizer==2"
pip install --force-reinstall -v "urllib3==1.26"
pip install --force-reinstall -v "markupsafe==2.0.1"
source configure.sh
emu-docker -h

@grossamos
Copy link

Also is source configure.sh throwing an error like this?

error: urllib3 2.0.0a3 is installed but urllib3<1.27,>=1.21.1 is required by {'requests'}

@Th3C0D3R
Copy link

Also is source configure.sh throwing an error like this?


error: urllib3 2.0.0a3 is installed but urllib3<1.27,>=1.21.1 is required by {'requests'}

I have the same problem... unable to fix it currently

@grossamos
Copy link

@Th3C0D3R have you attempted to run the commands I provided above?

@Th3C0D3R
Copy link

@Th3C0D3R have you attempted to run the commands I provided above?

Yes, did not work. I will try again and send the result

@Th3C0D3R
Copy link

Th3C0D3R commented Jan 23, 2023

ok now it worked

@mcknly
Copy link

mcknly commented Feb 24, 2023

Had a simmilar issue with some of the dependencies. Potentially try:

source configure.sh
pip install --force-reinstall -v "idna==3"
pip install --force-reinstall -v "charset-normalizer==2"
pip install --force-reinstall -v "urllib3==1.26"
pip install --force-reinstall -v "markupsafe==2.0.1"
source configure.sh
emu-docker -h

Same issue, and this worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants