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

ImportError: No module named idna #101

Closed
arthall opened this issue Jan 25, 2019 · 2 comments
Closed

ImportError: No module named idna #101

arthall opened this issue Jan 25, 2019 · 2 comments

Comments

@arthall
Copy link
Contributor

arthall commented Jan 25, 2019

The latest release of Cryptography, version 2.5, stopped requiring idna. This uncovered an issue in the oci-python-sdk where idna is imported but is not part of the required packages for oci-python-sdk. If you receive an ImportError for idna, you can resolve it by upgrading to oci>=2.1.5 or running pip install idna in your virtual environment containing the oci package.

Here is an snippet from the stack trace for the import error.

File "/lib/python2.7/site-packages/oci/_vendor/urllib3/contrib/pyopenssl.py", line 171, in idna_encode
    import idna
ImportError: No module named idna
@arthall
Copy link
Contributor Author

arthall commented Mar 1, 2019

Closing this ticket since the issue has been resolved for a couple of releases now.

@VictorZhang2014
Copy link

WX20200623-110344@2x

pip install idna

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

2 participants