question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spyder not opening: ERROR:broker_win.cc(59)] Error reading broker pipe

See original GitHub issue

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Spyder cannot launch correctly from Anaconda Navigator or cmd or GitBash. Antivirus offloaded, only Windows defence on, all other tools and IDEs on Anaconda work well.Tried multiple other ways entioned on github (restart, reinstall, pyqt, reset, update, downgrade) but still doesn’t work.

What steps reproduce the problem?

  1. Starting Spyder from Anaconda Navigator/cmd/GitBash

What is the expected output? What do you see instead?

Expecting Spyder to launch, but it failed to. The Spyder launching interface loaded at first and it said “initialization”, “starting editor” etc, and the bigger UI window poped out (without any content), but it then it “no response” and the whole window just crashed, error msg in console was:

ERROR:broker_win.cc(59)] Error reading broker pipe

Paste Traceback/Error Below (if applicable)

ERROR:broker_win.cc(59)] Error reading broker pipe

```python-traceback

PASTE TRACEBACK HERE

Versions

$ conda info

     active environment : None
       user config file : C:\Users\zhouz\.condarc
 populated config files : C:\Users\zhouz\.condarc
          conda version : 4.5.9
    conda-build version : 3.10.5
         python version : 3.6.6.final.0
       base environment : H:\ProfessionalSoftware\Anaconda  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : H:\ProfessionalSoftware\Anaconda\pkgs
                          C:\Users\zhouz\AppData\Local\conda\conda\pkgs
       envs directories : H:\ProfessionalSoftware\Anaconda\envs
                          C:\Users\zhouz\AppData\Local\conda\conda\envs
                          C:\Users\zhouz\.conda\envs
               platform : win-64
             user-agent : conda/4.5.9 requests/2.18.4 CPython/3.6.6 Windows/10 W                       indows/10.0.17134
          administrator : False
             netrc file : None
           offline mode : False

Dependencies

PASTE DEPENDENCIES HERE

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
CAM-Gerlachcommented, Aug 19, 2018

FYI, I ran into the same problem on my (factory-fresh, clean-installed) Windows 10 (1803) test machine with only the default Windows Defender and firewall disabled, and regardless of which GPU was enabled or how I’d installed Spyder 4. It only occurred with Spyder 4 (not when downgrading to 3.3.1 in the same env), and did not experience the same issue running through the identical procedure and environment on my Windows 8.1 machine even with Windows Firewall enabled. The above fix did not work, despite also have a similar Intel/Nvidia GPU setup.

However, when I then ran conda install pyqt=5.6 (which downgraded Qt, PyQt, QtConsole and sip) and then spyder or bootstrap,py spyder agian, the problem did not occur, and most strangely when I upgraded all the way back to PyQt 5.9.2, Qt 5.9.6 and QtConsole 4.4, everything worked fine. Even creating a new environment following the identical procedure resulted in everything working this time. So, I’m not 100% sure what’s going on, but users experiencing this can try conda install pyqt=5.6, then make sure Spyder works, then upgrade back with conda update pyqt qt qtconsole

More details about what I tried, what worked and what didn’t:

Problem occurred on: Windows 10 (1803) Spyder 4.0.0beta1 (-c spyder-ide)/git checkout master Python 3.6.5-3.6.6 PyQt 5.9.2/Qt 5.9.6

Things that made no difference both when Spyder worked and when it didn’t:

  • Firewall settings
  • Disabling/enabling Intel/Nvidia GPUs, either through Device Management or Nvidia Control panel
  • How I launched Spyder (bootstrap.py vs. pre-packaged spyder)
  • Resetting preferences

More details:

Both those machines have identical hardware (they’re two copies of the same laptop model), with a Nvidia GTX 670M and an Intel HD4000, and Spyder was installed in brand-new, identical clean environments on each (just conda install -c spyder-ide spyder ) both starting from the packaged beta via spyder, and running from a Github clone of the latest master.

I tried both setting the Nvidia GPU as the global preferred GPU for everything in the Nvidia control panel, as well as disabling the Intel one in device manager, but even after restarting Anaconda prompt and trying to launch Spyder via the above methods, the problem still reoccurred. Switching to Spyder 3.3.1 in the same environment with conda install -c defaults spyder spyder-kernels=0 on the Win 10 machine, it launched normally with or without any of the above.

Finally, I checked out an older master version from before the spyder-kernels changes; specifically, the commit merging the Release 3.2.8 commit to master (02ec24d1), and again experienced the issue. Checking out the aforementioned commit on the 3.x branch, the one tagged v3.2.8 (801d2732), the problem is again gone, and I can even launched (more or less successfully) a checkout from the first commit of the master branch that diverged from 3.x (as of Spyder 3.0.0). This was all before trying to downgrade Qt/PyQt which resulted in the problem not re-occuring even tin the same configuration. So there was something unique to the master codebase from before that time that was triggering the issue. If I could actually make it start happening again, I could git bisect and find it but it seems not worth the effort at this point.

0reactions
CAM-Gerlachcommented, Jan 29, 2019

As a general FYI for anyone else with this problem reading this thread, @Antzxz mentioned on #8211 that uninstalling “Dell Backup and Recovery” (which is known to cause many conflicts with other software, including Spyder) and reinstalling Anaconda solved this problem for them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python crashes when opening Spyder with python 3.5
When I try to launch Spyder, python.exe crashes. On the terminal, it shows [4596:5756:0409/160956.599:ERROR:broker_win.cc(59)] Error reading ...
Read more >
spyder-ide/public - Gitter
[10888:8576:0507/092020.153:ERROR:broker_win.cc(59)] Error reading broker pipe: The pipe has been ended. (0x6D)". This is a not-uncommon ...
Read more >
Spyder crashes after updating to version 4.01 - Google Groups
I can't launch Spyder after updating it to the newest version. ... [14656:13072:0116/161931.181:ERROR:broker_win.cc(59)] Error reading broker pipe: The pipe ...
Read more >
spyder突然打不开,只能看到蜘蛛网 - CSDN博客
挂着代码吃了个饭回来,回来spyder莫名其妙打不开了,通过cmd打开, ... :ERROR:broker_win.cc(59)] Error reading broker pipe: 管道已结束。
Read more >
Anaconda Navigator and Spyder don't start - Programming
(newEnv) C:\Users\***>spyder [2280:2332:0331/162242.873:ERROR:broker_win.cc(59)] Error reading broker pipe: Die Pipe wurde beendet.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found