Skip to content

Uncaught Cannot run python command: check that python is available in the system: Error: spawn python ENOENT #3

Closed

Description

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.196.0
System: Unknown Windows Version
Thrown From: autocomplete-python package, v0.3.0

Stack Trace

Uncaught Cannot run python command: check that python is available in the system: Error: spawn python ENOENT

At C:\Users\dmit1_000\.atom\packages\autocomplete-python\lib\provider.coffee:35

undefined

Commands

Config

{
  "core": {
    "themes": [
      "seti-ui",
      "seti-syntax"
    ],
    "autoHideMenuBar": true,
    "disabledPackages": [
      "highlight-line"
    ]
  }
}

Installed Packages

# User
autocomplete-python, v0.3.0
fonts, v0.4.2
linter, v0.12.1
linter-python-pep8, v0.2.0
python-isort, v0.0.6
seti-syntax, v0.4.0
seti-ui, v0.6.3

# Dev
No dev packages

Activity

  1. sadovnychyi commented on May 1, 2015

    @sadovnychyi
    Member

    Can you run python from your command line? If no, please check readme about how to make it work on windows.

  2. sadovnychyi commented on May 1, 2015

    @sadovnychyi
    Member

    Hmm, OK. I'll add some default paths to check for python interpreter.

    You have it in the c:\python27 or something like this right?

    Can you give me an output of echo %PATH% please?

  3. LoLei commented on May 10, 2015

    @LoLei

    Same here, I have it on E:\Python.

  4. sadovnychyi commented on May 10, 2015

    @sadovnychyi
    Member

    Thats pretty strange, I did tested it on windows 10 and it worked fine if python exists in the PATH. Anyway I could add a configuration option to set the python path manually.

  5. croscato-zz commented on May 16, 2015

    @croscato-zz

    I was having the same problem. I could made it work putting the python path after the atom editor path. Hope it help.

  6. sadovnychyi commented on May 18, 2015

    @sadovnychyi
    Member

    @croscato just tried it with both: C:\Python27;C:\Users\sadovnychyi\AppData\Local\atom\bin and C:\Users\sadovnychyi\AppData\Local\atom\bin;C:\Python27 -- worked it both cases (Windows 10). But glad that it is resolved for you.

  7. sadovnychyi commented on May 20, 2015

    @sadovnychyi
    Member

    I just released v0.4.0 with better path handling: in addition to system path plugin will try to locate python in some possible locations:

    'C:\\Python2.7',
    'C:\\Python3.4',
    'C:\\Python3.5',
    'C:\\Program Files (x86)\\Python 2.7',
    'C:\\Program Files (x86)\\Python 3.4',
    'C:\\Program Files (x86)\\Python 3.5',
    'C:\\Program Files (x64)\\Python 2.7',
    'C:\\Program Files (x64)\\Python 3.4',
    'C:\\Program Files (x64)\\Python 3.5',
    'C:\\Program Files\\Python 2.7',
    'C:\\Program Files\\Python 3.4',
    'C:\\Program Files\\Python 3.5',
    

    Also, if its still does not works for you -- you can set it manually in the package settings:
    image

    I'm closing this issue as resolved, but if you are still experiencing any problems -- feel free to submit a new one.

  8. added a commit that references this issue on Dec 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions