-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
vf upgrade: ‘sed’ cannot find [an undisclosed] file #234
Comments
Hi Klaus. Sorry for the long delay in responding to your query. I can't reproduce this error. If you can reproduce it reliably, would you please comment here so I can re-open the issue? Thanks! |
Fresh from the oven: » vf upgrade toot42 # toot42 is an existing venv
Upgrading toot42 from 3.11.8 to 3.11.8
sed: can't read : No such file or directory The interesting thing here is the So when I look in the command sed -i '' -e "s/$old_py_fv/$new_py_fv/g" "$venv_path/pyvenv.cfg" which, as far as I can tell is the only place in Anyway, if I invoke VirtualFish as |
Perhaps it's a permissions issue? Maybe What happens if you run the same command manually? For example:
|
The same thing happens: However, if I do like Fron -i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if SUFFIX supplied) » sed --version | head -n1
sed (GNU sed) 4.9 edit: typo |
PS: You could argue that if “suffix” is a separate empty string, then “SUFFIX [is] supplied“ and empty, whereas edit: clarification |
Okay, so it sounds like perhaps the best course of action is to remove the empty string from this |
That's what I would do, yes. If you had asked me to use |
Fix released in VirtualFish 2.5.7 🎉 Thank you, Klaus, for helping track down the cause of the problem. Much appreciated! |
Issue
TL;DR:
vf upgrade
fails with “sed: can't read : No such file or directory” and I have no idea which filevf
is talking about.I have exactly one virtual environment,
toot
, that holds the newest version on the PyPI package by the same name.$ cat ~/.virtualenvs/global_requirements.txt pip wheel setuptools
When I attempted to upgrade the envuironment, all I got was an unhelpful error:
$ vf upgrade toot Upgrading toot from 3.10.8 to 3.10.8 sed: can't read : No such file or directory
I'm unsure how to proceed.
The text was updated successfully, but these errors were encountered: