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

commit has error with unlinking temp files #47

Closed
hanselke opened this issue Jul 19, 2023 · 2 comments
Closed

commit has error with unlinking temp files #47

hanselke opened this issue Jul 19, 2023 · 2 comments

Comments

@hanselke
Copy link
Contributor

aicodebot, version 0.12.2

Do you want to use this commit message (type n to edit)? [Y/n]: y Are you ready to commit the changes? [Y/n]: y ✅ 1 file(s) committed. Traceback (most recent call last): File "/Users/hanselke/miniforge3/envs/devbot/bin/aicodebot", line 8, in <module> sys.exit(cli()) File "/Users/hanselke/miniforge3/envs/devbot/lib/python3.10/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) File "/Users/hanselke/miniforge3/envs/devbot/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/Users/hanselke/miniforge3/envs/devbot/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Users/hanselke/miniforge3/envs/devbot/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/Users/hanselke/miniforge3/envs/devbot/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/Users/hanselke/miniforge3/envs/devbot/lib/python3.10/site-packages/aicodebot/cli.py", line 184, in commit Path.unlink(temp_file_name) File "/Users/hanselke/miniforge3/envs/devbot/lib/python3.10/pathlib.py", line 1206, in unlink self._accessor.unlink(self) AttributeError: 'str' object has no attribute '_accessor'

it commits fine. not really sure what you're doing with those temp files.

@TechNickAI
Copy link
Owner

TechNickAI commented Jul 19, 2023

Thanks for the bug report!

I thought I fixed all these. It's an issue with older versions of python. Curious - what version of python are you using?

Anyway - it is fixed with aicodebot 0.13.1
pip install -U aicodebot to upgrade

@hanselke
Copy link
Contributor Author

hanselke commented Jul 19, 2023 via email

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