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

Issue with Passlib #1

Open
ryanlelek opened this issue Jul 2, 2014 · 1 comment
Open

Issue with Passlib #1

ryanlelek opened this issue Jul 2, 2014 · 1 comment

Comments

@ryanlelek
Copy link

I keep running into the error:
"passlib must be installed to use the hash filter"
from the file hash.py

This doesn't seem to be a common problem, just me.
I made a working script that imports passlib and hashes a string successfully
Tried installing passlib on local, remote, both

Ideas why it isn't detecting within the ansible plugin?

System:
OS X 10.9.4 (latest)
Python path: /usr/local/bin/python
Python installed via Homebrew / compiled from source
Removed all instances of Python3

@dsedivec
Copy link
Owner

dsedivec commented Jul 3, 2014

No ideas, unfortunately. My best suggestion would be to edit hash.py and change lines 19-22

try:
    import passlib.hash as passlib_hash
except ImportError:
    passlib_hash = None

to read just

import passlib.hash as passlib_hash

Then try using hash again and you should get an ImportError that will hopefully give you some kind of hint about why passlib couldn't be imported in the hash filter.

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