Skip to content

Poetry install fails to upgrade agentdesk #97

@the-laughing-monkey

Description

@the-laughing-monkey
  • Updating agentdesk (0.2.85 -> 0.2.86): Failed

CalledProcessError

Command '['/Users/writer/Library/Caches/pypoetry/virtualenvs/surfsamurai-ApdbXOUV-py3.12/bin/python', '-m', 'pip', 'uninstall', 'agentdesk', '-y']' returned non-zero exit status 2.

at /opt/homebrew/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py:571 in run
567│ # We don't call process.wait() as .exit does that for us.
568│ raise
569│ retcode = process.poll()
570│ if check and retcode:
→ 571│ raise CalledProcessError(retcode, process.args,
572│ output=stdout, stderr=stderr)
573│ return CompletedProcess(process.args, retcode, stdout, stderr)
574│
575│

The following error occurred when trying to handle this error:

EnvCommandError

Command ['/Users/writer/Library/Caches/pypoetry/virtualenvs/surfsamurai-ApdbXOUV-py3.12/bin/python', '-m', 'pip', 'uninstall', 'agentdesk', '-y'] errored with the following return code 2

Output:
Found existing installation: agentdesk 0.2.85
Uninstalling agentdesk-0.2.85:
ERROR: Exception:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/shutil.py", line 847, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/writer/Library/Caches/pypoetry/virtualenvs/surfsamurai-ApdbXOUV-py3.12/bin/lint' -> '/private/var/folders/xp/mlmmbtd52blg_0r2p2kzj3j00000gs/T/pip-uninstall-thrrqj97/lint'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/writer/Library/Caches/pypoetry/virtualenvs/surfsamurai-ApdbXOUV-py3.12/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "/Users/writer/Library/Caches/pypoetry/virtualenvs/surfsamurai-ApdbXOUV-py3.12/lib/python3.12/site-packages/pip/_internal/commands/uninstall.py", line 105, in run
uninstall_pathset = req.uninstall(
^^^^^^^^^^^^^^
File "/Users/writer/Library/Caches/pypoetry/virtualenvs/surfsamurai-ApdbXOUV-py3.12/lib/python3.12/site-packages/pip/_internal/req/req_install.py", line 727, in uninstall
uninstalled_pathset.remove(auto_confirm, verbose)
File "/Users/writer/Library/Caches/pypoetry/virtualenvs/surfsamurai-ApdbXOUV-py3.12/lib/python3.12/site-packages/pip/_internal/req/req_uninstall.py", line 380, in remove
moved.stash(path)
File "/Users/writer/Library/Caches/pypoetry/virtualenvs/surfsamurai-ApdbXOUV-py3.12/lib/python3.12/site-packages/pip/_internal/req/req_uninstall.py", line 271, in stash
renames(path, new_path)
File "/Users/writer/Library/Caches/pypoetry/virtualenvs/surfsamurai-ApdbXOUV-py3.12/lib/python3.12/site-packages/pip/_internal/utils/misc.py", line 358, in renames
shutil.move(old, new)
File "/opt/homebrew/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/shutil.py", line 867, in move
copy_function(src, real_dst)
File "/opt/homebrew/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/shutil.py", line 475, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/opt/homebrew/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/shutil.py", line 260, in copyfile
with open(src, 'rb') as fsrc:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/Users/writer/Library/Caches/pypoetry/virtualenvs/surfsamurai-ApdbXOUV-py3.12/bin/lint'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions