agentsea / surfkit

A toolkit for building multimodal AI agents
https://docs.hub.agentsea.ai
MIT License
112 stars 10 forks source link

Poetry install fails to upgrade agentdesk #97

Open the-laughing-monkey opened 4 months ago

the-laughing-monkey commented 4 months ago

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/python@3.12/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/python@3.12/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/python@3.12/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/python@3.12/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'