Comments (5)
same issue last few days
from python-tools.
I only get this issue when launching from spotlight. If I launch from terminal, everything works fine.
from python-tools.
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.
Workaround does not fix his. I have even tried to put in path, but still no luck
from python-tools.
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)
- ShadowRoot
- HTMLElement.shadowRoot
- python-tools experienced an unexpected exit.
- Error when installing package from Atom
- Problem
- exit with code 9009, signal null
- python-tools was unable to find your machine's python executable. HOT 4
- python-tools was unable to find your machine's python executable. HOT 2
- spawn python ENOENT HOT 1
- python-tools experienced an unexpected exit.
- python-tools was unable to find your machine's python executable on macbook HOT 4
- exit-code
- Atom error message when I start the application
- python-tools was unable to find your machine's python executable. Please try set the path in package settings and then restart atom.
- python-tools was unable to find your machine's python executable. HOT 6
- great
- python-tools unable to find python executable
- python-tools was unable to find your machine's python executable.... Error: spawn python ENOENT
- python-tools experience an unexpected exit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-tools.