tide icon indicating copy to clipboard operation
tide copied to clipboard

Conda causes BrokenPipeError

Open ezekini-uala opened this issue 4 years ago • 17 comments

Describe the bug

After installing the package I started getting this message when opening the terminal (terminal or iterm):

Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe

As far as I can see, everything works fine, but couldn't finde the solution on my own.

Steps to reproduce

  1. Install fish
  2. Install fisher
  3. Install tide

Environment

  • Operating system: Mac Os 10.15.5
  • Terminal emulator: Iterm2

Additional context

ezekini-uala avatar Apr 08 '21 14:04 ezekini-uala

Sorry for the late reply. I think I've seen this once before, it has to do with writing to the universal variable file, but I don't know much more 😞

IlanCosman avatar Apr 10 '21 15:04 IlanCosman

Same here on Ubuntu 20.04

zyddnys avatar May 14 '21 21:05 zyddnys

Closing as stale; Fish 3.3 released and almost no one has reported this issue.

IlanCosman avatar Jul 16 '21 21:07 IlanCosman

Same here on Ubuntu 20.04 WSL2, fish 3.3.1

pwwang avatar Aug 13 '21 00:08 pwwang

Can also confirm on Ubuntu 20.04, fish 3.3.1.

chstan avatar Aug 13 '21 23:08 chstan

This can be reproduced by fast tapping some ENTERs.

pwwang avatar Aug 13 '21 23:08 pwwang

I'm having the same issue after update to

fish, version 3.3.1
tide, version 5.0.1

Reinstalling tide by insert fisher update IlanCosman/tide into config.fish fixed the problem.

smthpickboy avatar Aug 25 '21 17:08 smthpickboy

@smthpickboy What's the difference by putting fisher update ilanCosman/tide instead of doing it manually?

I updated to 5.0.1 manually, the issue still persists.

pwwang avatar Aug 25 '21 18:08 pwwang

@smthpickboy What's the difference by putting fisher update ilanCosman/tide instead of doing it manually?

I updated to 5.0.1 manually, the issue still persists.

No difference. But when the problem happened, my shell simply couldn't start. So I have to put it in config.fish.

smthpickboy avatar Aug 28 '21 14:08 smthpickboy

Are any of you using Conda?

IlanCosman avatar Sep 03 '21 16:09 IlanCosman

Are any of you using Conda?

I have miniconda installed

ezekini-uala avatar Sep 03 '21 16:09 ezekini-uala

I am using conda, too.

pwwang avatar Sep 03 '21 16:09 pwwang

Alright yeah, this bug is coming from my ancient nemesis Conda 😂 I'll see if I can do anything about it.

IlanCosman avatar Sep 07 '21 18:09 IlanCosman

This can be reproduced by fast tapping some ENTERs.

Facing the same issue, any solutions yet? Thanks!

abhishek-1131 avatar Sep 20 '21 08:09 abhishek-1131

Yes, you can solve this problem by adding status is-interactive && before the conda init:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
status is-interactive && eval /Users/ilan/opt/anaconda3/bin/conda "shell.fish" "hook" $argv | source
# <<< conda initialize <<<

IlanCosman avatar Sep 20 '21 16:09 IlanCosman

Yes, you can solve this problem by adding status is-interactive && before the conda init:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
status is-interactive && eval /Users/ilan/opt/anaconda3/bin/conda "shell.fish" "hook" $argv | source
# <<< conda initialize <<<

Confirmed that it works!

pwwang avatar Oct 15 '21 16:10 pwwang

I'm seeing this issue without conda. I'm using pyenv and pipenv

dan-blanchard avatar Jun 28 '22 18:06 dan-blanchard