This is wrong. Its mixing default lib paths and adding bin paths that is wrong.
Suggest you remove the PYTHONPATH entirely.
This is wrong. Its mixing default lib paths and adding bin paths that is wrong.
Suggest you remove the PYTHONPATH entirely.
Unfortunately, when I do that I get a different error
Traceback (most recent call last):
File "/usr/local/bin/qffbuddy", line 14, in <module>
from idlelib.tooltip import Hovertip
ModuleNotFoundError: No module named 'idlelib'
I think I need the PYTHONPATH
, but perhaps I am adding too many directories to it? I honestly donāt know.
I do not have PYTHONPATH set and my pythonās work on Windows, macOS and linux systems.
What is in qffbuddy?
Look at the first line that should be a shebang (#!
).
Which python is it trying to run?
The first line of the .py
file says:
#!/usr/bin/python3
I just checked and I do have a python3 executable in /usr/bin
.
Edit: looks like thereās a second file which is trying to run Python 3.7, which I do not haveā¦ Perhaps that is the issueā¦
That will run the python3 that Apple ships, not any of the ones you have installed. You have two choices.
#!/usr/bin/env python3
and add your preferred python3 location to your PATHWorking now!
Sorry for resurrecting this old thread. I did not realise these files called specific versions of python when they wanted to runā¦