Sublime Text 3: Anaconda package error connection to localhost timed out

Joshua Zastrow picture Joshua Zastrow · Jan 25, 2017 · Viewed 11.2k times · Source

I am getting a bizarre error message when starting up sublime text 3.

upon startup, I get the error below.

Window Error

Here's some background on my system:

Windows 10

Sublime Text 3 (Anaconda Package installed through Sublime Text package installer)

From CMD:

C:\Users\joshu>where python
C:\cygwin64\bin\python
C:\Users\joshu\Anaconda3\python.exe

C:\Users\joshu>which python
/usr/bin/python

C:\Users\joshu>python --version
Python 3.5.2 :: Anaconda 4.2.0 (64-bit)

From sublime text 3 console:

sys.version
'3.3.6 (default, Sep 22 2016, 23:32:57) [MSC v.1600 64 bit (AMD64)]'

sys.path

['C:\\Users\\joshu\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\AutoPEP8.sublime-package\\sublimeautopep8lib\\packages_py3', 'C:\\Program Files\\Sublime Text 3', 'C:\\Program Files\\Sublime Text 3/python3.3.zip', 'C:\\Users\\joshu\\AppData\\Roaming\\Sublime Text 3\\Packages', 'C:\\Users\\joshu\\AppData\\Roaming\\SUBLIM~1\\Packages\\pygments\\all', 'C:\\Users\\joshu\\AppData\\Roaming\\SUBLIM~1\\Packages\\coverage\\ST3_WI~2', 'C:\\Users\\joshu\\AppData\\Roaming\\SUBLIM~1\\Packages\\MARKUP~1\\all', 'C:\\Users\\joshu\\AppData\\Roaming\\SUBLIM~1\\Packages\\PYTHON~1\\st3', 'C:\\Users\\joshu\\AppData\\Roaming\\SUBLIM~1\\Packages\\PYTHON~2\\all', 'C:\\Users\\joshu\\AppData\\Roaming\\SUBLIM~1\\Packages\\mdpopups\\st3', 'C:\\Users\\joshu\\AppData\\Roaming\\Sublime Text 3\\Packages\\coverage\\st3_windows_x64']

The first problem is that I don't know how to "check that there is Python process executing the anaconda jsonserver.py script ".

But ultimately I am at a lost on how to fix this issue.

My 'test' to see if anaconda was working was to try importing Numpy (which didn't work.. no module detected).

I did paste the following code into the sublime text 3 console.. didn't look like anything happened:

import socket; socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect(("localhost", 59552))

Answer

Galapagos picture Galapagos · Nov 5, 2018

In the menu:

Preferences > Package Settings > Anaconda > Settings - User

If your user settings file is empty, write:

{
    "swallow_startup_errors": true
}

and save.

If you already have other user settings in this file, just add this one to them