michaelaquilina / python-tools Goto Github PK
View Code? Open in Web Editor NEW:wrench: Atom plugin which uses jedi to provide numerous tools useful for developing python code in atom.
License: MIT License
:wrench: Atom plugin which uses jedi to provide numerous tools useful for developing python code in atom.
License: MIT License
There is currently the option to select a string line/block but this can be theoretically extended to select entire blocks.
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
Error: spawn python ENOENT
in addition to python-tools, linter-pep8 and linter-flake8 seems not to find their executable path either. However, I am pretty sure I have set python path in Windows %PATH%, I can find it use python
in both Powershell and Command Prompt. I am using Miniconda2 32-bit python, and I can find Python registry information under " \HKLM\SOFTWARE\Wow6432Node\Python ". Why Atom can not find it
Dear author,
I have seen two update from your pythin-tools i use but the changelog still is empty, so i have no idea of what is changed.
Regards
As you find in other IDEs like PyCharm
In my machine, which is windows7 64bit, I have reinstalled a pluggin named Wakatime, (because the plugin didn't work normally).but I don't know why when I launch Atom, the error always shows up:
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
Error: spawn python ENOENT
I have checked the following points listed in https://atom.io/packages/python-tools, and made sure of that nothing goes wrong:
So what should I do?
Excuse of my little English.
Best Regards.
python-tools experienced an unexpected exit.
Please consider posting an issue on https://github.com/michaelaquilina/python-tools/issues/new
exit with code null, signal SIGKILL
I could not install this package in my Windows 10 system. I am a Python programmer and using Atom IDE to develop projects. But problem is I could not install this package properly. After installation, I get the error message which says:
exit with code 1, signal null
But I have no idea how this error popped up. BTW, it works in Linux systems without any problems.
Is this a bug in windows 10?
Probably due to the Promise change made recently (Don't believe this is in production though...)
Around python-tools.coffee line 73, python-tools writes to process.env.PATH using the paths found and guessed for the python executable. This prevents other plugins from spawning child processes using the system's environmental PATH variable. I recommend that python-tools avoid assigning anything to process.env.PATH to promote compatibility with other plugins.
See also kriscross07/atom-gpp-compiler#14
$ whereis python
python: /usr/bin/python /usr/bin/python2.7-config /usr/lib/python2.7 /usr/include/python2.7 /cygdrive/c/dev/diffuse/py thon26.dll /usr/share/man/man1/python.1.gz
$ whereis python2.7.exe
python2.7: /usr/bin/python2.7.exe /usr/lib/python2.7 /usr/include/python2.7 /usr/share/man/man1/python2.7.1.gz
So there is no "python directory" and there is no "python.exe" binary
Ctrl-Alt-G
can take me to a symbol, but is there a way to go back to where I came from, so that I can continue investigating the original code flow?
In a lot of our code we use an override procedure. We declare a function definition in a base file, and any inheritor must define this function in order for it to be used.
Sample
Parent
def f(self): pass
Child
def f(self): self.doStuff()
Would it be possible, if the function only contains "pass", to search for inheritors?
I'm not sure how to get at additional information which will help diagnose the issue.
Happy to provide additional info if you can point me to how to get at it. I can reproduce this consistently.
In readme written «Goes along really nicely with the autocomplete-python package to provide a full Python IDE experience in Atom.» But autocomplete-python
support per-project virtualenv settings in format:
$PROJECT/.env/lib/python2.7/site-packages;
Where $PROJECT
is placeholder for project's folder path. Seems like python-tools
not used this settings and not support same format in own settings (only full qualified path, but it's not useful when you have ~50 projects with own virtualenvs). So «Go to definition» not work me at all :(
I'm using Atom 1.4.3, and the latest version of python-tools (installed this morning through apm
), but when I try to run the Select All String command (either via the keyboard shortcut, or through the command palette), nothing happens.
I've checked the console in the Developer Tools, but nothing shows up there either.
Do you have any ideas how I can debug this more?
python-tools was unable to find your machine's python executable.
Please try set the path in package settings and then restart atom.
please help
I tried via command-palette, keybinding and right-click on the mouse, none of them selected the string around the caret/cursor.
I also tried if it was meant to only work when at least one character is selected, but that did not help either.
Versions:
atom: 1.5.3
python-tools 0.6.7
On windows systems, "Atom-beautify" plug and "python-tools" plug-in conflict, if
Configuring the "path to python directory", although the "python-tools" can be used normally, but "atom-beautify" error will be prompted to find autopep8.
Then disable the "python-tools" plug after, "atom-beautify" plug-in and can be used normally.
Selecting a multi-line string that is created using parentheses and implicit string concatenation only selects a portion of the string.
Example multi-line string:
s = ('this is a string '
'that spans multiple '
'lines.')
# equivalent to s = 'this is a string that spans multiple lines.'
but when using ctrl+alt+e
to select the string, it only selects a portion, i.e. only 'this is a string '
. Perhaps this behavior is what is desired, but I want to make sure it's intentional and not accidental.
Windows 8.1
Atom 1.5.0, Windows 7.
Seeing this issue when I have the package installed upon atom launch. I'm happy to provide additional debug data but I don't know where to find it. I've searched what I believe to be the relevant directories for logs but haven't found any. There are no issues in the atom console. Issue occurs in Dev mode also. I'm pretty sure it's an issue with my setup and not the package but I have no known way to confirm.
Thanks!
Use the python logging
module to write errors and warnings to file.
Hey!
Your code is working on the process wide PATH variable. You should use of copy of process.env
so other plugins are not affected of yor changes. Here is a excerpt from my package sass-autocompile:
environment = JSON.parse(JSON.stringify( process.env )); # Creates a copy
if typeof searchPath is 'string' and searchPath.length > 1
environment.PATH += ":#{searchPath}"
exec command, { env: environment }, (error, stdout, stderr) =>
# ...
not installed properly
After having upgraded from Atom 1.6.0 to 1.6.2 on Debian GNU/Linux stretch/sid, Linux 4.4.6-1 amd64, I got the error message
“python-tools experienced an unexpected exit
[…]
exit with code null, signal SIGKILL”
python-tools 0.6.7.
I cannot reproduce the error after uninstalling and reinstalling the package, which had first been installed under a version of Atom less than 1.6.0, in Atom 1.6.2. However, IIRC such an error did not occur after upgrading from Atom 1.5.3 to 1.6.0.
Please investigate this in order to avoid the same error with future Atom upgrades.
I'd like to use this package with my Django project, however when I use the Python Django syntax, the ctlr+alt+u stops working. It works with normal Python syntax of course.
when I find variables in python code , it always shows 'python-tools could not find any results'
mac 10.11.1
python is 3.0,that's not work correctly!
When working with python files, the package will after a few minutes have spawned 3-5 Python processes that steal all my CPU resources. Atom and the funcionalities of the tool seem to work fine, but doing anything else simultaneously is impossible. Killing the troublesome Python processes don't seem to give any obvious side effects, but after 10+ minutes or so they will have spawned again and started eating up all my CPU resources.
Installed in Atom. doesn't work on on OSX 10.11.5
Uninstall action reports "Failed to delete python-tools: Does not exist"
However on a restart of Atom it has been removed.
Tool to swap use of ' and with " and vice versa in a python file
At last build Microsoft introduced a way to execute linux on windows.
Would it be possible to use the python installed on linux from atom?
NOTE: to execute a python script from the windows shell one would have to:
bash -c "python script.py"
Open the relevant documentation on python.org on command
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
It reaches to 2.7 directory even when I have added python3 directory in the setting "path to python directory"
Once specified like $PROJECT/env/Scripts/
it added to PATH (at leas on Windows) as is (lines below taken from Atom terminal):
$> PATH
PATH=$PROJECT/env/Scripts;C:\Python2\;C:\Python2\Scripts;C:\Mi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.