Setting up sublime to run with python

I’m guessing this post is in the wrong place.

Sick of trying to find a text editor that I can use with python that hasn’t got a learning curve that will take longer than I’ll be around. Was going to use Notepad++, but after having problems setting it up to work with python, I then find out it crashes and wipes all the files with py extensions.

Now I’m on to sublime, I think I have almost got it working — almost.
I can run python from sublime if I go to tools/sublimeREPL/python/python-RUN current file, that gives me a headache just thinking about it. I cant run files from the shortcut keys.

I think the error is in this bit of code here:

Unable to open /C/Users/kelvyn/AppData/Roaming/Sublime Text 3/Packages/Default/Default (Windows).sublime-keymap
Traceback (most recent call last):
  File "C:\Users\kelvyn\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\sublimerepl.py", line 456, in open
    r = repls.Repl.subclass(type)(encoding, **kwds)
  File "C:\Users\kelvyn\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\repls\subprocess_repl.py", line 92, in __init__
    stdout=subprocess.PIPE)
  File "./python3.3/subprocess.py", line 819, in __init__
  File "C:\Users\kelvyn\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\repls\killableprocess\killableprocess.py", line 132, in _execute_child
    errread, errwrite)
  File "C:\Users\kelvyn\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\repls\killableprocess\killableprocess.py", line 179, in _execute_child_compat
    cwd, startupinfo)
  File "C:\Users\kelvyn\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\repls\killableprocess\winprocess.py", line 173, in ErrCheckCreateProcess
    ErrCheckBool(result, func, args)
  File "C:\Users\kelvyn\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\repls\killableprocess\winprocess.py", line 50, in ErrCheckBool
    raise WinError()
FileNotFoundError: [WinError 2] The system cannot find the file specified.
error: FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)

This line:

Unable to open /C/Users/kelvyn/AppData/Roaming/Sublime Text 3/Packages/Default/Default (Windows).sublime-keymap

seems to be pointing somewhere that doesn’t exist. There is NO Default folder. And the only folder having a file Default.sublime-keymap – with (Windows) stuck in the middle of it - on this path is SublimeREPL folder
And this seems to be the correct path:

C:\Users\kelvyn\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\Default (Windows).sublime-keymap

Just because I have a computer doesn’t mean I know how to use it. If some-one a little smarter than me agrees with what I am point toward, would that person be able to tell me how I change the path, or track down the file that is pointing to the wrong path. There was only 2 files I copied and installed, I cant see any paths in there. And I think I only install 1 file that already belonged to sublime.

Any ideas would be great, thanks guys

Probably a silly question, but what’s wrong with IDLE?

1 Like

Hi there slimpickings,

I know nothing about Python but think
that you may find this link of interest…

Anaconda Python IDE

coothead

nothing wrong with it at all, I think its a personal thing. I have found working in IDLE good enough, but its not really something I would like to build a project in.

Something with line numbering would be nice for starters. I had been using notepad++ along with IDLE. Notepad gave me the highlighting I need (I’m color blind) and IDLE gave me the access to python the way I like it. Problem is I thought I was going crazy, I couldn’t find half my scripts. I have now just realized that notepad is dumping them, or at least I think thats what is happening. Others have had the same problem.

I would like to think its just me, but running python seems to be an ever ending pain. Install this, it has a problem, install “that” to fix the problem, it has a problem. I have install and ended up uninstalling so many things. Anaconda was one of them. I have now installed the package you pointed out (thank you), but I still have the same problem, nothing positive has changed.

I’m now creating a folder called Defaults, put it in the path with the missing file and see if that works.

I second Anaconda as an awesome tool for developing Python in Sublime Text 3. Favourite feature: automatic PEP8 formatting.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.