Git Product home page Git Product logo

python-tools was unable to find your machine's python executable. Please try set the path in package settings and then restart atom. If the issue persists please post an issue on https://github.com/michaelaquilina/python-tools/issues/new about python-tools HOT 5 OPEN

Aung-Bo-Bo007 avatar Aung-Bo-Bo007 commented on June 21, 2024
python-tools was unable to find your machine's python executable. Please try set the path in package settings and then restart atom. If the issue persists please post an issue on https://github.com/michaelaquilina/python-tools/issues/new

from python-tools.

Comments (5)

vsenn avatar vsenn commented on June 21, 2024

same issue last few days

from python-tools.

vagabond92 avatar vagabond92 commented on June 21, 2024

I only get this issue when launching from spotlight. If I launch from terminal, everything works fine.

from python-tools.

vsenn avatar vsenn commented on June 21, 2024

I only get this issue when launching from spotlight. If I launch from terminal, everything works fine.

LoL. Confirmed. Running Atom from Spotlight or Dock raise the above issue, Terminal atom command not. Thank you a lot for the workaround!

from python-tools.

danielholmhansen avatar danielholmhansen commented on June 21, 2024

Workaround does not fix his. I have even tried to put in path, but still no luck

from python-tools.

esba1ley avatar esba1ley commented on June 21, 2024

Same issue. When I launch from terminal using command line tool, no error. When I launch from Spotlight, Dock, or double-clicking the application icon via Finder.app, I get the "can't find Python executable error" for python-tools.

Interestingly enough, when I check the environment using the Atom DevTools console using process.env, the following differences show up:

on the shell-executed Atom, the following exist that don't from the Finder-executed Atom:
ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT: "true"
LANG: "en_US.UTF-8"
LaunchInstanceID: (hexadecimal ID of format XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)
SECURITYSESSSIONID: (hexadecimal ID of format xxxxx)
TERM: "xterm-256color"
TERM_PROGRAM: "Apple_Terminal"
TERM_PROGRAM_VERSION: "444"
TERM_SESSION_ID: (hexadecimal ID of format XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)

The following exist on the Finder-launched Atom that do not from the shell-launched Atom:
OLDPWD: "/"
_: "/usr/bin/awk"
_CE_CONDA: ""
_CE_M: ""
__CFBundleIdentifier: "com.github.atom"
__CF_USER_TEXT_ENCODING: "0x1F6:0x0:0x0"

Other differences:
LC_CTYPE: "en_US.UTF-8" from shell-launched, is "" from Finder-launched
PATH from shell-launched starts with a colon, from the Finder-launched it does not.
PWD: is the directory from which Atom was launched via the shell, is "/" from Finder.
SHLVL: "2" from shell-launched, SHLVL: "0" from Finder-launched.
XPC_SERVICE_NAME: has a hexID of format XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX appended on the end from the shell-launched, not in the Finder-launched

So environmentally speaking, on MacOS 12.3.1 (Monterey), those are the environment differences seen by Atom depending on whether or not the user launches it from the shell or the Finder. I use miniconda3 to manage my virtual environments, and in both launch types, the CONDA* variables are identical, and are the appropriate environments I want Atom to pick up from a default shell. When I change the conda env at the command line and launch Atom in the same shell, I get the new conda env to which I set that shell... so that works.

Hopefully, this helps with debugging. I found it interesting that the Atom/Electron/Chromium dev tools prompt isn't mentioned in the Atom documentation... it REALLY helps debug environmental things like this.

For now, I launch from the shell using the "atom" command and all is well. It would be nice if we could use the MacOS Finder/Spotlight/Dock provided ways of launching, too...

from python-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.