python-tools
python-tools copied to clipboard
python-tools was unable to find your machine's python executable.
python-tools was unable to find your machine's python executable.
Please try set the path in package settings and then restart atom.
If the issue persists please post an issue on https://github.com/michaelaquilina/python-tools/issues/new
This is my path with python executable
import sys print(sys.executable) /usr/bin/python3
But the error persists. why?
I was able to fix this issue by leaving the python-tools custom executable blank and then using
ln -sf /usr/bin/python3 /usr/bin/python
to create a symbolic link with just python
pointing to my python3
executable.
In the source code python-tools.coffee, line 90:
this.provider = require('child_process').spawn(
'python', [__dirname + '/tools.py'], env: env
)
The child_process.spawn
is given just "python" as the executable name, so if you have a python3 in your env it will not work.
Hmm..… if this is the correct answer, the settings info should be changed. It currently implies that e.g., python2.7 would be a reasonable entry to the path to python entry. Or is that supposed to just be the directory of the executable? Ubuntu still uses python3 as an executable name, so this should be resolved systematically.
Neither /usr/bin/python3 (the result of which python3
) nor /usr/bin/ (just the directory) in the python-tools settings "path to python directory" resolves this error. Since one of these should be the correct answer (on my machine) to the error message ("Please try set the path in package settings and then restart atom."), either the use of that field, or the error message telling us to use it, should be changed.
perhaps the best answer for ubuntu users is sudo apt-get install python-is-python3
, which does the symlink suggested by jmobley0429 above, but in a way that ubuntu would expect (as it will ultimately impact other system changes).
Bitte um schnelle Rückmeldung kaufe sofort der Günther. Schon mal Vielen dank im Voraus
Gesendet von Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 für Windows
Von: kent-rasmussen @.> Gesendet: Wednesday, November 2, 2022 5:49:45 PM An: MichaelAquilina/python-tools @.> Cc: Subscribed @.***> Betreff: Re: [MichaelAquilina/python-tools] python-tools was unable to find your machine's python executable. (Issue #300)
perhaps the best answer for ubuntu users is sudo apt-get install python-is-python3, which does the symlink suggested by jmobley0429https://github.com/jmobley0429 above, but in a way that ubuntu would expect (as it will ultimately impact other system changes).
— Reply to this email directly, view it on GitHubhttps://github.com/MichaelAquilina/python-tools/issues/300#issuecomment-1300887949, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL3DEHRYU6QYYZJ3EJG7ZNDWGKLSTANCNFSM5ZNISXKQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Sorry,but thank you
Gesendet von Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 für Windows
Von: Günther @.> Gesendet: Donnerstag, 3. November 2022 08:21 An: @.> Cc: Günther @.>; Your @.> Betreff: Re: [MichaelAquilina/python-tools] python-tools was unable to find your machine's python executable. (Issue #300)
Bitte um schnelle Rückmeldung kaufe sofort der Günther. Schon mal Vielen dank im Voraus
Gesendet von Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 für Windows
Von: kent-rasmussen @.> Gesendet: Wednesday, November 2, 2022 5:49:45 PM An: MichaelAquilina/python-tools @.> Cc: Subscribed @.***> Betreff: Re: [MichaelAquilina/python-tools] python-tools was unable to find your machine's python executable. (Issue #300)
perhaps the best answer for ubuntu users is sudo apt-get install python-is-python3, which does the symlink suggested by jmobley0429https://github.com/jmobley0429 above, but in a way that ubuntu would expect (as it will ultimately impact other system changes).
— Reply to this email directly, view it on GitHubhttps://github.com/MichaelAquilina/python-tools/issues/300#issuecomment-1300887949, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL3DEHRYU6QYYZJ3EJG7ZNDWGKLSTANCNFSM5ZNISXKQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>
— Reply to this email directly, view it on GitHubhttps://github.com/MichaelAquilina/python-tools/issues/300#issuecomment-1301726336, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL3DEHVQEBADXO463F5AQ5TWGNRYVANCNFSM5ZNISXKQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>