Skip to content
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

Eventlet has a syntax error in the python3.7 environment #744

Open
2 tasks
hustlibraco opened this issue Nov 16, 2021 · 0 comments
Open
2 tasks

Eventlet has a syntax error in the python3.7 environment #744

hustlibraco opened this issue Nov 16, 2021 · 0 comments

Comments

@hustlibraco
Copy link

Checklist

  • I have included information about relevant versions

  • I have verified that the issue persists when using the master branch of Faust.

Steps to reproduce

Install faust in Python3.7, and run a demo in eventlet mode, will raise exception.

Expected behavior

faust[eventlet] should be compatible with Python 3.7

Actual behavior

raise SyntaxError

Full traceback

(.venv37) root@deployment:~/repo/sniper/api# python -V
Python 3.7.10
(.venv37) root@deployment:~/repo/sniper/api# faust -A api.assetsec.faustapp worker -L eventlet -l debug
Traceback (most recent call last):
  File "/root/repo/sniper/.venv37/bin/faust", line 5, in <module>
    from faust.cli.faust import cli
  File "/root/repo/sniper/.venv37/lib/python3.7/site-packages/faust/__init__.py", line 110, in <module>
    mode.loop.use(_loop)
  File "/root/repo/sniper/.venv37/lib/python3.7/site-packages/mode/loop/__init__.py", line 71, in use
    importlib.import_module(mod)
  File "/root/.pyenv/versions/3.7.10/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/root/repo/sniper/.venv37/lib/python3.7/site-packages/mode/loop/eventlet.py", line 13, in <module>
    import aioeventlet
  File "/root/repo/sniper/.venv37/lib/python3.7/site-packages/aioeventlet.py", line 332
    future = asyncio.async(future, loop=loop)
                         ^
SyntaxError: invalid syntax

Versions

  • Python version: 3.7.10
  • Faust version: 1.10.4
  • Operating system: Debian GNU/Linux 10
  • Kafka version: 2.12-2.5.0
  • RocksDB version (if applicable): null
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

1 participant