Comments (4)
Apple moved to python3 at least an OS X version or two ago. Try editing the script to have this as the first line:
#!/usr/bin/env -S PATH="${PATH}:/opt/homebrew/bin:/usr/local/bin" python3
The above should attempt to find python3 as either the macOS installed version, installed by Homebrew on an Intel based Mac, or installed by Homebrew on an M1 based Mac. If you use asdf or other version management for python installs, add the path for that to the line.
Let me know if this works for you.
from xbar-plugins.
Thanks for posting the solution @sprak3000! My shebang looks like this now due to xbar not finding my asdf python runtime:
#!/usr/bin/env -S PATH="${HOME}/.asdf/shims:/opt/homebrew/bin:/usr/local/bin:${PATH}" python3
Would be better if it was possible to specify the path to the interpreter in the GUI. Took me a while to debug the path via
import os
path = [path for path in os.environ.get('PATH').split(':')]
path = ':'.join(path)
print("PATH")
print("---")
print(path)
from xbar-plugins.
Would be better if it was possible to specify the path to the interpreter in the GUI. Took me a while to debug the path via
Probably best to ask that in the main app repo. I'm sure it is possible, but the drawback / difficulty would be in having to write that into each script you enable. What I've thought could be helpful would be to have the GUI detect various things like python, etc. and display them as help / suggestions on how to get a script working if it isn't.
from xbar-plugins.
from xbar-plugins.
Related Issues (20)
- stock-ticker.py: Yahoo API needs auth. A free service is still available on another URL
- 001-riggedCoinFlip.1h.sh: HOT 2
- 001-emojiWeather.30m.js: request module has been deprecated HOT 1
- Adding a New System Information Plugin HOT 4
- notifications.30s.py: add support for Discussions notifications HOT 1
- Error when running script cmd line ":22:in `<main>': uninitialized constant API (NameError)" HOT 8
- 001-bandwidth.1s.py: HOT 2
- 001-rbc.10m.sh: HOT 2
- Plugin can't call itself
- 001-robinhood.1m.py: HOT 1
- 001-exchange-rates.5m.sh: HOT 2
- xbar shows no icons at all if any plugin can't be executed HOT 1
- Open App HOT 3
- 001-dnsswitcher.1d.sh: HOT 3
- no module emoji
- 001-pubmed.py: HOT 7
- 001-pubmed.py: HOT 3
- orctoprint plugin doesn't show ETA
- Xbar result and terminal output differs
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 xbar-plugins.