ModuleNotFoundError: import of git.refs halted; None in sys.modules #1179
-
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: Here's the console output with the debug I added to my program:
Switching from |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Thanks for posting. Python being unable or not permitted to import modules is nothing I have seen before, and believe this has to do with the runtime system executing the code rather than GitPython. Due to my inexperience with Python in general I wouldn't know how to fix that though. Even though I am closing the issue, please feel free to keep posting in the comments section if it is relevant to GitPython. Thank you. |
Beta Was this translation helpful? Give feedback.
-
@Byron I found a way around the issue. I believe it was broken because it was called in the |
Beta Was this translation helpful? Give feedback.
-
Ah, right! When something is run while Python is shutting down, nothing is guaranteed to be working anymore, sadly. It was a case in my time 10 years ago and still is the case now apparently. |
Beta Was this translation helpful? Give feedback.
Thanks for posting. Python being unable or not permitted to import modules is nothing I have seen before, and believe this has to do with the runtime system executing the code rather than GitPython.
Due to my inexperience with Python in general I wouldn't know how to fix that though.
Even though I am closing the issue, please feel free to keep posting in the comments section if it is relevant to GitPython. Thank you.