Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cell containerization fails because of GitHub API change #1789

Closed
gpelouze opened this issue Jan 24, 2025 · 1 comment · Fixed by #1790
Closed

Cell containerization fails because of GitHub API change #1789

gpelouze opened this issue Jan 24, 2025 · 1 comment · Fixed by #1790
Assignees
Labels
bug Something isn't working

Comments

@gpelouze
Copy link
Member

Containerization is partly broken on v2.5.0.

When containerizing a cell with a new name, we get this error:

Image

Traceback (most recent call last):
  File "/venv/lib/python3.11/site-packages/tornado/web.py", line 1790, in _execute
    result = await result
             ^^^^^^^^^^^^
  File "/venv/lib/python3.11/site-packages/jupyterlab_vre/component_containerizer/handlers.py", line 430, in post
    do_dispatch_github_workflow, image_version = create_or_update_cell_in_repository(
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.11/site-packages/jupyterlab_vre/component_containerizer/handlers.py", line 486, in create_or_update_cell_in_repository
    remote_hash = repository.get_contents(path=task_name + '/' + f_name).sha
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.11/site-packages/github/Repository.py", line 2137, in get_contents
    headers, data = self._requester.requestJsonAndCheck(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.11/site-packages/github/Requester.py", line 537, in requestJsonAndCheck
    return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.11/site-packages/github/Requester.py", line 598, in __check
    raise self.createException(status, responseHeaders, data)
github.GithubException.GithubException: 404 {"message": "No object found for the path a-completely-new-cell-name-gabriel-pelouze-lifewatch-eu/task.py", "documentation_url": "https://docs.github.com/v3/repos/contents/", "status": "404"}
@gpelouze
Copy link
Member Author

This is a PyGithub issue following a GitHub API change: PyGithub/PyGithub#3179

@gpelouze gpelouze linked a pull request Jan 24, 2025 that will close this issue
@gpelouze gpelouze added the bug Something isn't working label Jan 24, 2025
@gpelouze gpelouze self-assigned this Jan 24, 2025
@gpelouze gpelouze marked this as a duplicate of #1795 Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant