krbcontext / python-krbcontext

A Kerberos context manager
https://krbcontext.github.io/
GNU General Public License v3.0
25 stars 10 forks source link

No module 'pwd' on importing krbcontext #33

Closed tushar-sharma closed 4 years ago

tushar-sharma commented 4 years ago

Hi

Simply importing the module: krbcontext on Windows

import krbcontext

Gives me the following error.

import pwd
ModuleNotFoundError: No module named 'pwd'

It seems like krbcontext\context.py uses pwd module which seems to be available only on Unix , is there a workaround for this on Windows?

tkdchen commented 4 years ago

I never tested it on Windows. I have to investigate and figure out a solution or workaround. Does anyone else have some ideas or suggestions? Thanks.

tkdchen commented 4 years ago

In addition, Windows wasn't a target platform when this module was created. So, I'm not sure if krbcontext could work well on Windows even if this issue gets fixed.

tkdchen commented 4 years ago

Close this issue. Welcome patch to make it work on Windows.