Skip to content

Fix "AttributeError: module 'git' has no attribute 'Git'"#1994

Merged
boegel merged 1 commit intoeasybuilders:developfrom
Flamefire:git_import_error
Mar 17, 2020
Merged

Fix "AttributeError: module 'git' has no attribute 'Git'"#1994
boegel merged 1 commit intoeasybuilders:developfrom
Flamefire:git_import_error

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

@Flamefire Flamefire commented Mar 17, 2020

This can happen when using Python3 with EasyBuild in a directory with a
subdirectory named "git" or with any directory "git" in PYTHONPATH but
not having GitPython installed

The fixed code was copied from the framework file (tools/version.py)

edit: see also easybuilders/easybuild-framework#3198

This can happen when using Python3 with EasyBuild in a directory with a
subdirectory named "git" or with any directory "git" in PYTHONPATH but
not having GitPython installed
@boegel boegel added the bug fix label Mar 17, 2020
@boegel boegel added this to the next release (4.2.0) milestone Mar 17, 2020
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel merged commit 90c4e39 into easybuilders:develop Mar 17, 2020
@Flamefire Flamefire deleted the git_import_error branch March 17, 2020 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants