python - Using the crypt module in Windows? -
in idle , python version 3.3.2, try , call python module so:
hash2 = crypt(word, salt)
i import @ top of program so:
from crypt import *
the result following:
traceback (most recent call last): file "c:\none\of\your\business\adams.py", line 10, in <module> crypt import * file "c:\python33\lib\crypt.py", line 3, in <module> import _crypt importerror: no module named '_crypt'
however, when execute same file adams.py
in ubuntu, python 2.7.3, executes - no errors.
i tried following resolve issue windows & python 3.3.2 (though i'm sure os isn't issue, python version or use of syntax issue):
- rename directory in
python33
directorylib
lib
- rename
crypt.py
inlib
_crypt.py
. however, turns out entirecrypt.py
module depends on external module called_crypt.py
too. - browsed internet download remotely appropriate resemble
_crypt.py
it's not python, right? it's me...(?) i'm using syntaxes import , use external modules acceptable in 2.7.3, not in 3.3.2. or have found bug in 3.3.2?
i assume because crypt
unix specific service.
right @ top of docs crypt
:
34.5. crypt — function check unix passwords
platforms: unix
Comments
Post a Comment