matryer / xbar

Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)
https://xbarapp.com
MIT License
17.49k stars 643 forks source link

Most tools have python error - Help or fix? #865

Open DeeJayMatthew opened 1 year ago

DeeJayMatthew commented 1 year ago
SCR-20221201-3n2 SCR-20221201-fsx

Here's some of what I have been seeing across system-info related tools. On the wattage meter I ended up installing python 3 and got a new issue:

SCR-20221201-fp6
leaanthony commented 1 year ago

That looks like your original python isn't on your path. If you open a terminal and type "python" you share the same error

DeeJayMatthew commented 1 year ago

That looks like your original python isn't on your path. If you open a terminal and type "python" you share the same error

How would I fix this?

leaanthony commented 1 year ago

Follow the python installation instructions again and look for the part where you update your path (if it's a manual process)

tmikkonen commented 1 year ago

Try changing the first line of 001-watt-meter.20s.py (or whichever plugin you are using) from #!/usr/bin/env python to #!/usr/bin/env python3

Worked for me with the pi-hole plugin. EDIT: I just realised not every plugin uses the env so this might not be of any help, afterall. Sorry.

alexrussell commented 1 year ago

@DeeJayMatthew you might wanna try the technique I just posted at https://github.com/matryer/xbar/issues/856#issuecomment-1445501343