Title: ImportError on latest GitPython 3.1.16 · Issue #1238 · gitpython-developers/GitPython · GitHub
Open Graph Title: ImportError on latest GitPython 3.1.16 · Issue #1238 · gitpython-developers/GitPython
X Title: ImportError on latest GitPython 3.1.16 · Issue #1238 · gitpython-developers/GitPython
Description: Hey all, Our CI doesn't pin GitPython versions (always use latest) and some of our automated tests failed today with a mysterious GitPython ImportError. Here's the stack trace: [2021-05-13T15:23:58.759Z] ERROR launching hyper random, std...
Open Graph Description: Hey all, Our CI doesn't pin GitPython versions (always use latest) and some of our automated tests failed today with a mysterious GitPython ImportError. Here's the stack trace: [2021-05-13T15:23:58...
X Description: Hey all, Our CI doesn't pin GitPython versions (always use latest) and some of our automated tests failed today with a mysterious GitPython ImportError. Here's the stack trace: [2021-05-13T...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1238
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ImportError on latest GitPython 3.1.16","articleBody":"Hey all,\r\n\r\nOur CI doesn't pin GitPython versions (always use latest) and some of our automated tests failed today with a mysterious GitPython ImportError. Here's the stack trace:\r\n\r\n```\r\n[2021-05-13T15:23:58.759Z] ERROR launching hyper random, stderr: sh: 0: getcwd() failed: No such file or directory\r\n\r\n[2021-05-13T15:23:58.759Z] Traceback (most recent call last):\r\n\r\n[2021-05-13T15:23:58.759Z] File \"/usr/local/lib/python3.7/site-packages/git/__init__.py\", line 83, in \u003cmodule\u003e\r\n\r\n[2021-05-13T15:23:58.759Z] refresh()\r\n\r\n[2021-05-13T15:23:58.759Z] File \"/usr/local/lib/python3.7/site-packages/git/__init__.py\", line 73, in refresh\r\n\r\n[2021-05-13T15:23:58.759Z] if not Git.refresh(path=path):\r\n\r\n[2021-05-13T15:23:58.759Z] File \"/usr/local/lib/python3.7/site-packages/git/cmd.py\", line 215, in refresh\r\n\r\n[2021-05-13T15:23:58.759Z] cls().version()\r\n\r\n[2021-05-13T15:23:58.759Z] File \"/usr/local/lib/python3.7/site-packages/git/cmd.py\", line 542, in \u003clambda\u003e\r\n\r\n[2021-05-13T15:23:58.759Z] return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)\r\n\r\n[2021-05-13T15:23:58.759Z] File \"/usr/local/lib/python3.7/site-packages/git/cmd.py\", line 1005, in _call_process\r\n\r\n[2021-05-13T15:23:58.759Z] return self.execute(call, **exec_kwargs)\r\n\r\n[2021-05-13T15:23:58.759Z] File \"/usr/local/lib/python3.7/site-packages/git/cmd.py\", line 686, in execute\r\n\r\n[2021-05-13T15:23:58.759Z] cwd = self._working_dir or os.getcwd()\r\n\r\n[2021-05-13T15:23:58.759Z] FileNotFoundError: [Errno 2] No such file or directory\r\n\r\n[2021-05-13T15:23:58.759Z] \r\n\r\n[2021-05-13T15:23:58.759Z] The above exception was the direct cause of the following exception:\r\n\r\n[2021-05-13T15:23:58.760Z] \r\n\r\n[2021-05-13T15:23:58.760Z] Traceback (most recent call last):\r\n\r\n[2021-05-13T15:23:58.760Z] File \"/usr/local/bin/spell\", line 7, in \u003cmodule\u003e\r\n\r\n[2021-05-13T15:23:58.760Z] from spell.cli.main import main\r\n\r\n[2021-05-13T15:23:58.760Z] File \"/usr/src/spell/python/spell/cli/main.py\", line 47, in \u003cmodule\u003e\r\n\r\n[2021-05-13T15:23:58.760Z] from spell.cli.commands.run import run\r\n\r\n[2021-05-13T15:23:58.760Z] File \"/usr/src/spell/python/spell/cli/commands/run.py\", line 11, in \u003cmodule\u003e\r\n\r\n[2021-05-13T15:23:58.760Z] from spell.cli.utils import (\r\n\r\n[2021-05-13T15:23:58.760Z] File \"/usr/src/spell/python/spell/cli/utils/git_utils.py\", line 8, in \u003cmodule\u003e\r\n\r\n[2021-05-13T15:23:58.760Z] import git\r\n\r\n[2021-05-13T15:23:58.760Z] File \"/usr/local/lib/python3.7/site-packages/git/__init__.py\", line 85, in \u003cmodule\u003e\r\n\r\n[2021-05-13T15:23:58.760Z] raise ImportError('Failed to initialize: {0}'.format(exc)) from exc\r\n\r\n[2021-05-13T15:23:58.760Z] ImportError: Failed to initialize: [Errno 2] No such file or directory\r\n\r\n```\r\n\r\nI think this might be a regression in the new 3.1.16.\r\n\r\nMany of our other tests also seem to import the gitpython library but they don't error. The only difference I can see between the failed and passed tests is that the failed tests run in a parallel thread executor, all passing tests run one at a time.","author":{"url":"https://github.com/wwwaldo","@type":"Person","name":"wwwaldo"},"datePublished":"2021-05-13T18:58:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/1238/GitPython/issues/1238"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8007735d-b742-a001-6cd2-ecd6b18d3d19 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C86A:1DA91B:40F740:59357C:69695D9E |
| html-safe-nonce | ae5601f6a0f264c37306d71ac11cd5e6d75c959a4c647ba75cd13b58738d4a41 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODZBOjFEQTkxQjo0MEY3NDA6NTkzNTdDOjY5Njk1RDlFIiwidmlzaXRvcl9pZCI6Ijg3MzMwNjAzMzMwNDg1MjAwOTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a0c782f64ecb1a116a2762595582ef2627271d0fa14b3596998ce08f6bf4f3c8 |
| hovercard-subject-tag | issue:891290705 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/1238/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a19357478c778b27288632e01357e81d3d3cd0944a5625ce7ea0ab88acecd123/gitpython-developers/GitPython/issues/1238 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a19357478c778b27288632e01357e81d3d3cd0944a5625ce7ea0ab88acecd123/gitpython-developers/GitPython/issues/1238 |
| og:image:alt | Hey all, Our CI doesn't pin GitPython versions (always use latest) and some of our automated tests failed today with a mysterious GitPython ImportError. Here's the stack trace: [2021-05-13T15:23:58... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wwwaldo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 48487c1ad776a7975b7132d95f4240ff3ae37cd5b8e3cb597102a4edb76738f1 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 669463fcc54773a88c1f5a44eef6b99a5504b9c7 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width