Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Closed
Description
When i try to build gitpython on Windows Server i have this error message.
File"C:\project\.tox\back\lib\site-packages\git\objects\commit.py", line318,in create_from_tree committer= committer or Actor.committer(cr) File"C:\project\.tox\back\lib\site-packages\git\util.py", line416,in committerreturn cls._main_actor(cls.env_committer_name, cls.env_committer_email, config_reader) File"C:\project\.tox\back\lib\site-packages\git\util.py", line386,in _main_actor default_email= get_user_id() File"C:\project\.tox\back\lib\site-packages\git\util.py", line152,in get_user_idreturn"%s@%s"% (getpass.getuser(), platform.node()) File"c:\python27\Lib\getpass.py", line157,in getuser import pwdImportError: No module named pwd
After search, the only solution is trythis hack onutiy.py file.
Then use this :
try:importpwdexceptImportError:importwinpwdaspwdimportosdefget_user_id():""":return: string identifying the currently active system user as name@node"""return"%s@%s"% (pwd.getpwuid(os.getuid()).pw_name,platform.node())
instead of
importgetpassdefget_user_id():""":return: string identifying the currently active system user as name@node"""return"%s@%s"% (getpass.getuser(),platform.node())
What do you think about that ?
Metadata
Metadata
Assignees
Labels
No labels