-
-
Notifications
You must be signed in to change notification settings - Fork 968
ModuleNotFoundError: import of git.refs halted; None in sys.modules #1114
Copy link
Copy link
Closed
Labels
Description
Hello! Maybe some of you will be able to help. I'm currently writing something that needs to act like dependabot but for Minecraft plugins.
Here's a the current commit state that gives me this exception: ModuleNotFoundError: import of git.refs halted; None in sys.modules
Here's the console output with the debug I added to my program:
> python check_updates.py --push-to-git
update
if update == lululombard/issue1
if update not in ['lululombard/issue1', 'master']
update
if update == update
lululombard/issue1
Exception ignored in: <function GitManager.__del__ at 0x7fb548a711f0>
Traceback (most recent call last):
File "/home/lululombard/Workspace/RedCraft/redcraft_server_templates/utils/git_manager.py", line 14, in __del__
File "/home/lululombard/Workspace/RedCraft/redcraft_server_templates/utils/git_manager.py", line 18, in switch_branch
File "/home/lululombard/Workspace/RedCraft/redcraft_server_templates/env/lib/python3.8/site-packages/git/repo/base.py", line 718, in active_branch
File "/home/lululombard/Workspace/RedCraft/redcraft_server_templates/env/lib/python3.8/site-packages/git/refs/symbolic.py", line 273, in _get_reference
File "/home/lululombard/Workspace/RedCraft/redcraft_server_templates/env/lib/python3.8/site-packages/git/refs/symbolic.py", line 663, in from_path
ModuleNotFoundError: import of git.refs halted; None in sys.modules
Switching from lululombard/issue1 to update works, but not the other way around. Any idea why? Thanks.
Reactions are currently unavailable