matryer / xbar

Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)

Home Page:https://xbarapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Most tools have python error - Help or fix?

DeeJayMatthew opened this issue · comments

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

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

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?

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

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.

@DeeJayMatthew you might wanna try the technique I just posted at #856 (comment)