You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm currently trying to set up local run for PR-Agent, but unfortunately after I installed pr_agent library and copied example from here, every time i try to run the script, I get the following error stack:
Traceback (most recent call last):
File "/app/pr_agent/cli.py", line 83, in <module>
run()
File "/app/pr_agent/cli.py", line 77, in run
result = asyncio.run(PRAgent().handle_request(args.pr_url, [command] + args.rest))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/app/pr_agent/agent/pr_agent.py", line 96, in handle_request
await command2class[action](pr_url, ai_handler=self.ai_handler, args=args).run()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/pr_agent/tools/pr_reviewer.py", line 44, in __init__
self.git_provider.get_languages(), self.git_provider.get_files()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/pr_agent/git_providers/github_provider.py", line 538, in get_languages
languages = self._get_repo().get_languages()
^^^^^^^^^^^^^^^^
File "/app/pr_agent/git_providers/github_provider.py", line 690, in _get_repo
self.repo_obj = self.github_client.get_repo(self.repo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/github/MainClass.py", line 356, in get_repo
assert isinstance(full_name_or_id, (str, int)), full_name_or_id
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: None
I tried re-creating GitHub token several times with different permissions (including full access to repositories), but it didn't help. Also when I tried running PR-Agent from docker image locally, acorrdingly to the same guide, I got exactly same stack trace.
Any help appreciated, thanks.
The text was updated successfully, but these errors were encountered:
Hi, I'm currently trying to set up local run for PR-Agent, but unfortunately after I installed
pr_agent
library and copied example from here, every time i try to run the script, I get the following error stack:I tried re-creating GitHub token several times with different permissions (including full access to repositories), but it didn't help. Also when I tried running PR-Agent from docker image locally, acorrdingly to the same guide, I got exactly same stack trace.
Any help appreciated, thanks.
The text was updated successfully, but these errors were encountered: