-
Notifications
You must be signed in to change notification settings - Fork 10
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
PAM module in virtualenv #2
Comments
To answer my own question: Or, add |
It turns out I was testing (pamtester) from an activated virtualenv which was sufficient to let pamtester succeed. It still fails from a clean env using any combination of the above tests, so I still don't have a way to start the virtualenv from within pam-python. For now, I'll install the required modules system wide. |
It fails because your script is not being run as a program (using the interpreter specified by the #! line) - the python interpreter is actually embedded in this module. You just need to add the virtualenv path to sys.path before importing the other modules. Something like this:
|
Wow, thx. It's been a while since I worked on this (the proof of concept module works) but I'll keep this in mind if and when the module will be deployed in the wild! |
What would the PAM configuration line look like if the python PAM module is developed in a virtualenv?
The text was updated successfully, but these errors were encountered: