You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getuser() (called in clientparameters.py) can raise ImportError on Windows if LOGNAME/USER/etc environment variables are not defined. getpass.py tries to import pwd but pwd is Unix-only module and isn't available on Windows.
What would be the best way to fix? Make sure that LOGNAME/USER/etc environment variables are always defined? Or fix clientparameters.py to catch that ImportError? I can send a pull request.
The text was updated successfully, but these errors were encountered:
phdru
added a commit
to sqlobject/py-postgresql
that referenced
this issue
Aug 23, 2017
getuser()
(called in clientparameters.py) can raiseImportError
on Windows ifLOGNAME/USER/etc
environment variables are not defined.getpass.py
tries to import pwd butpwd
is Unix-only module and isn't available on Windows.See a real life program failing at AppVeyor.
What would be the best way to fix? Make sure that
LOGNAME/USER/etc
environment variables are always defined? Or fixclientparameters.py
to catch that ImportError? I can send a pull request.The text was updated successfully, but these errors were encountered: