1

I was trying to install and use Gevent in Python3.4 after successfully using it with Python2.7. However using Python 3 I am getting a error at import itself. Is it not supported still in python3?

Using gcc 4.9 and installed using pip3 install gevent.

import gevent
  File "/usr/local/lib/python3.4/dist-packages/gevent/__init__.py", line 41, in <module>
    from gevent.hub import get_hub, iwait, wait
  File "/usr/local/lib/python3.4/dist-packages/gevent/hub.py", line 289
    except Exception, ex:
1

1 Answer 1

1

except Exception, ex is Python 2 syntax, it should be except Exception as ex in Python 3. It looks like the Gevent package is indeed not properly prepared for Python 3.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.