Tuesday, December 25, 2018

SublimeText 3/Anaconda error

When I installed Anaconda manually by downloading and untarring the file (as given in the manual installation instructions here), I got the following error while SublimeText starts.

reloading plugin anaconda-2.1.14.version
Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 116, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.3/importlib/__init__.py", line 90, in import_module
  File "", line 1584, in _gcd_import
  File "", line 1565, in _find_and_load
  File "", line 1512, in _find_and_load_unlocked
  File "", line 313, in _call_with_frames_removed
  File "", line 1584, in _gcd_import
  File "", line 1565, in _find_and_load
  File "", line 1512, in _find_and_load_unlocked
  File "", line 313, in _call_with_frames_removed
  File "", line 1584, in _gcd_import
  File "", line 1565, in _find_and_load
  File "", line 1512, in _find_and_load_unlocked
  File "", line 313, in _call_with_frames_removed
  File "", line 1584, in _gcd_import
  File "", line 1565, in _find_and_load
  File "", line 1529, in _find_and_load_unlocked
ImportError: No module named 'anaconda-2'

To view the error, you should go to the SublimeText's Python shell. In case of Linux, you can go there by pressing Ctrl + `. Or by clicking "View -> Show Console".

The solution is simple. When you untarred the contents, you would have created a directory looking like:
~/.config/sublime-text-3/Packages/anaconda-2.1.14

To fix the error, you simply have to rename the directory to anaconda-2.
mv ~/.config/sublime-text-3/Packages/anaconda-2.1.14 ~/.config/sublime-text-3/Packages/anaconda-2

SublimeText 3/Anaconda error

When I installed Anaconda manually by downloading and untarring the file (as given in the manual installation instructions here ), I got th...