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

AssertionError #991

Closed
adriangalilea opened this issue Aug 2, 2024 · 2 comments
Closed

AssertionError #991

adriangalilea opened this issue Aug 2, 2024 · 2 comments

Comments

@adriangalilea
Copy link

Issue

File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 589, in _run_script
    exec(code, module.__dict__)
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/aider/gui.py", line 540, in <module>
    status = gui_main()
             ^^^^^^^^^^
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/aider/gui.py", line 536, in gui_main
    GUI()
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/aider/gui.py", line 357, in __init__
    self.coder = get_coder()
                 ^^^^^^^^^^^
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/streamlit/runtime/caching/cache_utils.py", line 168, in wrapper
    return cached_func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/streamlit/runtime/caching/cache_utils.py", line 197, in __call__
    return self._get_or_create_cached_value(args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/streamlit/runtime/caching/cache_utils.py", line 224, in _get_or_create_cached_value
    return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/streamlit/runtime/caching/cache_utils.py", line 280, in _handle_cache_miss
    computed_value = self._info.func(*func_args, **func_kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/aider/gui.py", line 82, in get_coder
    for line in coder.get_announcements():
                ^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/aider/coders/base_coder.py", line 155, in get_announcements
    num_files = len(self.repo.get_tracked_files())
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/aider/repo.py", line 242, in get_tracked_files
    staged_files = [path for path, _ in index.entries.keys()]
                                        ^^^^^^^^^^^^^
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/gitdb/util.py", line 253, in __getattr__
    self._set_cache_(attr)
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/git/index/base.py", line 168, in _set_cache_
    self._deserialize(stream)
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/git/index/base.py", line 197, in _deserialize
    self.version, self.entries, self._extension_data, _conten_sha = read_cache(stream)
                                                                    ^^^^^^^^^^^^^^^^^^
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/git/index/fun.py", line 252, in read_cache
    version, num_entries = read_header(stream)
                           ^^^^^^^^^^^^^^^^^^^
File "/Users/adrian/.local/pipx/venvs/aider-chat/lib/python3.12/site-packages/git/index/fun.py", line 210, in read_header
    assert version in (1, 2)
           ^^^^^^^^^^^^^^^^^

Version and model info

Aider: 0.47.1
Model: deepseek/deepseek-coder
Mac
Installed through pipx

@adriangalilea
Copy link
Author

Fixed it by cleaning up the .git repo, but no idea what was the cause.

@paul-gauthier
Copy link
Collaborator

This looks like a duplicate of #211, so I'm going to close it so discussion can happen there. Please let me know if you think it's actually a distinct issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants