Issue
I am simply trying to do this
from IPython.lib import passwd
but I get this error
In [1]: from IPython.lib import passwd
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 from IPython.lib import passwd
ImportError: cannot import name 'passwd' from 'IPython.lib' (/home/ubuntu/anaconda3/lib/python3.9/site-packages/IPython/lib/__init__.py)
Googled the error but nothing.
Solution
I am facing the same issue with IPython version 8.4. It seems to me that the security lib is not present anymore. If you are using version 7x you should be able to import it with
from IPython.lib.security import passwd
as denoted in https://ipython.readthedocs.io/en/7.x/api/generated/IPython.lib.security.html?highlight=passwd
However, from version 8x the module security is missing...
Answered By - Blitzbirnep
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.